FastLED 3.9.15
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
DefaultSettings Struct Reference

Detailed Description

Default Settings for the MIDI Library.

To change the default settings, don't edit them there, create a subclass and override the values in that subclass, then use the MIDI_CREATE_CUSTOM_INSTANCE macro to create your instance. The settings you don't override will keep their default value. Eg:

struct MySettings : public midi::DefaultSettings
{
static const unsigned SysExMaxSize = 1024; // Accept SysEx messages up to 1024 bytes long.
};
MIDI_CREATE_CUSTOM_INSTANCE(HardwareSerial, Serial2, midi, MySettings);
#define MIDI_CREATE_CUSTOM_INSTANCE(Type, SerialPort, Name, Settings)
Create an instance of the library attached to a serial port with custom settings.
Definition serialMIDI.h:121
static const unsigned SysExMaxSize

Definition at line 49 of file midi_Settings.h.

#include <midi_Settings.h>

Static Public Attributes

static const bool HandleNullVelocityNoteOnAsNoteOff = true
 
static const uint16_t SenderActiveSensingPeriodicity = 0
 
static const unsigned SysExMaxSize = 128
 
static const bool Use1ByteParsing = true
 
static const bool UseReceiverActiveSensing = false
 
static const bool UseRunningStatus = false
 
static const bool UseSenderActiveSensing = false
 

The documentation for this struct was generated from the following file: