How to synchronize playNote with bitwig's playback?

Post Reply New Topic
RELATED
PRODUCTS

Post

I want to programmatically play notes at well-defined times. At the moment I'm planning to just fake it by using a fast-running thread and System.nanoTime but this feels hackish and I'm not sure what kind of performance/synchronization issues it will cause.

Is there an easy way to subscribe to events for particular timing subdivisions? E.g. every 1/16th note (or 48th note, to support triplets)?

Post

cogwheel wrote: Tue May 09, 2023 8:21 pm I want to programmatically play notes at well-defined times. At the moment I'm planning to just fake it by using a fast-running thread and System.nanoTime but this feels hackish and I'm not sure what kind of performance/synchronization issues it will cause.

Is there an easy way to subscribe to events for particular timing subdivisions? E.g. every 1/16th note (or 48th note, to support triplets)?
you can try it... curious what you find. All the transport data gets updated during flush(). i doubt you'll be able to get timing accurate stuff... but if you do that would be sick.
----------------------------------------------------------------------
http://instagram.com/kirkwoodwest/
http://soundcloud.com/kirkwoodwest

Post Reply

Return to “Controller Scripting”