MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
11 #include <Settings/SettingsWrapper.hpp>
95 uint8_t message)
override;
Control_Surface_ & Control_Surface
A predefined instance of the Control Surface to use in the Arduino sketches.
A super class for object that have to be updated regularly.
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.
A class for easily managing timed events.
void onChannelMessage(Parsing_MIDI_Interface &midi) override
The callback to be called when a MIDI channel message is received.
#define BEGIN_CS_NAMESPACE
A class that reads and filters an analog input.
MIDI_Interface & MIDI()
Get the MIDI interface of the Control Surface.
Control_Surface_()=default
Control_Surface_ is a singleton, so the constructor is private.
constexpr uint8_t MAX_FPS
The maximum frame rate of the displays.
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.
void operator=(Control_Surface_ const &)=delete
bool(*)(RealTimeMessage) RealTimeMessageCallback
Callback function type for Real-Time messages.
ChannelMessageCallback channelMessageCallback
constexpr unsigned long FILTERED_INPUT_UPDATE_INTERVAL
The interval between updating filtered analog inputs, in microseconds.
void setMIDIInputCallbacks(ChannelMessageCallback channelMessageCallback, SysExMessageCallback sysExMessageCallback, RealTimeMessageCallback realTimeMessageCallback)
Set the MIDI input callbacks.
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.