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

#include <MIDI_Parsers/MIDI_Parser.hpp>

Detailed Description

Base class for MIDI parsers.

Definition at line 16 of file MIDI_Parser.hpp.

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

Public Member Functions

ChannelMessage getChannelMessage () const
 Get the latest MIDI channel voice message. More...
 
SysCommonMessage getSysCommonMessage () const
 Get the latest MIDI system common message. More...
 
RealTimeMessage getRealTimeMessage () const
 Get the latest MIDI real-time message. More...
 

Static Public Member Functions

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

Protected Attributes

MIDIMessage midimsg = {0x00, 0x00, 0x00}
 
RealTimeMessage rtmsg = {0x00}
 

Member Function Documentation

◆ getChannelMessage()

ChannelMessage getChannelMessage ( ) const
inline

Get the latest MIDI channel voice message.

Definition at line 19 of file MIDI_Parser.hpp.

◆ getSysCommonMessage()

SysCommonMessage getSysCommonMessage ( ) const
inline

Get the latest MIDI system common message.

Definition at line 21 of file MIDI_Parser.hpp.

◆ getRealTimeMessage()

RealTimeMessage getRealTimeMessage ( ) const
inline

Get the latest MIDI real-time message.

Definition at line 25 of file MIDI_Parser.hpp.

◆ isStatus()

static bool isStatus ( uint8_t  data)
inlinestatic

Check if the given byte is a MIDI header/status byte.

Definition at line 37 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 39 of file MIDI_Parser.hpp.

Member Data Documentation

◆ midimsg

MIDIMessage midimsg = {0x00, 0x00, 0x00}
protected

Definition at line 32 of file MIDI_Parser.hpp.

◆ rtmsg

RealTimeMessage rtmsg = {0x00}
protected

Definition at line 33 of file MIDI_Parser.hpp.


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