Control Surface new-input
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 
21 // #define DEBUG_MIDI_PACKETS
22 
23 // ----------------------------- User Settings ------------------------------ //
24 // ========================================================================== //
25 
28 constexpr unsigned long VU_PEAK_DECAY_TIME = 300; // milliseconds
29 
32 constexpr unsigned long VU_PEAK_HOLD_TIME = 400; // milliseconds
33 
36 constexpr bool VU_PEAK_SMOOTH_DECAY = true;
37 
39 constexpr uint8_t NOTE_VELOCITY_THRESHOLD = 1;
40 
42 #define IGNORE_SYSEX 0
43 
48 constexpr size_t SYSEX_BUFFER_SIZE = 128;
49 
51 constexpr unsigned long SYSEX_CHUNK_TIMEOUT = 500;
52 
54 constexpr unsigned long HAIRLESS_BAUD = 115200;
55 
57 constexpr uint8_t MAX_FPS = 60;
58 
59 // ========================================================================== //
60 
#define END_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
constexpr size_t SYSEX_BUFFER_SIZE
The length of the maximum System Exclusive message that can be received.
constexpr bool VU_PEAK_SMOOTH_DECAY
If set to true, the VU meter display peak bars will decay smoothly (i.e.
constexpr unsigned long VU_PEAK_HOLD_TIME
The time in milliseconds that a VU meter display peak bar stays at the peak before decaying.
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....
constexpr unsigned long SYSEX_CHUNK_TIMEOUT
Timeout in milliseconds to wait for a SysEx chunk to complete.
constexpr uint8_t MAX_FPS
The maximum frame rate of the displays.
constexpr uint8_t NOTE_VELOCITY_THRESHOLD
Determines when a note input should be interpreted as 'on'.
constexpr unsigned long HAIRLESS_BAUD
The baud rate to use for Hairless MIDI.