On Tue, 16 Aug 2016, Matthew Chambers wrote:
Let me see if I can figure this out...
LC red The Jim Bohannon Show! PE S1 3 1 090102! [set up a Sound Panel button to fire a drop-in?] SA 1 2 1! [put network audio on the air?] GE 1 I 7 1! [enable local break start closure?] GE 1 I 5 1! [enable closure for ID/liner/drop-in?] PS 1! [stop] SP 1000! [wait 1 second]
And I have my local break GPI firing this macro cart
SA 1 1 1! [put local Rivendell audio on the air?] SP 50! [wait 1/20 second] SR 1 2 1! [take network audio off the air?] SP 50! [wait 1/20 second] PN 1! [play next event on main log] SP 50! [wait 1/20 second] GE 1 I 7 0! [disable local break start closure?] GE 1 I 5 0! [disable closure for ID/liber/drop-in?] LC red AM 1360 The Patriot!
I don't use PS 1 to stop Rivendell; I use a log event with a STOP transition to do that.
I also never mute the audio from Rivendell during the network segment; with Rivendell stopped, there's no need to do that, nor do I have to remember to turn it back on when the next local break comes around.
I have found that the best way to execute RML commands is from a shell script. Certain cmmands don't work reliably if run directly from a macro, but they do work in a shell script.
I have a directory "rml" containing all the shell commands, e.g.: cat > rml/bohannon.txt #!/bin/bash rmlsend --to-host=localhost 'LC red The Jim Bohannon Show!' sleep 0.01 rmlsend --to-host=localhost 'PE S1 3 1 090102!' sleep 0.01 rmlsend --to-host=localhost 'SA 1 2 1!' sleep 0.01 rmlsend --to-host-=localhost 'GE 1 I 7 1!' sleep 0.01 rmlsend --to-host=localhost 'GE 1 I 5 1!' sleep 0.01 ^D Rob _______________________________________________ Rivendell-dev mailing list [email protected] http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
