Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
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.
 
SysCommonMessage getSysCommonMessage () const
 Get the latest MIDI system common message.
 
RealTimeMessage getRealTimeMessage () const
 Get the latest MIDI real-time message.
 

Static Public Member Functions

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

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: