Fix beat ticks

This commit is contained in:
Stepland 2022-04-23 17:30:45 +02:00
parent e56b46ff76
commit 79d401727e

View File

@ -440,7 +440,7 @@ int main() {
if (beatTick.shouldPlay) { if (beatTick.shouldPlay) {
const auto previous_beat = editor_state->previous_exact_beats(); const auto previous_beat = editor_state->previous_exact_beats();
const auto current_beat = editor_state->current_exact_beats(); const auto current_beat = editor_state->current_exact_beats();
if (previous_beat % 1 != current_beat % 1) { if (floor_fraction(previous_beat) != floor_fraction(current_beat)) {
beatTick.play(); beatTick.play();
} }
} }