tell application id "com.figure53.QLab.5" to tell front workspace
set themax to -20
set themin to -30
set theGroupCue to last item of (selected as list)
repeat with eachCue in cues of theGroupCue
if q type of eachCue is "audio" then
set newLevel to (random number from themin to themax)
eachCue setLevel row 0 column 0 db newLevel
end if
end repeat
end tell
set newLevel to themin + (random number from 0 to 1) * (themax - themin)
tell application id "com.figure53.QLab.5" to tell front workspace
set levelsList to {-30, -20}
set theGroupCue to last item of (selected as list)
if the q type of theGroupCue is "group" then
repeat with eachCue in cues of theGroupCue
if q type of eachCue is "audio" then
eachCue setLevel row 0 column 0 db (some item of levelsList)
end if
end repeat
end if
end tell
which is easy to adapt for more than 2 possible levels e.g
set levelsList to {-3, -6,-9,-60}
Mic
--
Contact support anytime: sup...@figure53.com
Follow QLab on Threads: https://threads.net/@QLabApp
User Group Code of Conduct: https://qlab.app/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "QLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qlab+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/20fae714-52f2-49d9-9820-f3bfdea8a143n%40googlegroups.com.