Control Surface  1.2.0
MIDI Control Surface library for Arduino
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
FortySevenEffectsMIDI_Parser Class Reference

Wrapper class for the FortySevenEffects MIDI parser. More...

#include <MIDI_Interfaces/Wrappers/FortySevenEffects.hpp>

+ Inheritance diagram for FortySevenEffectsMIDI_Parser:
+ Collaboration diagram for FortySevenEffectsMIDI_Parser:

Public Member Functions

SysExMessage getSysExMessage () const override
 Get the latest SysEx message. More...
 
ChannelMessage getChannelMessage ()
 Get the latest MIDI channel message. More...
 
RealTimeMessage getRealTimeMessage ()
 Get the latest MIDI real-time 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}
 

Private Member Functions

template<class MidiInterface >
void updateChannelMessage (const MidiInterface &interface)
 Get the latest channel message from the given MIDI interface. More...
 
template<class MidiInterface >
void updateSysExMessage (const MidiInterface &interface)
 Get the latest system exclusive message from the given MIDI interface. More...
 
template<class MidiInterface >
void updateRealTimeMessage (const MidiInterface &interface)
 Get the latest real-time message from the given MIDI interface. More...
 

Private Attributes

SysExMessage sysex = {nullptr, 0, 0}
 Temporarily saves a pointer to the MIDI parser's SysEx buffer. More...
 

Detailed Description

Wrapper class for the FortySevenEffects MIDI parser.

See also
FortySevenEffectsMIDI_Interface

Definition at line 19 of file FortySevenEffects.hpp.

Member Function Documentation

◆ updateChannelMessage()

void updateChannelMessage ( const MidiInterface &  interface)
inlineprivate

Get the latest channel message from the given MIDI interface.

Definition at line 26 of file FortySevenEffects.hpp.

◆ updateSysExMessage()

void updateSysExMessage ( const MidiInterface &  interface)
inlineprivate

Get the latest system exclusive message from the given MIDI interface.

Definition at line 36 of file FortySevenEffects.hpp.

◆ updateRealTimeMessage()

void updateRealTimeMessage ( const MidiInterface &  interface)
inlineprivate

Get the latest real-time message from the given MIDI interface.

Definition at line 44 of file FortySevenEffects.hpp.

◆ getSysExMessage()

SysExMessage getSysExMessage ( ) const
inlineoverridevirtual

Get the latest SysEx message.

Implements MIDI_Parser.

Definition at line 53 of file FortySevenEffects.hpp.

◆ getChannelMessage()

ChannelMessage getChannelMessage ( )
inlineinherited

Get the latest MIDI channel message.

Definition at line 25 of file MIDI_Parser.hpp.

◆ getRealTimeMessage()

RealTimeMessage getRealTimeMessage ( )
inlineinherited

Get the latest MIDI real-time message.

Definition at line 27 of file MIDI_Parser.hpp.

◆ getSysExBuffer()

const uint8_t* getSysExBuffer ( ) const
inlineinherited

Get the pointer to the SysEx data.

Definition at line 35 of file MIDI_Parser.hpp.

◆ getSysExLength()

size_t getSysExLength ( ) const
inlineinherited

Get the length of the SysEx message.

Definition at line 37 of file MIDI_Parser.hpp.

◆ isStatus()

static bool isStatus ( uint8_t  data)
inlinestaticinherited

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)
inlinestaticinherited

Check if the given byte is a MIDI data byte.

Definition at line 47 of file MIDI_Parser.hpp.

Member Data Documentation

◆ sysex

SysExMessage sysex = {nullptr, 0, 0}
private

Temporarily saves a pointer to the MIDI parser's SysEx buffer.

Definition at line 50 of file FortySevenEffects.hpp.

◆ midimsg

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

Definition at line 40 of file MIDI_Parser.hpp.

◆ rtmsg

RealTimeMessage rtmsg = {0xFF, 0x0}
protectedinherited

Definition at line 41 of file MIDI_Parser.hpp.


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