Control Surface  1.1.1
MIDI Control Surface library for Arduino
Settings/Settings.hpp
Go to the documentation of this file.
1 #ifndef CS_SETTINGSWRAPPER_HPP
2 #error "Do not include this file directly, use the wrapper!"
3 #endif
4 
12 #include "NamespaceSettings.hpp"
13 #include <stddef.h>
14 #include <stdint.h>
15 
17 
18 // ----------------------------- Debug Settings ----------------------------- //
19 // ========================================================================== //
20 
22 // #define DEBUG_OUT Serial
23 
24 // #define DEBUG_MIDI_PACKETS
25 
27 #define FATAL_ERRORS
28 
29 // ----------------------------- User Settings ------------------------------ //
30 // ========================================================================== //
31 
34 constexpr unsigned long VU_PEAK_DECAY_TIME = 300; // milliseconds
35 
38 constexpr unsigned long VU_PEAK_HOLD_TIME = 400; // milliseconds
39 
42 constexpr bool VU_PEAK_SMOOTH_DECAY = true;
43 
45 constexpr uint8_t NOTE_VELOCITY_THRESHOLD = 1;
46 
48 #define IGNORE_SYSEX 0
49 
54 constexpr size_t SYSEX_BUFFER_SIZE = 128;
55 
57 constexpr unsigned long HAIRLESS_BAUD = 115200;
58 
60 constexpr uint8_t MAX_FPS = 60;
61 
62 // ========================================================================== //
63 
HAIRLESS_BAUD
constexpr unsigned long HAIRLESS_BAUD
The baud rate to use for Hairless MIDI.
Definition: Settings/Settings.hpp:57
BEGIN_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
Definition: Settings/NamespaceSettings.hpp:9
VU_PEAK_HOLD_TIME
constexpr unsigned long VU_PEAK_HOLD_TIME
The time in milliseconds that a VU meter display peak bar stays at the peak before decaying.
Definition: Settings/Settings.hpp:38
END_CS_NAMESPACE
#define END_CS_NAMESPACE
Definition: Settings/NamespaceSettings.hpp:10
MAX_FPS
constexpr uint8_t MAX_FPS
The maximum frame rate of the displays.
Definition: Settings/Settings.hpp:60
VU_PEAK_DECAY_TIME
constexpr unsigned long VU_PEAK_DECAY_TIME
The time in milliseconds it takes for the VU meter display peak bar to drop one unit (i....
Definition: Settings/Settings.hpp:34
NOTE_VELOCITY_THRESHOLD
constexpr uint8_t NOTE_VELOCITY_THRESHOLD
Determines when a note input should be interpreted as 'on'.
Definition: Settings/Settings.hpp:45
VU_PEAK_SMOOTH_DECAY
constexpr bool VU_PEAK_SMOOTH_DECAY
If set to true, the VU meter display peak bars will decay smoothly (i.e.
Definition: Settings/Settings.hpp:42
SYSEX_BUFFER_SIZE
constexpr size_t SYSEX_BUFFER_SIZE
The length of the maximum System Exclusive message that can be received.
Definition: Settings/Settings.hpp:54