diff --git a/sequencer/clock.go b/sequencer/clock.go index 6098acc..ea14538 100644 --- a/sequencer/clock.go +++ b/sequencer/clock.go @@ -46,6 +46,8 @@ func newClock(tempo float64, tick func()) *clock { c.shouldUpdate = false } case newTempo := <-c.update: + // we way for the next tick to update in order + // to prevent jitter c.shouldUpdate = true c.tempo = newTempo }