|
Post by julienj on Dec 2, 2023 11:32:54 GMT
Hi! Is it possible to have a delay based on tempo instead of milliseconds? It would be usefull especially if the tempo is evolving ;-)
|
|
|
Post by redheronmusic on Dec 17, 2023 14:32:17 GMT
The data is available, just gotta decide on an approach.
From the manual : "The special variable 'BP' (or 'BPM' if you like) will contain the current tempo (if known) of the host or in the standalone version of any MIDI clock received. The BPM value is in 100's of the BPM, so for example a BPM of 127.32 will have a value in the variable of 12732."
So you can do calculation on this to calculate a delay value. Note this appears to be a binary coded decimal value, so you might have to do a conversion to a true hex value for calculation.
As an alternative, you could monitor the F8 (timing clock) messages to set a timer, and do the tempo calculation. Either is approach is going to require some calculation.
|
|