Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
Macros | Variables
Settings.hpp File Reference
#include "NamespaceSettings.hpp"
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Macros

#define IGNORE_SYSEX   0
 Don't parse incoming System Exclusive messages.
 
#define NO_SYSEX_OUTPUT   0
 Don't include code for sending System Exclusive messages.
 
#define CS_TRUE_CONTROL_SURFACE_INSTANCE   1
 Define the global instance Control_Surface as a true global variable.
 
#define DISABLE_PIPES   0
 Disable MIDI pipe support.
 

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.
 
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.
 
constexpr bool VU_PEAK_SMOOTH_DECAY = true
 If set to true, the VU meter display peak bars will decay smoothly (i.e.
 
constexpr uint8_t NOTE_VELOCITY_THRESHOLD = 1
 Determines when a note input should be interpreted as 'on'.
 
constexpr uint16_t SYSEX_BUFFER_SIZE = 128
 The length of the maximum System Exclusive message that can be received.
 
constexpr unsigned long SYSEX_CHUNK_TIMEOUT = 500
 Timeout in milliseconds to wait for a SysEx chunk to complete.
 
constexpr unsigned long HAIRLESS_BAUD = 115200
 The baud rate to use for Hairless MIDI.
 
constexpr uint8_t MAX_FPS = 60
 The maximum frame rate of the displays.
 

Macro Definition Documentation

◆ IGNORE_SYSEX

#define IGNORE_SYSEX   0

Don't parse incoming System Exclusive messages.

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

◆ NO_SYSEX_OUTPUT

#define NO_SYSEX_OUTPUT   0

Don't include code for sending System Exclusive messages.

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

◆ CS_TRUE_CONTROL_SURFACE_INSTANCE

#define CS_TRUE_CONTROL_SURFACE_INSTANCE   1

Define the global instance Control_Surface as a true global variable.

Otherwise it is defined as a macro.

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

◆ DISABLE_PIPES

#define DISABLE_PIPES   0

Disable MIDI pipe support.

As a consequence, you won't be able to use multiple MIDI interfaces with Control_Surface, but you will save a couple hundred bytes of RAM.

Definition at line 66 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 28 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 32 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 36 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 39 of file Settings/Settings.hpp.

◆ SYSEX_BUFFER_SIZE

constexpr uint16_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 48 of file Settings/Settings.hpp.

◆ SYSEX_CHUNK_TIMEOUT

constexpr unsigned long SYSEX_CHUNK_TIMEOUT = 500
constexpr

Timeout in milliseconds to wait for a SysEx chunk to complete.

Definition at line 51 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 54 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 57 of file Settings/Settings.hpp.