File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ -- @description Set midi trigger of selected cue
2+ -- @author Ben Smith
3+ -- @link bensmithsound.uk
4+ -- @version 1.0
5+ -- @testedmacos 10.14.6
6+ -- @testedqlab 4.6.10
7+ -- @about Sets the midi trigger of the currently selected cue to a program change
8+ -- @separateprocess TRUE
9+
10+ -- @changelog
11+ -- v1.0 + init
12+
13+
14+ -- -- RUN SCRIPT ---------------------------
15+
16+ -- ask for the value
17+ set theResult to display dialog " What program change value would you like to use to trigger this cue?" default answer ""
18+
19+ -- catch errors in user submission
20+ try
21+ set midiValue to text returned of theResult as integer
22+ on error
23+ display dialog " That value was not an integer. Please try again."
24+ error -128
25+ end try
26+
27+ tell application id " com.figure53.Qlab.4" to tell front workspace
28+
29+ -- get selected cue
30+ set selectedCue to last item of (selected as list )
31+
32+ -- set midi trigger for selected cue
33+ tell selectedCue
34+ set midi trigger to enabled
35+ set midi command to program_change
36+ set midi byte one to midiValue
37+ end tell
38+
39+ end tell
You can’t perform that action at this time.
0 commit comments