cs-midi/MIDI_Interfaces/AppleMIDI/vendor/shim/midi_Defs.h

43 lines
1.1 KiB
C++

#pragma once
// Minimal shim for MIDI_NAMESPACE::MidiType used by Arduino-AppleMIDI-Library.
// Replaces the FortySevenEffects MIDI library dependency.
#include <stdint.h>
#ifndef MIDI_NAMESPACE
#define MIDI_NAMESPACE applemidi_types
#endif
namespace MIDI_NAMESPACE {
enum MidiType : uint8_t {
InvalidType = 0x00,
NoteOff = 0x80,
NoteOn = 0x90,
AfterTouchPoly = 0xA0,
ControlChange = 0xB0,
ProgramChange = 0xC0,
AfterTouchChannel = 0xD0,
PitchBend = 0xE0,
SystemExclusive = 0xF0,
SystemExclusiveStart = 0xF0,
TimeCodeQuarterFrame = 0xF1,
SongPosition = 0xF2,
SongSelect = 0xF3,
TuneRequest = 0xF6,
SystemExclusiveEnd = 0xF7,
Clock = 0xF8,
Start = 0xFA,
Continue = 0xFB,
Stop = 0xFC,
ActiveSensing = 0xFE,
SystemReset = 0xFF,
};
struct DefaultSettings {
static const bool Use1ByteParsing = true;
};
} // namespace MIDI_NAMESPACE