feat: hotkeys in config

This commit is contained in:
klemek committed 2025-11-14 11:49:02 +01:00
1 parent 4ddb5241b4
commit d094a6c895
9 files changed
+189 -35

No files matched your search

+4 -1
View File
@@ -25,12 +25,15 @@ static void reset_tap_chain(Tempo *tempo, long t) {
memset(tempo->tap_durations, 0, sizeof(tempo->tap_durations));
}
void tempo_init(Tempo *tempo) {
void tempo_init(Tempo *tempo, float value) {
long t;
t = now();
reset_tap_chain(tempo, t);
tempo->tempo = value;
tempo->beat_length = 60000.0 / value;
}
static bool is_chain_active(const Tempo tempo, long t) {