script to change audio output patch

266 views
Skip to first unread message

Thomas Wacker

unread,
Mar 4, 2024, 11:46:23 AM3/4/24
to QLab
Hi everybody,
I would like to have an apple script, that selects all audio cues in the active cuelist and changes their output patch (in this case Dante) to another one (Headphone out).
Reason is, I would then put this script on a hotkey to have a safety net in case of network failure (Dante virtual soundcard does not allow redundancy).
Thanks in advance 

micpool

unread,
Mar 4, 2024, 2:40:00 PM3/4/24
to QLab


Easiest is to use a Network Cue with an OSC message that wil fail silently on any cues that do not have audio


QLab 4

/cue/*/patch {number}

Thomas Wacker

unread,
Mar 4, 2024, 5:40:57 PM3/4/24
to QLab
Thank you Micpool, I didn´t know this was possible in such an easy way... And I want to take this opportunity to thank you for all your priceless contributions to the Qlab community. 

jonas...@gmail.com

unread,
Mar 5, 2024, 1:37:57 PM3/5/24
to QLab
Hey! 

I was looking for a similar OSC function but when trying to apply the OSC message to a cue, it just defaults to no output. If I use MacroLab it works fine but it's limited to 8 patches annoyingly and I need quite a few more. 

I'm pretty inexperienced with OSC so I'm sure I'm doing something basic wrong. 

Thanks so much! 

Screen Shot 2024-03-05 at 10.35.57 AM.png
Screen Shot 2024-03-05 at 10.36.16 AM.png

Thomas Wacker

unread,
Mar 5, 2024, 2:16:15 PM3/5/24
to QLab
looks like your OSC message is missing the : /*/
maybe that´s why....

jonas...@gmail.com

unread,
Mar 6, 2024, 10:48:16 AM3/6/24
to QLab
Unfortunately no luck there either, it does do something, if the selected cue is patched, it then goes to "unpatched" after I trigger the OSC message. 

Brent Lord

unread,
Mar 9, 2024, 12:06:58 PM3/9/24
to QLab
Try omitting the curly braces around the argument in your OSC message. In our OSC documentation, we use curly braces to indicate a placeholder, where the characters of the placeholder (including the curly braces) are meant to be replaced with your own value.

For example, if you have an Audio cue with the number "A1", this message below will set the audio output patch of that cue to the first audio output patch as listed in the Audio Outputs tab of your workspace's Audio settings:

/cue/A1/audioOutputPatchNumber 1

Brent

Reply all
Reply to author
Forward
0 new messages