Sound Byte Libs 0.5.1-340-gab5b79a
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
types.hpp File Reference

MIDI message types. More...

Detailed Description

MIDI message types.

Core types for MIDI protocol handling. All values follow the MIDI 1.0 spec.

Definition in file types.hpp.

#include <cstdint>

Go to the source code of this file.

Classes

struct  sbl::midi::MidiEvent
 

Namespaces

namespace  sbl
 Root namespace for all Sound Byte Libs code.
 
namespace  sbl::midi
 MIDI parser, encoder, SMF and sequencer.
 
namespace  sbl::midi::cc
 

Typedefs

using sbl::midi::MidiCallback = void(*)(const MidiEvent &event)
 

Enumerations

enum class  MessageType : uint8_t {
  NoteOff = 0x80 , NoteOn = 0x90 , PolyPressure = 0xA0 , ControlChange = 0xB0 ,
  ProgramChange = 0xC0 , ChannelPressure = 0xD0 , PitchBend = 0xE0 , Clock = 0xF8 ,
  Start = 0xFA , Continue = 0xFB , Stop = 0xFC , ActiveSensing = 0xFE ,
  SystemReset = 0xFF , SysEx = 0xF0 , SysExEnd = 0xF7 , TimeCode = 0xF1 ,
  SongPosition = 0xF2 , SongSelect = 0xF3 , TuneRequest = 0xF6 , None = 0x00
}
 

Functions

constexpr uint8_t sbl::midi::to_7bit (float value)
 
uint8_t sbl::midi::expected_data_bytes (uint8_t status)
 

Variables

constexpr uint8_t sbl::midi::cc::RESET_ALL_CONTROLLERS = 121
 
constexpr uint8_t sbl::midi::cc::ALL_NOTES_OFF = 123
 
constexpr uint8_t sbl::midi::CC_SWITCH_ON = 64
 
constexpr uint8_t sbl::midi::DATA_MAX = 127