MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
35 if (
event == MIDIReadEvent::NO_MESSAGE)
37 while (
event != MIDIReadEvent::NO_MESSAGE) {
49 case MIDIReadEvent::NO_MESSAGE:
return true;
static MIDI_Interface * DefaultMIDI_Interface
static MIDI_Interface * getDefault()
Return the default MIDI interface.
SysExMessage getSysExMessage() const
Return the received system exclusive message.
virtual void onRealTimeMessage(Parsing_MIDI_Interface &midi)
Callback for incoming MIDI Real-Time Messages.
#define BEGIN_CS_NAMESPACE
void sinkMIDIfromPipe(ChannelMessage) override
Accept an incoming MIDI Channel message.
virtual void onSysExMessage(Parsing_MIDI_Interface &midi)
Callback for incoming MIDI System Exclusive Messages.
Node * getLast() const
Get a pointer to the last node.
void update() override
Read the MIDI interface and call the callback if a message is received.
void send(MIDIMessageType m, Channel c, uint8_t d1, uint8_t d2, Cable cable=CABLE_1)
Send a 3-byte MIDI packet.
@ NO_MESSAGE
No new incoming methods.
virtual void onChannelMessage(Parsing_MIDI_Interface &midi)
Callback for incoming MIDI Channel Messages (notes, control change, pitch bend, etc....
void sourceMIDItoPipe(ChannelMessage)
Send a MIDI Channel Message.
MIDI_Callbacks * callbacks
bool dispatchMIDIEvent(MIDIReadEvent event)
bool canWrite(cn_t cn) const
Check if this source can write to the sinks it connects to.
void setAsDefault()
Set this MIDI interface as the default interface.
MIDIReadEvent
Result of the MIDI interface read methods.
An abstract class for MIDI interfaces.
virtual MIDIReadEvent read()=0
Try reading and parsing a single incoming MIDI message.
virtual ~MIDI_Interface()
Destructor.
ChannelMessage getChannelMessage() const
Return the received channel message.
static DoublyLinkedList< Updatable< MIDI_Interface, false > > updatables
RealTimeMessage getRealTimeMessage() const
Return the received real-time message.