| 
   
    MIDI Control Surface library for Arduino 
   | 
 
 
 
 
Go to the documentation of this file.
   46     void send(uint8_t m, uint8_t c, uint8_t d1, uint8_t d2);
 
   58     void send(uint8_t m, uint8_t c, uint8_t d1);
 
   74     void sendOnCable(uint8_t m, uint8_t c, uint8_t d1, uint8_t d2, uint8_t cn);
 
   88     void sendOnCable(uint8_t m, uint8_t c, uint8_t d1, uint8_t cn);
 
  120     void send(
const uint8_t (&sysexdata)[N], uint8_t cn = 0) {
 
  124     void send(uint8_t rt, uint8_t cn = 0);
 
  130     virtual void update() = 0;
 
  164     virtual void sendImpl(uint8_t m, uint8_t c, uint8_t d1, uint8_t d2,
 
  169     virtual void sendImpl(uint8_t m, uint8_t c, uint8_t d1, uint8_t cn) = 0;
 
  174     virtual void sendImpl(
const uint8_t *data, 
size_t length, uint8_t cn) = 0;
 
  179     virtual void sendImpl(uint8_t rt, uint8_t cn) = 0;
 
  216     uint8_t 
getCN() 
const;
 
  
uint8_t getCN() const
Return the cable number of the received message.
 
void setAsDefault()
Set this MIDI interface as the default interface.
 
static MIDI_Interface * getDefault()
Return the default MIDI interface.
 
void setCallbacks(MIDI_Callbacks &cb)
Set the callbacks that will be called when a MIDI message is received.
 
ChannelMessage getChannelMessage()
Return the received channel message.
 
bool dispatchMIDIEvent(MIDI_read_t event)
 
An abstract class for MIDI interfaces.
 
virtual MIDI_read_t read()=0
 
virtual ~MIDI_Callbacks()=default
 
void sendPB(MIDICNChannel address, uint16_t value)
Send a MIDI Pitch Bend event.
 
virtual void onRealtimeMessage(Parsing_MIDI_Interface &midi, uint8_t message)
 
#define BEGIN_CS_NAMESPACE
 
virtual ~MIDI_Interface()
Destructor.
 
void sendCC(MIDICNChannelAddress address, uint8_t value)
Send a MIDI Control Change event.
 
void onRealtimeMessage(uint8_t message)
 
virtual void update()=0
Read the MIDI interface and call the callback if a message is received.
 
A type-safe utility class for saving a MIDI address consisting of a 7-bit address,...
 
static MIDI_Interface * DefaultMIDI_Interface
 
void setCallbacks(MIDI_Callbacks *cb) override
Set the callbacks that will be called when a MIDI message is received.
 
void sendNoteOff(MIDICNChannelAddress address, uint8_t velocity)
Send a MIDI Note Off event.
 
void update() override
Read the MIDI interface and call the callback if a message is received.
 
void sendKP(MIDICNChannelAddress address, uint8_t pressure)
Send a MIDI Key Pressure event.
 
MIDI_Callbacks * callbacks
 
A class for saving a MIDI channel and cable number.
 
void sendCP(MIDICNChannel address, uint8_t pressure)
Send a MIDI Channel Pressure event.
 
Parsing_MIDI_Interface(MIDI_Parser &parser)
Construct a MIDI interface with the given parser.
 
void send(uint8_t m, uint8_t c, uint8_t d1, uint8_t d2)
Send a 3-byte MIDI packet.
 
void send(const uint8_t(&sysexdata)[N], uint8_t cn=0)
Send a MIDI System Exclusive message.
 
virtual void setCallbacks(MIDI_Callbacks *cb)=0
Set the callbacks that will be called when a MIDI message is received.
 
void sendNoteOn(MIDICNChannelAddress address, uint8_t velocity)
Send a MIDI Note On event.
 
void sendOnCable(uint8_t m, uint8_t c, uint8_t d1, uint8_t d2, uint8_t cn)
Send a 3-byte MIDI packet with cable number.
 
virtual void onChannelMessage(Parsing_MIDI_Interface &midi)
 
MIDI_Parser & getParser()
 
A class for callbacks from MIDI input.
 
void sendPC(MIDICNChannelAddress address)
Send a MIDI Program Change event.
 
An abstract class for MIDI interfaces.
 
virtual void onSysExMessage(Parsing_MIDI_Interface &midi)
 
MIDI_Interface()
Constructor.
 
SysExMessage getSysExMessage() const
Return the received system exclusive message.
 
virtual void sendImpl(uint8_t m, uint8_t c, uint8_t d1, uint8_t d2, uint8_t cn)=0
Low-level function for sending a 3-byte MIDI message.
 
virtual void begin()
Initialize the MIDI Interface.