Playback while watching the playing waveform

614 views
Skip to first unread message

이제형

unread,
Mar 1, 2022, 6:02:15 AM3/1/22
to QLab
Hello!
I want to perform a performance while watching the waveform of the sound source file being played.
I want to open another inspector window and share the waveform with you. Is it okay to request a script?

I looked at the existing scripts, but I couldn't use them because I couldn't move freely.

Thank you

micpool

unread,
Mar 1, 2022, 7:07:48 AM3/1/22
to QLab
The Inspector always shows the selected cue, so one approach would be to make sure that the selected cue is always the last audio cue that was played.
Here's a way of doing this

1. Unlock the playhead and selection in settings/general

Screen Shot 2022-03-01 at 11.51.41.png

2. Hijack the Spacebar GO by deselecting it in settings/Keymap

3. In a separate cue list make a timeline group containing a START cue targeting the Main Cue List and assign SPACE as the hotkey trigger for this cue in the triggers tab.

Screen Shot 2022-03-01 at 11.48.51.png

4. In this Timeline group, make a script cue with this script

tell application id "com.figure53.QLab.4" to tell front workspace
        try
                set thecue to last item of (cues whose running is true and q type is "audio")
                set the selected to thecue
        end try
end tell

So every time you press the spacebar (or any other trigger assigned to the Group cue GO) the Main cue list will GO and the script will place the playhead, and therefore the focus of the inspector on the last audio cue that was played.

Workspace (no Audio) and example screen recording attached:

Mic
Selection follows last audio cue.qlab4
Selection follows last audio cue.mov

Jhy

unread,
Mar 1, 2022, 12:19:23 PM3/1/22
to QLab
thank you!!

2022년 3월 1일 화요일 오후 9시 7분 48초 UTC+9에 micpool님이 작성:

Jake Perrine

unread,
Mar 1, 2022, 8:45:38 PM3/1/22
to QLab
Also, whenI need to do this I simply highlight the audio cue with the inspector open and "preview" (v) the cue instead of executing it, that way the playhead does not move forward and so the waveform stays on the screen.  Obviously doesn't work for audio in group cue, etc.

Connor Ward

unread,
Jun 8, 2023, 10:05:20 PM6/8/23
to QLab
This is so helpful! Is there a way to have a 2nd inspector window display "thecue"

The script compiles fine, but I keep getting errors when running it.
ERROR: QLab got an error: Can't set window "Inspector" or workspace 1 to cue Id DEbZEAbA-tU92-4FE4-A45-
AC06403E32B" of workspace "LOAD JUNE 2023". (-10006)

Screen Shot 2023-06-08 at 6.54.03 PM.png

micpool

unread,
Jun 18, 2023, 6:51:22 AM6/18/23
to QLab
I think your script is more wishful thinking than programming
You can't set a window to a cue and in any case there is no window named "inspector"

What you are wanting can be done, but only through UI scripting which is messy.
This script will only work if you have a second inspector window open, and there are all sorts of things that you would have to test for to make it work in every situation, but the bare bones of what's required is:

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

try

set thecue to last item of (cues whose running is true and q type is "audio")

set theQname to q list name of thecue

end try

end tell

tell application "System Events" to tell application process "QLab"

try

tell (pop up button 1 of (first window whose title contains "Inspector"))

click

delay 0.1

pick (first menu item whose name contains theQname) of menu 1

end tell

end try

end tell



(This script replaces the script in the first example, and if using this you can lock the played to the selection)

It finds the last currently playing audio cue and then scripts a simulation of you selecting the name of that cue in the pop up menu of the second inspector window.

Screenshot 2023-06-18 at 11.26.58.png

This is really only a proof of concept, and I think you would probably want to refine this considerably before you relied on it, but having said that,it will just fail silently and probably won't affect anything else so is quite harmless.

Screen recording  and workspace (QLab4) attached

Mic
Selection last audio cue in second window.qlab4
Pop out Window.mov
Reply all
Reply to author
Forward
0 new messages