How to set host.scheduleTask delay in beat time?

Post Reply New Topic
RELATED
PRODUCTS

Post

I'm working on a script where I would like an LED lit pad to toggle on/off every 1/8 note while a clip is recording. I've tried using using host.scheduleTask, and I can get it flashing just fine, but setting the delay to 30,000/tempo (30 seconds / bpm) doesn't seem to match the tempo at all.

Any thoughts?

Post

I should have guessed from your other question that you are intending something like this. At least currently it is not possible to get a steady clock inside the script. I tried a couple of approaches before, e.g. your approach, using time signals, etc. All was very jumpy and unusable.

Post

Just for recording ? You might be able to use BeatTime#addTimeObserver or addRawValueObserver.
Nektar Panorama's transport mode has pretty good timing for display beat-time.

Post Reply

Return to “Controller Scripting”