Control Surface  1.1.0
MIDI Control Surface library for Arduino
Macros | Variables
Settings/Settings.hpp File Reference

All user settings and debugging options can be changed here. More...

#include "NamespaceSettings.hpp"
#include <stddef.h>
#include <stdint.h>
Include dependency graph for Settings/Settings.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FATAL_ERRORS
 The debug output. More...
 
#define IGNORE_SYSEX   0
 Don't parse incoming System Exclusive messages. More...
 

Variables

constexpr unsigned long VU_PEAK_DECAY_TIME = 300
 The time in milliseconds it takes for the VU meter display peak bar to drop one unit (i.e. More...
 
constexpr unsigned long VU_PEAK_HOLD_TIME = 400
 The time in milliseconds that a VU meter display peak bar stays at the peak before decaying. More...
 
constexpr bool VU_PEAK_SMOOTH_DECAY = true
 If set to true, the VU meter display peak bars will decay smoothly (i.e. More...
 
constexpr uint8_t NOTE_VELOCITY_THRESHOLD = 1
 Determines when a note input should be interpreted as 'on'. More...
 
constexpr size_t SYSEX_BUFFER_SIZE = 128
 The length of the maximum System Exclusive message that can be received. More...
 
constexpr unsigned long HAIRLESS_BAUD = 115200
 The baud rate to use for Hairless MIDI. More...
 
constexpr uint8_t MAX_FPS = 60
 The maximum frame rate of the displays. More...
 

Detailed Description

All user settings and debugging options can be changed here.

Definition in file Settings/Settings.hpp.

Macro Definition Documentation

◆ FATAL_ERRORS

#define FATAL_ERRORS

The debug output.

Exit when encountering an error, instead of trying to recover (recommended).

Definition at line 26 of file Settings/Settings.hpp.

◆ IGNORE_SYSEX

#define IGNORE_SYSEX   0

Don't parse incoming System Exclusive messages.

Definition at line 47 of file Settings/Settings.hpp.

Variable Documentation

◆ VU_PEAK_DECAY_TIME

constexpr unsigned long VU_PEAK_DECAY_TIME = 300
constexpr

The time in milliseconds it takes for the VU meter display peak bar to drop one unit (i.e.

one twelfth of the complete scale).

Definition at line 33 of file Settings/Settings.hpp.

◆ VU_PEAK_HOLD_TIME

constexpr unsigned long VU_PEAK_HOLD_TIME = 400
constexpr

The time in milliseconds that a VU meter display peak bar stays at the peak before decaying.

Definition at line 37 of file Settings/Settings.hpp.

◆ VU_PEAK_SMOOTH_DECAY

constexpr bool VU_PEAK_SMOOTH_DECAY = true
constexpr

If set to true, the VU meter display peak bars will decay smoothly (i.e.

one pixel at a time), if set to false, they will decay one unit at a time. *‍/

Definition at line 41 of file Settings/Settings.hpp.

◆ NOTE_VELOCITY_THRESHOLD

constexpr uint8_t NOTE_VELOCITY_THRESHOLD = 1
constexpr

Determines when a note input should be interpreted as 'on'.

Definition at line 44 of file Settings/Settings.hpp.

◆ SYSEX_BUFFER_SIZE

constexpr size_t SYSEX_BUFFER_SIZE = 128
constexpr

The length of the maximum System Exclusive message that can be received.

The maximum length sent by the MCU protocol is 120 bytes.

Definition at line 53 of file Settings/Settings.hpp.

◆ HAIRLESS_BAUD

constexpr unsigned long HAIRLESS_BAUD = 115200
constexpr

The baud rate to use for Hairless MIDI.

Definition at line 56 of file Settings/Settings.hpp.

◆ MAX_FPS

constexpr uint8_t MAX_FPS = 60
constexpr

The maximum frame rate of the displays.

Examples
2.VU-Meter-OLED-USB-DAC.ino.

Definition at line 59 of file Settings/Settings.hpp.