how to automatically stop previous cue on firing new cue

4,702 views
Skip to first unread message

brandt attema

unread,
Feb 2, 2015, 5:02:27 PM2/2/15
to ql...@googlegroups.com
Hello all, sorry for maybe a stupid question, but I can not find an easy way to automatically stop the former audio cue on firing the next audio cue. I can make it happen with an extra stop cue in between, but since I'll have to make about 150 new audio cues(and therefor 150 stopcues...), I was hoping to safe time somehow with an easier sollution.

If anyone knows which simple sollution I have overlooked, I'd be very happy with your help! Thanks in advance!

Brandt

Sam Kusnetz

unread,
Feb 2, 2015, 5:05:51 PM2/2/15
to ql...@googlegroups.com
Hello Brandt
February 2, 2015 at 5:02 PM
Hello all, sorry for maybe a stupid question, but I can not find an easy way to automatically stop the former audio cue on firing the next audio cue. I can make it happen with an extra stop cue in between, but since I'll have to make about 150 new audio cues(and therefor 150 stopcues...), I was hoping to safe time somehow with an easier sollution.


Stop cues (or Fade cues) are the exact right way to do this.

Cheerio
Sam

--
Sam Kusnetz | Figure 53 Field Operative
s...@figure53.com

micpool

unread,
Feb 2, 2015, 5:57:10 PM2/2/15
to ql...@googlegroups.com
This is not a 'simple solution' but is quite straightforward if you understand how scripts work in Qlab, and  you have a paid for version of Qlab (and can therefore use script cues) 

You can use this script  to automatically generate the required stops for each cue. The script  creates a stop cue for the previous cue (actually a 0.1s fade) and groups it with the new cue, giving the group the q number of the audio cue it contains


Put this script in a script cue and  give the cue a hotkey trigger:





set userDownTime to 0.1 -- Time for previous audio  to fade  in
-- Declarations
set notFirstCue to false
-- Main routine
tell application id "com.figure53.qlab.3" to tell front workspace
set selectedCues to selected as list
repeat with eachCue in selectedCues
if q type of eachCue is "audio" then -- Any other selected cues will be ignored; the sequence will end up after them
-- Make a fade out cue (not for the first cue)
if notFirstCue then
make type "Fade" -- Cue numbers and names not altered from QLab defaults
set fadeOutCue to last item of (selected as list)
set cue target of fadeOutCue to previousCue
set duration of fadeOutCue to userDownTime
fadeOutCue setLevel row 0 column 0 db -120
set stop target when done of fadeOutCue to true
set the q number of fadeOutCue to ""
end if
-- Make a Group Cue (have to do this here to get round QLab's auto-grouping of selections ≥ 2 cues)
make type "Group" -- Cue numbers not altered from QLab defaults
set groupCue to last item of (selected as list)
set mode of groupCue to fire_all
set q name of groupCue to q list name of eachCue & " [STOP previous] "
set theqnumber to the q number of eachCue
set the q number of eachCue to ""
set the q number of groupCue to theqnumber
-- Move cues into right place
move cue id (uniqueID of eachCue) of parent of eachCue to end of groupCue
if notFirstCue then move cue id (uniqueID of fadeOutCue) of parent of fadeOutCue to end of groupCue
-- Setup variables for next pass
set previousCue to eachCue
set notFirstCue to true
end if
end repeat
end tell



Instructions:

Put your 150 audio cues in the cue list

Highlight them all

Press the hotkey for the script cue


If you are going to try this, do  it in a test workspace first, and before applying it to your main workspace make sure you have a copy you can go back to if it all goes wrong.


Mic
Reply all
Reply to author
Forward
0 new messages