tap tempo
This commit is contained in:
@@ -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 */
|
||||
Reference in New Issue
Block a user