tap tempo

This commit is contained in:
2025-10-02 23:30:25 +02:00
parent 4a5267f429
commit bbe96b3cd2
10 changed files with 216 additions and 10 deletions
+40
View File
@@ -1,6 +1,8 @@
#ifndef CONFIG_H
#define CONFIG_H
/* PACKAGE */
#ifndef PACKAGE
#define PACKAGE "forge"
#endif /* PACKAGE */
@@ -9,6 +11,8 @@
#define VERSION "(dev)"
#endif /* VERSION */
/* TYPES */
#ifndef MAX_VIDEO
#define MAX_VIDEO 16
#endif
@@ -17,6 +21,8 @@
#define MAX_FRAG 64
#endif
/* MIDI */
#ifndef UNSET_MIDI_CODE
#define UNSET_MIDI_CODE 300
#endif
@@ -25,6 +31,8 @@
#define MIDI_MAX 127
#endif
/* ARRAY */
#ifndef ARRAY_SIZE
#define ARRAY_SIZE 1024
#endif
@@ -33,4 +41,36 @@
#define ARRAY_NOT_FOUND ARRAY_SIZE + 1
#endif
/* TEMPO */
#ifndef MAX_BEAT_LENGTH
// 30.0 bpm
#define MAX_BEAT_LENGTH 2000
#endif
#ifndef MIN_BEAT_LENGTH
// 240.0 bpm
#define MIN_BEAT_LENGTH 250
#endif
#ifndef BEATS_UNTIL_CHAIN_RESET
#define BEATS_UNTIL_CHAIN_RESET 3
#endif
#ifndef TOTAL_TAP_VALUES
#define TOTAL_TAP_VALUES 8
#endif
#ifndef SKIPPED_TAP_THRESHOLD_LOW
#define SKIPPED_TAP_THRESHOLD_LOW 1.75
#endif
#ifndef SKIPPED_TAP_THRESHOLD_HIGH
#define SKIPPED_TAP_THRESHOLD_HIGH 2.75
#endif
#ifndef MAX_TAP_VALUES
#define MAX_TAP_VALUES 10
#endif
#endif /* CONFIG_H */