livecodelab icon indicating copy to clipboard operation
livecodelab copied to clipboard

improve bpm so that change in bpm doesn't result in rhythm hiccup...

Open davidedc opened this issue 13 years ago • 0 comments

if the bpm is changed, there is a slight hiccup in the rhythm.

This is because when bpm is changed, the timer that generated the old pace is destroyed, and a new one is created from scratch with the new rhythm. The problem being that the new timer starts from an absolute arbitrary time when the program has changed, so it has no alignment whatsoever to the old pace.

It should be smarter than that: the pace should be updated on the first beat of the old pace, so it is aligned with the "old" beat.

davidedc avatar Nov 23 '12 21:11 davidedc