Control Surface  1.2.0
MIDI Control Surface library for Arduino
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
MIDI_Parser Class Referenceabstract

#include <MIDI_Parsers/MIDI_Parser.hpp>

+ Inheritance diagram for MIDI_Parser:
+ Collaboration diagram for MIDI_Parser:

Public Member Functions

ChannelMessage getChannelMessage ()
 Get the latest MIDI channel message. More...
 
RealTimeMessage getRealTimeMessage ()
 Get the latest MIDI real-time message. More...
 
virtual SysExMessage getSysExMessage () const =0
 Get the latest SysEx message. More...
 
const uint8_t * getSysExBuffer () const
 Get the pointer to the SysEx data. More...
 
size_t getSysExLength () const
 Get the length of the SysEx message. More...
 

Static Public Member Functions

static bool isStatus (uint8_t data)
 Check if the given byte is a MIDI header byte. More...
 
static bool isData (uint8_t data)
 Check if the given byte is a MIDI data byte. More...
 

Protected Attributes

ChannelMessage midimsg = {0xFF, 0x00, 0x00, 0x0}
 
RealTimeMessage rtmsg = {0xFF, 0x0}
 

Detailed Description

Definition at line 22 of file MIDI_Parser.hpp.

Member Function Documentation

◆ getChannelMessage()

ChannelMessage getChannelMessage ( )
inline

Get the latest MIDI channel message.

Definition at line 25 of file MIDI_Parser.hpp.

◆ getRealTimeMessage()

RealTimeMessage getRealTimeMessage ( )
inline

Get the latest MIDI real-time message.

Definition at line 27 of file MIDI_Parser.hpp.

◆ getSysExMessage()

virtual SysExMessage getSysExMessage ( ) const
pure virtual

Get the latest SysEx message.

Implemented in USBMIDI_Parser, SerialMIDI_Parser, and FortySevenEffectsMIDI_Parser.

◆ getSysExBuffer()

const uint8_t* getSysExBuffer ( ) const
inline

Get the pointer to the SysEx data.

Definition at line 35 of file MIDI_Parser.hpp.

◆ getSysExLength()

size_t getSysExLength ( ) const
inline

Get the length of the SysEx message.

Definition at line 37 of file MIDI_Parser.hpp.

◆ isStatus()

static bool isStatus ( uint8_t  data)
inlinestatic

Check if the given byte is a MIDI header byte.

Definition at line 45 of file MIDI_Parser.hpp.

◆ isData()

static bool isData ( uint8_t  data)
inlinestatic

Check if the given byte is a MIDI data byte.

Definition at line 47 of file MIDI_Parser.hpp.

Member Data Documentation

◆ midimsg

ChannelMessage midimsg = {0xFF, 0x00, 0x00, 0x0}
protected

Definition at line 40 of file MIDI_Parser.hpp.

◆ rtmsg

RealTimeMessage rtmsg = {0xFF, 0x0}
protected

Definition at line 41 of file MIDI_Parser.hpp.


The documentation for this class was generated from the following file: