Control Surface stm32
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

#include <MIDI_Interfaces/Wrappers/FortySevenEffects.hpp>

Detailed Description

Wrapper class for the FortySevenEffects MIDI parser.

See also
FortySevenEffectsMIDI_Interface

Definition at line 19 of file FortySevenEffects.hpp.

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

Public Member Functions

SysExMessage getSysExMessage () const
 Get the latest SysEx message. More...
 
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}
 

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 updateSysCommonMessage (const MidiInterface &interface)
 Get the latest system common 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, CABLE_1}
 Temporarily saves a pointer to the MIDI parser's SysEx buffer. More...
 

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.

◆ updateSysCommonMessage()

void updateSysCommonMessage ( const MidiInterface &  interface)
inlineprivate

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

Definition at line 44 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 53 of file FortySevenEffects.hpp.

◆ getSysExMessage()

SysExMessage getSysExMessage ( ) const
inline

Get the latest SysEx message.

Definition at line 63 of file FortySevenEffects.hpp.

◆ getChannelMessage()

ChannelMessage getChannelMessage ( ) const
inlineinherited

Get the latest MIDI channel voice message.

Definition at line 19 of file MIDI_Parser.hpp.

◆ getSysCommonMessage()

SysCommonMessage getSysCommonMessage ( ) const
inlineinherited

Get the latest MIDI system common message.

Definition at line 21 of file MIDI_Parser.hpp.

◆ getRealTimeMessage()

RealTimeMessage getRealTimeMessage ( ) const
inlineinherited

Get the latest MIDI real-time message.

Definition at line 25 of file MIDI_Parser.hpp.

◆ isStatus()

static bool isStatus ( uint8_t  data)
inlinestaticinherited

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

Check if the given byte is a MIDI data byte.

Definition at line 39 of file MIDI_Parser.hpp.

Member Data Documentation

◆ sysex

SysExMessage sysex = {nullptr, 0, CABLE_1}
private

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

Definition at line 59 of file FortySevenEffects.hpp.

◆ midimsg

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

Definition at line 32 of file MIDI_Parser.hpp.

◆ rtmsg

RealTimeMessage rtmsg = {0x00}
protectedinherited

Definition at line 33 of file MIDI_Parser.hpp.


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