Allolib  1.0
C++ Components For Interactive Multimedia
al::MIDIByte Class Reference

#include <C:/Users/Andres/source/repos/casm_viewer/external/tinc/external/allolib/include/al/io/al_MIDI.hpp>

Static Public Member Functions

static bool isChannelMessage (unsigned char statusByte)
 Check status byte to see if the message is a channel message.
 
static const char * messageTypeString (unsigned char statusByte)
 Get string with message type from status byte.
 
static const char * controlNumberString (unsigned char controlNumber)
 Get string with control type from control number.
 
static unsigned short convertPitchBend (unsigned char byte2, unsigned char byte3)
 Convert pitch bend message bytes into a 14-bit value in [0, 16384)
 

Static Public Attributes

static const unsigned char CHANNEL_MASK
 Channel message status byte channel mask. More...
 
static const unsigned char MESSAGE_MASK
 Message status byte type mask. More...
 
static const unsigned char NOTE_OFF
 Note off channel message type. More...
 
static const unsigned char NOTE_ON
 Note on channel message type. More...
 
static const unsigned char CONTROL_CHANGE
 Control change channel message type. More...
 
static const unsigned char BANK_SELECT = 0x00
 Bank select control number.
 
static const unsigned char MODULATION = 0x01
 Modulation wheel/stick control number.
 
static const unsigned char BREATH = 0x02
 Breath controller control number.
 
static const unsigned char FOOT = 0x04
 Foot controller control number.
 
static const unsigned char PORTAMENTO_TIME = 0x05
 Portamento time control number.
 
static const unsigned char VOLUME = 0x07
 Channel volume control number.
 
static const unsigned char BALANCE = 0x08
 Balance control number.
 
static const unsigned char PAN = 0x0A
 Pan control number.
 
static const unsigned char EXPRESSION = 0x0B
 Expression controller control number.
 
static const unsigned char DAMPER_PEDAL = 0x40
 Damper pedal control number.
 
static const unsigned char PORTAMENTO_ON = 0x41
 Portamento on/off control number.
 
static const unsigned char SOSTENUTO_ON = 0x42
 Sostenuto on/off control number.
 
static const unsigned char SOFT_PEDAL = 0x43
 Soft pedal control number.
 
static const unsigned char LEGATO_ON = 0x44
 Legato on/off control number.
 
static const unsigned char PROGRAM_CHANGE
 Program change channel message type. More...
 
static const unsigned char PRESSURE_POLY
 Polyphonic pressure (aftertouch) channel message type. More...
 
static const unsigned char PRESSURE_CHAN
 Channel pressure (aftertouch) channel message type. More...
 
static const unsigned char PITCH_BEND
 Pitch bend channel message type. More...
 
static const unsigned char SYSTEM_MSG = BITS_(1, 1, 1, 1, 0, 0, 0, 0)
 System message type.
 
static const unsigned char SYS_EX
 System exclusive system message type. More...
 
static const unsigned char SYS_EX_END
 End of system exclusive system message type. More...
 
static const unsigned char TIME_CODE
 Time code system message type. More...
 
static const unsigned char SONG_POSITION
 Song position system message type. More...
 
static const unsigned char SONG_SELECT
 Song select system message type. More...
 
static const unsigned char TUNE_REQUEST
 Tune request system message type. More...
 
static const unsigned char TIMING_CLOCK
 Timing clock system message type. More...
 
static const unsigned char SEQ_START
 Start sequence system message type. More...
 
static const unsigned char SEQ_CONTINUE
 Continue sequence system message type. More...
 
static const unsigned char SEQ_STOP
 Stop sequence system message type. More...
 
static const unsigned char ACTIVE_SENSING
 Active sensing system message type. More...
 
static const unsigned char RESET
 Reset all receivers system message type. More...
 

Detailed Description

Utilities for parsing MIDI bytes

Definition at line 46 of file al_MIDI.hpp.

Member Data Documentation

◆ ACTIVE_SENSING

const unsigned char al::MIDIByte::ACTIVE_SENSING
static
Initial value:
= BITS_(1, 1, 1, 1, 1, 1, 1,
0)

Active sensing system message type.

Definition at line 113 of file al_MIDI.hpp.

◆ CHANNEL_MASK

const unsigned char al::MIDIByte::CHANNEL_MASK
static
Initial value:
= BITS_(0, 0, 0, 0, 1, 1, 1,
1)

Channel message status byte channel mask.

Definition at line 54 of file al_MIDI.hpp.

◆ CONTROL_CHANGE

const unsigned char al::MIDIByte::CONTROL_CHANGE
static
Initial value:
= BITS_(1, 0, 1, 1, 0, 0, 0,
0)

Control change channel message type.

Definition at line 63 of file al_MIDI.hpp.

◆ MESSAGE_MASK

