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);
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)
