Control Surface  1.1.1
MIDI Control Surface library for Arduino
MIDI_Parser.cpp
Go to the documentation of this file.
1 #include "MIDI_Parser.hpp"
2 
4 
5 #if !IGNORE_SYSEX
6 
7 // TODO
8 
9 #endif
10 
11 bool MIDI_Parser::isStatus(uint8_t data) {
12  return data & (1 << 7); // TODO
13 }
14 
15 bool MIDI_Parser::isData(uint8_t data) { return (data & (1 << 7)) == 0; }
16 
18 
MIDI_Parser::getChannelMessage
ChannelMessage getChannelMessage()
Get the latest MIDI channel message.
Definition: MIDI_Parser.cpp:17
MIDI_Parser::isStatus
static bool isStatus(uint8_t data)
Check if the given byte is a MIDI header byte.
Definition: MIDI_Parser.cpp:11
MIDI_Parser::isData
static bool isData(uint8_t data)
Check if the given byte is a MIDI data byte.
Definition: MIDI_Parser.cpp:15
BEGIN_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
Definition: Settings/NamespaceSettings.hpp:9
END_CS_NAMESPACE
#define END_CS_NAMESPACE
Definition: Settings/NamespaceSettings.hpp:10
MIDI_Parser::midimsg
ChannelMessage midimsg
Definition: MIDI_Parser.hpp:102
ChannelMessage
Definition: MIDI_Parser.hpp:47
MIDI_Parser.hpp