This is an old version of the documentation. View the latest version here.
Control Surface  1.0.0
MIDI Control Surface library for Arduino
Classes | Enumerations | Variables
MIDI_Parser.hpp File Reference
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <Def/Def.hpp>
#include <Settings/SettingsWrapper.hpp>
Include dependency graph for MIDI_Parser.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ChannelMessage
 
struct  SysExMessage
 
struct  RealTimeMessage
 
class  MIDI_Parser
 

Enumerations

enum  MIDI_read_t : uint8_t {
  NO_MESSAGE = 0, CHANNEL_MESSAGE = 1, SYSEX_MESSAGE = 2, TIMING_CLOCK_MESSAGE = 0xF8,
  UNDEFINED_REALTIME_MESSAGE_1 = 0xF9, START_MESSAGE = 0xFA, CONTINUE_MESSAGE = 0xFB, STOP_MESSAGE = 0xFC,
  UNDEFINED_REALTIME_MESSAGE_2 = 0xFD, ACTIVE_SENSING_MESSAGE = 0xFE, RESET_MESSAGE = 0xFF
}
 

Variables

const uint8_t NOTE_OFF = 0x80
 
const uint8_t NOTE_ON = 0x90
 
const uint8_t KEY_PRESSURE = 0xA0
 
const uint8_t CC = 0xB0
 
const uint8_t CONTROL_CHANGE = CC
 
const uint8_t PROGRAM_CHANGE = 0xC0
 
const uint8_t CHANNEL_PRESSURE = 0xD0
 
const uint8_t PITCH_BEND = 0xE0
 
const uint8_t SysExStart = 0xF0
 
const uint8_t SysExEnd = 0xF7
 
const uint8_t TuneRequest = 0xF6
 

Enumeration Type Documentation

◆ MIDI_read_t

enum MIDI_read_t : uint8_t
Enumerator
NO_MESSAGE 
CHANNEL_MESSAGE 
SYSEX_MESSAGE 
TIMING_CLOCK_MESSAGE 
UNDEFINED_REALTIME_MESSAGE_1 
START_MESSAGE 
CONTINUE_MESSAGE 
STOP_MESSAGE 
UNDEFINED_REALTIME_MESSAGE_2 
ACTIVE_SENSING_MESSAGE 
RESET_MESSAGE 

Definition at line 29 of file MIDI_Parser.hpp.

Variable Documentation

◆ NOTE_OFF

const uint8_t NOTE_OFF = 0x80

Definition at line 16 of file MIDI_Parser.hpp.

◆ NOTE_ON

const uint8_t NOTE_ON = 0x90

Definition at line 17 of file MIDI_Parser.hpp.

◆ KEY_PRESSURE

const uint8_t KEY_PRESSURE = 0xA0

Definition at line 18 of file MIDI_Parser.hpp.

◆ CC

const uint8_t CC = 0xB0

Definition at line 19 of file MIDI_Parser.hpp.

◆ CONTROL_CHANGE

const uint8_t CONTROL_CHANGE = CC

Definition at line 19 of file MIDI_Parser.hpp.

◆ PROGRAM_CHANGE

const uint8_t PROGRAM_CHANGE = 0xC0

Definition at line 20 of file MIDI_Parser.hpp.

◆ CHANNEL_PRESSURE

const uint8_t CHANNEL_PRESSURE = 0xD0

Definition at line 21 of file MIDI_Parser.hpp.

◆ PITCH_BEND

const uint8_t PITCH_BEND = 0xE0

Definition at line 22 of file MIDI_Parser.hpp.

◆ SysExStart

const uint8_t SysExStart = 0xF0

Definition at line 24 of file MIDI_Parser.hpp.

◆ SysExEnd

const uint8_t SysExEnd = 0xF7

Definition at line 25 of file MIDI_Parser.hpp.

◆ TuneRequest

const uint8_t TuneRequest = 0xF6

Definition at line 27 of file MIDI_Parser.hpp.