QLab 4 - Console Mutes Via Script and Midi

Contents

Table of Contents

    This script is for those that want an easy option for creating midi cues to turn console mutes on and off on Yamaha digital consoles. I had some help from Rich Walsh at allthatyouhear.com. I am using this to speed up my plotting for entering start cues that start a midi cue in a separate cue list for doing the mutes on and off for radio mics. I had the script 85% right and Rich Walsh helped me out with the rest as my scripting skills are below mediocre. For reference I use a Behringer X-Touch over RTP midi as a control surface with all of my shortcuts mapped to the 92 buttons.

    In my standard template I have facility in my microphone cue list for turning on and off 12 radio mics, 2 shotgun mics and 4 effects mics. The script is easily adapted.

    applescript:

    tell application id "com.figure53.QLab.4" to tell front workspace

    display dialog "Mic Number" default answer "RF" with title "Which Radio Mic Would You Like" buttons {"No Thankyou", "Yes Please"} default button "Yes Please" cancel button "No Thankyou"
    set targetCueNumber to text returned of result
    
    make type "start"
    set newcue to last item of (selected as list) -- You need this line to identify the cue made above so you can act on it
    set cue target of newcue to cue targetCueNumber
    

    end tell

    The start cue is triggering midi cues with cue numbers RF1 and so forth for the ons and RF1.1 and so forth for the offs.

    There is also a non script way of doing this which is to move the start cue in the toolbox to one of the shortcut keys and then use T to set the target cue. While this is a fantastic way to do so it is not as efficient for my personal workflow.

    *** As of 17/07/2018 I have updated this script to remove the need for a dialog box to enter the mic number data.

    applescript:

    tell application id "com.figure53.QLab.4" to tell front workspace

    make type "start"
    set newcue to last item of (selected as list) -- You need this line to identify the cue made above so you can act on it
    set cue target of newcue to cue "RF1"
    

    end tell

    I map the trigger for turning on the mic via midi to the Select Button on channel one of the X-Touch and the trigger to turn the mic off to the Mute Button on channel one.

    You will need to adjust the "RF1" in the final line before the end tell to whatever cue number you have given your on cue. You will also need to reflect the cue targets in the script.

    My mic on cue numbers are all RF1, RF2, RF3 and so on. While I have given the mic off cue numbers RF1.1, RF2.1 and so on.

    Hope this is useful.

    Drew