Any way to record "time markers"??

155 views
Skip to first unread message

Carl.

unread,
Mar 25, 2015, 4:15:03 AM3/25/15
to ql...@googlegroups.com
I have a very complex scene in a show which involves a number of mic mutes and volume changes in a short space of time over a music track.

I can achieve this by sending OSC commands to my X32 desk, but it will take forever to program these in..... unless theres a way to insert markers "on the fly" as the track is playing so i can then go back and edit the markers into OSC rather than working out the exact time that the cue needs to fire within the track.

Does this make any sense?

If so, is it achievable?

Carl.


Rich Walsh

unread,
Mar 25, 2015, 4:31:34 AM3/25/15
to ql...@googlegroups.com
The elements to do this are here: https://figure53.hostedwiki.co/pages/QLab%20Script%20-%20stopwatch%20fade%20maker.html; remarkably with some superficial testing it seems to still work in v3 on Mountain Lion! It would be pretty easy to change it to make OSC Cues.

Rich

--
--
Change your preferences or unsubscribe here:
http://groups.google.com/group/qlab
 
Follow Figure 53 on Twitter: http://twitter.com/Figure53

---
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.
For more options, visit https://groups.google.com/d/optout.

Carl.

unread,
Mar 25, 2015, 4:37:29 AM3/25/15
to ql...@googlegroups.com
Oh god!!

Thats like a foreign language LOL.

Where wouldI even start with this?

Carl.

Carl.

unread,
Mar 25, 2015, 4:42:18 AM3/25/15
to ql...@googlegroups.com
Aaah I've got it sort of working i have the ability to insert time markers now but the audio track doesn't seem to play for me to be able to add them in the correct place.

Carl.

On Wednesday, 25 March 2015 08:15:03 UTC, Carl. wrote:

Rich Walsh

unread,
Mar 25, 2015, 4:49:43 AM3/25/15
to ql...@googlegroups.com
How are you running the script? Any error messages? What Mac OS (bits of AppleScript randomly break with each update – in that their behaviour changes and scripts fall over)?

Do you have "Lock playback position to selection" checked in the preferences?

Rich

Carl Young

unread,
Mar 25, 2015, 5:33:12 AM3/25/15
to ql...@googlegroups.com
I imported the script. Compiled it and when trying to run it, it mentions that no audio cue is selected. 

So if I put the script AFTER an audio cue and allow follow on the script runs and I'm able to create markers but cannot hear the audio track at all. 

Using MacBook Pro on Yosemite. 

I've not used lock playback function before. 

Carl. 

Sent from my iPhone
--
--
Change your preferences or unsubscribe here:
http://groups.google.com/group/qlab
 
Follow Figure 53 on Twitter: http://twitter.com/Figure53

---
You received this message because you are subscribed to a topic in the Google Groups "QLab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qlab/0eWK8mrVG08/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qlab+uns...@googlegroups.com.

Rich Walsh

unread,
Mar 25, 2015, 5:40:50 AM3/25/15
to ql...@googlegroups.com
Did you not read the line "This script is not designed to be run from within QLab!"?

You need to run it in AppleScript Editor or using the Script menulet.

It might work on a Hot Key, but I didn't write it to do that (I put stuff on Hot Keys that do simple macro-type things I use every day; longer analysis-type jobs I run from the Script menulet when a particular show needs them).

Rich

Carl Young

unread,
Mar 25, 2015, 5:48:21 AM3/25/15
to ql...@googlegroups.com
Aah ok I see. This is my first ever time using scripts so I'm a bit blue. 

So load the script in AppleScript and it will trigger qlab to play the selected audio cue?

Carl. 

Sent from my iPhone

micpool

unread,
Mar 25, 2015, 6:03:58 AM3/25/15
to ql...@googlegroups.com
Here's a much simpler script that can go on a hotkey.  It will generate an OSC cue with a pre wait every time you hit the hotkey. Then you just select all the created  OSC cues and your audio cue, create a group and set it's type as Fire All

tell front workspace
make type "OSC"
set currentcue to last item of (selected as list)
set audiocue to first item of (active cues as list)
set pre wait of currentcue to action elapsed of audiocue
end tell

example workspace attached



Mic
Marker generator.cues

Carl Young

unread,
Mar 25, 2015, 6:19:02 AM3/25/15
to ql...@googlegroups.com
Hi Mic

Thanks. I'll play around with it too. As I mentioned I'm very new to scripts. 

I'm confused as to how I actually "use" scripts. 

Are they saved externally or used within qlab? I assume it depends on the script right?

So a step by step guide to yours would be really helpful. 

Carl. 

Sent from my iPhone
--
--
Change your preferences or unsubscribe here:
http://groups.google.com/group/qlab
 
Follow Figure 53 on Twitter: http://twitter.com/Figure53

---
You received this message because you are subscribed to a topic in the Google Groups "QLab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qlab/0eWK8mrVG08/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qlab+uns...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<Marker generator.cues>

Carl Young

