You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if a loop is running from start > 0 to end > start (set by setLoopRange()) and setTempo() is called I observed:
buffer positions of audio events are scaled according to ratio (oldTempo/newTempo)
min_buffer_position stays untouched (but should be scaled too?)
max_buffer_position is samples_per_bar * amount_of_bars bout should be min_buffer_position + samples_per_bar * amount_of_bars
Maybe I'm not using it correctly. But changing handleTempoUpdate() to:
float ratio = tempo / aQueuedTempo;
....
min_buffer_position = min_buffer_position * ratio;
max_buffer_position = ( min_buffer_position + samples_per_bar * amount_of_bars ) - 1;
Helped me.
The text was updated successfully, but these errors were encountered:
if a loop is running from start > 0 to end > start (set by setLoopRange()) and setTempo() is called I observed:
Maybe I'm not using it correctly. But changing handleTempoUpdate() to:
float ratio = tempo / aQueuedTempo;
....
min_buffer_position = min_buffer_position * ratio;
max_buffer_position = ( min_buffer_position + samples_per_bar * amount_of_bars ) - 1;
Helped me.
The text was updated successfully, but these errors were encountered: