Cue marker position as realtime?

Post Reply New Topic
RELATED
PRODUCTS

Post

Hi, I want to get the absolute realtime position (in seconds + milliseconds) of cue markers.
With a fixed tempo it is no problem to calculate it manually:

Code: Select all

double posTime = cueMarker.position().get()/transport.tempo().getRaw()*60;
int minutes = (int) posTime/60;
posTime-=minutes;
int seconds = (int) posTime;
posTime-=seconds;
int millis = (int) (posTime*1000);
String posTimeString = String.format("%d:%02d.%03d", minutes, seconds, millis);
But especially when there is tempo automation it cannot be simply calculated would be good to have a native function for that.

So: Is there something that gives me the realtime position of a cue marker? Or maybe for the transport playPosition? (Then I could move the playhead to the desired cue marker and read out the realtime value)

Post Reply

Return to “Controller Scripting”