Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviergodart committed Aug 14, 2024
1 parent 088529c commit 5fdda59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sequencer/clock.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 5fdda59

Please sign in to comment.