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