Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
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 17 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.
 
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}
 

Private Member Functions

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

Private Attributes

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

Member Function Documentation

◆ updateChannelMessage()

template<class MidiInterface >
void updateChannelMessage ( const MidiInterface & interface)
inlineprivate

Get the latest channel message from the given MIDI interface.

Definition at line 24 of file FortySevenEffects.hpp.

◆ updateSysExMessage()

template<class MidiInterface >
void updateSysExMessage ( const MidiInterface & interface)
inlineprivate

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

Definition at line 34 of file FortySevenEffects.hpp.

◆ updateSysCommonMessage()

template<class MidiInterface >
void updateSysCommonMessage ( const MidiInterface & interface)
inlineprivate

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

Definition at line 42 of file FortySevenEffects.hpp.

◆ updateRealTimeMessage()

template<class MidiInterface >
void updateRealTimeMessage ( const MidiInterface & interface)
inlineprivate

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

Definition at line 51 of file FortySevenEffects.hpp.

◆ getSysExMessage()

SysExMessage getSysExMessage ( ) const
inline

Get the latest SysEx message.

Definition at line 61 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 57 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: