Control Surface pin-t-adl
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
28constexpr unsigned long VU_PEAK_DECAY_TIME = 300; // milliseconds
29
32constexpr unsigned long VU_PEAK_HOLD_TIME = 400; // milliseconds
33
36constexpr bool VU_PEAK_SMOOTH_DECAY = true;
37
39constexpr uint8_t NOTE_VELOCITY_THRESHOLD = 1;
40
42#define IGNORE_SYSEX 0
43
48constexpr size_t SYSEX_BUFFER_SIZE = 128;
49
51constexpr unsigned long SYSEX_CHUNK_TIMEOUT = 500;
52
54constexpr unsigned long HAIRLESS_BAUD = 115200;
55
57constexpr uint8_t MAX_FPS = 60;
58
61#define CS_TRUE_CONTROL_SURFACE_INSTANCE 1
62
63// ========================================================================== //
64
#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.