second trigger on release to pause audio track

147 views
Skip to first unread message

gunnar.sei...@gmail.com

unread,
Apr 4, 2023, 3:57:56 PM4/4/23
to QLab
Hi there,

I thought it's easy to realize but I can't find it. I want to trigger an audio cue with keystroke 1. So far so easy. But I want it to pause when I release the trigger (keystroke 1). It's playing when I'm pressing th key down and it's pausing when i lift my finger.

How can I solve it? I thought about Bome Midi Translator. Tested it with the trial version. It works but it's expensive. Isn't there something else?

Or am I blind?

Gunnar

micpool

unread,
Apr 4, 2023, 6:01:19 PM4/4/23
to QLab
You can do sampler style triggering while a key is held down, i.e. when the hotkey is pressed the cue starts from the beginning, when the hotkey is released the cue stops, by using second trigger with stop

Screenshot 2023-04-04 at 22.50.49.png

Unfortunately you can't make a cue play /pause with a single hotkey, and you can't script it either, as AppleScript has no easy  way of knowing if a key is released.
If you use a MIDI keyboard you can because both the keydown and the keyup will produce unique triggers which can be used to trigger play and pause cues that target an audio cue.
As in the attached screen recording

Mic

Screen Recording 2023-04-04 at 22.51.01-HD 1080p.mov

micpool

unread,
Apr 4, 2023, 6:27:56 PM4/4/23
to QLab
Actually, I lied

Here is how to do a toggle hotkey play pause of an audio file
Screenshot 2023-04-04 at 23.16.30.png
A start cue and a script cue both have a hotkey trigger "1"

The start cue has a long post wait (with do not continue), to keep the running of the cue true until the hotkey is released (second trigger stops)

The script cue has no second trigger set and repeats an empty loop while the start cue is running.

When the key is released the second trigger on release stops the Start cue (running becomes false), the empty loop stops and the script goes to the line after the repeat loop which is Pause cue "AUD"

Mic
Toggle Hotkey.mov

Andy Dolph

unread,
Apr 4, 2023, 6:40:04 PM4/4/23
to ql...@googlegroups.com
I believe this can be done in Bitfocus Companion with or without a Streamdeck 

On Apr 4, 2023, at 6:01 PM, micpool <m...@micpool.com> wrote:

You can do sampler style triggering while a key is held down, i.e. when the hotkey is pressed the cue starts from the beginning, when the hotkey is released the cue stops, by using second trigger with stop

<Screenshot 2023-04-04 at 22.50.49.png>

Unfortunately you can't make a cue play /pause with a single hotkey, and you can't script it either, as AppleScript has no easy  way of knowing if a key is released.
If you use a MIDI keyboard you can because both the keydown and the keyup will produce unique triggers which can be used to trigger play and pause cues that target an audio cue.
As in the attached screen recording

Mic

On Tuesday, April 4, 2023 at 8:57:56 PM UTC+1 gunnar.sei...@gmail.com wrote:
Hi there,

I thought it's easy to realize but I can't find it. I want to trigger an audio cue with keystroke 1. So far so easy. But I want it to pause when I release the trigger (keystroke 1). It's playing when I'm pressing th key down and it's pausing when i lift my finger.

How can I solve it? I thought about Bome Midi Translator. Tested it with the trial version. It works but it's expensive. Isn't there something else?

Or am I blind?

Gunnar

--
Contact support anytime: sup...@figure53.com
Follow QLab on Twitter: https://twitter.com/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/25422c9e-7c93-49ae-9b2d-54a1e1c86405n%40googlegroups.com.
<Screenshot 2023-04-04 at 22.50.49.png>
<Screen Recording 2023-04-04 at 22.51.01-HD 1080p.mov>

gunnar.sei...@gmail.com

unread,
Apr 5, 2023, 4:51:47 AM4/5/23
to QLab
Thanks guys! I will try that script solution as I want to use a MakeyMakey for my purpose. 

Thanks a lot!

gunnar.sei...@gmail.com

unread,
Apr 5, 2023, 1:40:08 PM4/5/23
to QLab
I just remembered this tool here: soundplant.org. Would also serve the purpose in this simple case.
Reply all
Reply to author
Forward
0 new messages