Hi All!
Background: We have a remote control from Audio Ape that is controlling a Media Monkey. The remote has Volume Up and Volume Down buttons, but these do the same as hitting the Volume Up and Volume Down function keys on a keyboard (i.e. 🔈+ and 🔈-.)
The Problem: This means that we cannot assign these buttons to control anything in QLab... 🙁
So I was wondering if there would be a way to write a script that could tell QLab (or our mixer - a Fireface UC which we can control via MIDI or OSC commands) to gradually increase or decrease the volume 5% every time the level of the Mac's system sound increases or decreases.
In other words: By pressing the button for Volume Up on our Remote it would cause the level of the Master Fader on our Mixer to gradually raise by 5%.
Possible?
Thanks in advance for any help you can give us!!
Scott
Maybe using "Level Box Gang Master" and the "Level Box" plugin
The first thing you need to do is make sure that the Mac sound is set to any device you are not using in QLab, that does allow the system volume to control it.
In my demo I am using Blackhole 2ch which is an audio routing device as the dummy sound preference output.

You then need a script cue, and 16 OSC cues
The script cue reads the system volume, sees if it has changed, and if it has fires one of the 16 OSC cues, numbered V0-V16, which set the gain of the levelBox Plug-in(s)
tell application id "com.figure53.QLab.4" to tell front workspace
set mycue to cue "VOL"
set theVolume to get output volume of (get volume settings)
set the notes of mycue to theVolume as text
repeat
set theVolume to get output volume of (get volume settings)
if theVolume is not (notes of mycue as integer) then
tell application id "com.figure53.QLab.4" to tell front workspace
set mycue to cue "VOL"
set theVolume to get output volume of (get volume settings)
set the notes of mycue to theVolume as text
repeat
set theVolume to get output volume of (get volume settings)
if theVolume is not (notes of mycue as integer) then
if theVolume is 0 then
start cue "V0"
else if theVolume < 7 then
start cue "V1"
else if theVolume < 14 then
start cue "V2"
else if theVolume < 20 then
start cue "V3"
else if theVolume < 26 then
start cue "V4"
else if theVolume < 32 then
start cue "V5"
else if theVolume < 39 then
start cue "V6"
else if theVolume < 45 then
start cue "V7"
else if theVolume < 51 then
start cue "V8"
else if theVolume < 57 then
start cue "V9"
else if theVolume < 64 then
start cue "V10"
else if theVolume < 70 then
start cue "V11"
else if theVolume < 76 then
start cue "V12"
else if theVolume < 82 then
start cue "V13"
else if theVolume < 89 then
start cue "V14"
else if theVolume < 95 then
start cue "V15"
else if theVolume is 100 then
start cue "V16"
end if
end if
delay 0.1
set the notes of mycue to theVolume as text
end repeat
end tell
end if
delay 0.1
set the notes of mycue to theVolume as text
end repeat

