Fix bug where metronome would skip beats at very fast tempos