Skip to content

Commit

Permalink
Fixed metronome bug that caused it to glitch when changing bpm
Browse files Browse the repository at this point in the history
  • Loading branch information
soulflyer committed Feb 23, 2012
1 parent e3b0cf8 commit c984a74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/overtone/music/rhythm.clj
Expand Up @@ -49,7 +49,7 @@
(bpm [this new-bpm]
(let [cur-beat (beat this)
new-tick (beat-ms 1 new-bpm)
new-start (- (now) (* new-tick cur-beat))]
new-start (- (beat this cur-beat) (* new-tick cur-beat))]
(reset! start new-start)
(reset! bpm new-bpm))
[:bpm new-bpm])
Expand Down

0 comments on commit c984a74

Please sign in to comment.