ElvishArtisan / rivendell

A full-featured radio automation system targeted for use in professional broadcast and media environments
206 stars 64 forks source link

Send pypad with RML macro #621

Open tonsofpcs opened 4 years ago

tonsofpcs commented 4 years ago

I'd like to be able to trigger pypad with a macro cart that is fired outside of the playlists (either by GPI or soundboard). My main goal is so that I can switch pypad to a "Live DJ"/generic "you're listening to" notice when automation is turned off (I would put this in the same macro that sets the OffAir state) but I can see other uses for this.

I notice that there's a default now/next "SN" command but it isn't clear if what that does.
I see this was discussed here in issue 356.

Thanks!

tonsofpcs commented 4 years ago

I see in a mailing list archive that "SN" is for when the playlist enters the stopped state. I don't actually want to stop the playlist though.

ElvishArtisan commented 4 years ago

I see in a mailing list archive that "SI see in a mailing list archive that "SN" is for when the playlist enters the stopped state. I don't actually want to stop the playlist though.

Your use case is a bit unclear here. How does one "turn off" the automation without "stop[ing] the playlist"?

tonsofpcs commented 4 years ago

We're setting the "offair"/"onair" status/mode on rdairplay by an audio console's fader on/off state since the system is for playing back automated music for a student radio station when there is no live DJ/host - the list is always running with the appropriate legal IDs and such at appropriate times and DJs/hosts cross fade from/to it when they begin/end their shows. We'd like to have pypad push the actual now-playing data when "onair" and push static generic text when switched to "offair" (this only has to be done once at the transition to offair so I figure it could be done by a macro if the capability existed).

ElvishArtisan commented 4 years ago

Ah, a dead-roll. Got it.

You can toggle PAD updates on and off by setting the appropriate 'Log=OnAir' directive in the plug-in config and setting the OnAir flag appropriately with the Toggle OnAir Fla RML. There is at present no way to force an actual PAD update absent action by the log though.

dklann commented 3 years ago

I wonder if one could write a multi-step Macro that would:

Then when it's time for Rivendell to resume "control", simply toggle the OnAir flag back on.

I'm sure the idea needs refining, but I think the concept would work...

tonsofpcs commented 3 years ago

Hmmmm. If an aux log can update PAD, that seems reasonable. Make the macro add and fire the aux log update and off macro. I think it needs a delay added before the off but I can give that a try over our upcoming live programming break (college station).