const unsigned char al::MIDIByte::MESSAGE_MASK
static
Initial value:
=
BITS_(1, 1, 1, 1, 0, 0, 0, 0)

Message status byte type mask.

Definition at line 56 of file al_MIDI.hpp.

◆ NOTE_OFF

const unsigned char al::MIDIByte::NOTE_OFF
static
Initial value:
=
BITS_(1, 0, 0, 0, 0, 0, 0, 0)

Note off channel message type.

Definition at line 59 of file al_MIDI.hpp.

◆ NOTE_ON

const unsigned char al::MIDIByte::NOTE_ON
static
Initial value:
=
BITS_(1, 0, 0, 1, 0, 0, 0, 0)

Note on channel message type.

Definition at line 61 of file al_MIDI.hpp.

◆ PITCH_BEND

const unsigned char al::MIDIByte::PITCH_BEND
static
Initial value:
=
BITS_(1, 1, 1, 0, 0, 0, 0, 0)

Pitch bend channel message type.

Definition at line 88 of file al_MIDI.hpp.

◆ PRESSURE_CHAN

const unsigned char al::MIDIByte::PRESSURE_CHAN
static
Initial value:
=
BITS_(1, 1, 0, 1, 0, 0, 0,
0)

Channel pressure (aftertouch) channel message type.

Definition at line 85 of file al_MIDI.hpp.

◆ PRESSURE_POLY

const unsigned char al::MIDIByte::PRESSURE_POLY
static
Initial value:
=
BITS_(1, 0, 1, 0, 0, 0, 0,
0)

Polyphonic pressure (aftertouch) channel message type.

Definition at line 82 of file al_MIDI.hpp.

◆ PROGRAM_CHANGE

const unsigned char al::MIDIByte::PROGRAM_CHANGE
static
Initial value:
= BITS_(1, 1, 0, 0, 0, 0, 0,
0)

Program change channel message type.

Definition at line 80 of file al_MIDI.hpp.

◆ RESET

const unsigned char al::MIDIByte::RESET
static
Initial value:
= BITS_(1, 1, 1, 1, 1, 1, 1,
1)

Reset all receivers system message type.

Definition at line 115 of file al_MIDI.hpp.

◆ SEQ_CONTINUE

const unsigned char al::MIDIByte::SEQ_CONTINUE
static
Initial value:
= BITS_(1, 1, 1, 1, 1, 0, 1,
1)

Continue sequence system message type.

Definition at line 109 of file al_MIDI.hpp.

◆ SEQ_START

const unsigned char al::MIDIByte::SEQ_START
static
Initial value:
= BITS_(1, 1, 1, 1, 1, 0, 1,
0)

Start sequence system message type.

Definition at line 107 of file al_MIDI.hpp.

◆ SEQ_STOP

const unsigned char al::MIDIByte::SEQ_STOP
static
Initial value:
=
BITS_(1, 1, 1, 1, 1, 1, 0, 0)

Stop sequence system message type.

Definition at line 111 of file al_MIDI.hpp.

◆ SONG_POSITION

const unsigned char al::MIDIByte::SONG_POSITION
static
Initial value:
=
BITS_(1, 1, 1, 1, 0, 0, 1, 0)

Song position system message type.

Definition at line 99 of file al_MIDI.hpp.

◆ SONG_SELECT

const unsigned char al::MIDIByte::SONG_SELECT
static
Initial value:
=
BITS_(1, 1, 1, 1, 0, 0, 1, 1)

Song select system message type.

Definition at line 101 of file al_MIDI.hpp.

◆ SYS_EX

const unsigned char al::MIDIByte::SYS_EX
static
Initial value:
= BITS_(1, 1, 1, 1, 0, 0, 0,
0)

System exclusive system message type.

Definition at line 93 of file al_MIDI.hpp.

◆ SYS_EX_END

const unsigned char al::MIDIByte::SYS_EX_END
static
Initial value:
= BITS_(1, 1, 1, 1, 0, 1, 1,
1)

End of system exclusive system message type.

Definition at line 95 of file al_MIDI.hpp.

◆ TIME_CODE

const unsigned char al::MIDIByte::TIME_CODE
static
Initial value:
=
BITS_(1, 1, 1, 1, 0, 0, 0, 1)

Time code system message type.

Definition at line 97 of file al_MIDI.hpp.

◆ TIMING_CLOCK

const unsigned char al::MIDIByte::TIMING_CLOCK
static
Initial value:
=
BITS_(1, 1, 1, 1, 1, 0, 0, 0)

Timing clock system message type.

Definition at line 105 of file al_MIDI.hpp.

◆ TUNE_REQUEST

const unsigned char al::MIDIByte::TUNE_REQUEST
static
Initial value:
=
BITS_(1, 1, 1, 1, 0, 1, 1, 0)

Tune request system message type.

Definition at line 103 of file al_MIDI.hpp.


The documentation for this class was generated from the following file: