feat: arrow keys to control bpm/cycle

This commit is contained in:
2025-11-14 10:20:55 +01:00
parent 7739ac8254
commit f0c5ecab16
13 changed files with 77 additions and 23 deletions
+9
View File
@@ -99,8 +99,17 @@ static void add_tap_to_chain(Tempo *tempo, long t) {
}
void tempo_set(Tempo *tempo, float value) {
long t;
long progress;
t = now();
progress = (t - tempo->last_reset) % tempo->beat_length;
tempo->tempo = value;
tempo->beat_length = 60000.0 / value;
reset_tap_chain(tempo, t - progress);
}
void tempo_tap(Tempo *tempo) {