This is an old version of the documentation. View the latest version
here.
Control Surface
1.0.0
MIDI Control Surface library for Arduino
|
Control_Surface_ & Control_Surface
A predefined instance of the Control Surface to use in the Arduino sketches.
constexpr unsigned long FILTERED_INPUT_UPDATE_INTERVAL
The interval between updating filtered analog inputs, in microseconds.
void onSysExMessage(Parsing_MIDI_Interface &midi) override
The callback to be called when a MIDI System Exclusive message is received.
An abstract class for MIDI interfaces.
void updateInputs()
Update all MIDIInputElements.
void onChannelMessage(Parsing_MIDI_Interface &midi) override
The callback to be called when a MIDI channel message is received.
MIDI_Interface & MIDI()
Get the MIDI interface of the Control Surface.
Control_Surface_()=default
Control_Surface_ is a singleton, so the constructor is private.
Timer< micros > displayTimer
A timer to know when to refresh the displays.
void updateMidiInput()
Update all MIDI interfaces to receive new MIDI events.
void onRealtimeMessage(Parsing_MIDI_Interface &midi, uint8_t message) override
The callback to be called when a MIDI Real-Time message is received.
#define BEGIN_CS_NAMESPACE
void operator=(Control_Surface_ const &)=delete
bool(*)(RealTimeMessage) RealTimeMessageCallback
Callback function type for Real-Time messages.
ChannelMessageCallback channelMessageCallback
void setMIDIInputCallbacks(ChannelMessageCallback channelMessageCallback, SysExMessageCallback sysExMessageCallback, RealTimeMessageCallback realTimeMessageCallback)
Set the MIDI input callbacks.
constexpr uint8_t MAX_FPS
The maximum frame rate of the displays.
Timer< micros > potentiometerTimer
A timer to know when to update the analog inputs.
SysExMessageCallback sysExMessageCallback
RealTimeMessageCallback realTimeMessageCallback
void begin()
Initialize the Control_Surface.
void updateDisplays()
Clear, draw and display all displays.
bool(*)(ChannelMessage) ChannelMessageCallback
Callback function type for channel messages.
bool(*)(SysExMessage) SysExMessageCallback
Callback function type for SysEx messages.
A class for callbacks from MIDI input.
An abstract class for MIDI interfaces.
This class ensures initialization, updating, and interaction between all other classes,...
void loop()
Update all MIDI elements, send MIDI events and read MIDI input.
static Control_Surface_ & getInstance()
Return the static Control_Surface_ instance.