unread,
Mar 25, 2015, 6:19:48 AM3/25/15
to ql...@googlegroups.com
Sorry didn't realise attachment  

Using mobile device. 

Will play with this and come back to you. 

Carl. 

Sent from my iPhone

On 25 Mar 2015, at 10:03, micpool <m...@micpool.com> wrote:

--
--
Change your preferences or unsubscribe here:
http://groups.google.com/group/qlab
 
Follow Figure 53 on Twitter: http://twitter.com/Figure53

---
You received this message because you are subscribed to a topic in the Google Groups "QLab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qlab/0eWK8mrVG08/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qlab+uns...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<Marker generator.cues>

micpool

unread,
Mar 25, 2015, 6:39:38 AM3/25/15
to ql...@googlegroups.com, ma...@carlyoung.co.uk
No problem

If it does what you wan,t let me know what type of OSC cues you are using and I can change it so it can set those automatically as well.

To use the example you will have to target the audio cue (which will have a red x when you download it) to your audio file.

Then play the audio and hit the "§" key every time you want an OSC cue.

Then  select your audio  and all the  new OSC cues and make a group cue, change the type to fire all

Mic

Carl Young

unread,
Mar 25, 2015, 7:35:34 AM3/25/15
to ql...@googlegroups.com
Yep. This is great. Works perfect. 

The OSC commands I'll be sending for each trigger will be

Channel [no tbc] unmute
Channel [no tbc] fader level [tbc]

Cheers

Carl. 

Sent from my iPhone

Rich Walsh

unread,
Mar 25, 2015, 7:48:41 AM3/25/15
to ql...@googlegroups.com
Now look at you with your fancy QLab 3 "action elapsed" handler! I did include this line 5 years ago:

-- ###ADD### When (if) possible, pull more accurate times from QLab itself

One day my daughter will switch from generating housework to doing housework and I'll have free time again to update everything for v3…

Rich

On 25 Mar 2015, at 10:03, micpool <m...@micpool.com> wrote:

micpool

unread,
Mar 25, 2015, 8:58:06 PM3/25/15
to ql...@googlegroups.com, ma...@carlyoung.co.uk
Here is a version customised for your requirement.

Same hotkey (§) but generates 2 OSC cues for each marker

I don't know the OSC for the messages you need for the Behringer so you need to put those into the script cue GEN to replace my placeholder strings

The cue MM is there as a workaround, because there is a missing applescript hook to set the Message Type. Where this would have come in the script I have used 

start cue "MM"

instead to fire the OSC to change the message type

I have assumed you will keep OSC patch 1 as local host and use OSC patch 2 as your Behringer patch, but again that's easily edited in the GEN script (although you do need the localhost patch to be retained for the message type workaround to function)

Mic
Marker generatorv2.cues

Carl.

unread,
Mar 26, 2015, 5:02:07 AM3/26/15
to ql...@googlegroups.com
Thats great. Thanks so much. Although i don't understand a lot of it at the moment, I'm playing.

One thing though... how do import your script into existing V3 projects? for some reason when I make a script cue and copy your script code into it and compile it, it doesn't run. I have to open your workspace and copy existing V3 cues into it, so I'm obviously missing steps.

Carl


 

On Wednesday, 25 March 2015 08:15:03 UTC, Carl. wrote:

micpool

unread,
Mar 26, 2015, 6:27:20 AM3/26/15
to ql...@googlegroups.com
You can open my workspace and your workspace and select the cues in my workspace you want to copy, copy them , and paate them in your workspace.

At the moment If you have cue MM in your workspace with the correct OSC message the most likely thing that would mean it doesnt run, is that you have not assigned a hot key to the script cue.

On the basics tab of the script cue, click in the hotkey field and press the hotkey you want.

Mic

Carl.

unread,
Mar 27, 2015, 9:40:44 AM3/27/15
to ql...@googlegroups.com
Hi

Got it working. Thanks for all your help.

Here's it in action:


Carl.



On Wednesday, 25 March 2015 08:15:03 UTC, Carl. wrote:

Garrett Ohler

unread,
May 28, 2015, 3:30:42 AM5/28/15
to ql...@googlegroups.com
I've tried coming up with a way to make this same concept with Timecode. So that when you press a hotkey it would either create a cue that had a timecode trigger or just add timecode to cues already created.

However, I can't seem to find a way to get the Timecode in or even add it to the trigger section with Applescript or OSC. Wasn't sure if there was even a way to do it currently but I'd be interested if there was.

Also, for anyone interested, I have edited Mic's script slightly for my purposes. I wanted to add the time to existing cues and then advance to the next cue automatically.

tell application id "com.figure53.qlab.3" to tell front workspace
set audiocue to first item of (active cues as list)
set thewaiter to (action elapsed of audiocue)
set currentcue to last item of (selected as list)
set pre wait of currentcue to thewaiter
end tell

-- Move down to the next cue

tell application "System Events"
key code 125
end tell

Enjoy!
Reply all
Reply to author
Forward
0 new messages