Allolib
1.0
C++ Components For Interactive Multimedia
|
#include <C:/Users/Andres/source/repos/casm_viewer/external/tinc/external/allolib/include/al/io/al_MIDI.hpp>
Public Member Functions | |
MIDIMessage (double timeStamp, unsigned port, unsigned char b1, unsigned char b2=0, unsigned char b3=0, unsigned char *data=nullptr) | |
unsigned | port () const |
Get the MIDI device port. | |
double | timeStamp () const |
Get time stamp of message. | |
unsigned char | status () const |
Get the status byte. | |
bool | isChannelMessage () const |
Returns whether this is a channel (versus system) message. | |
unsigned char | channel () const |
Get the channel number (0-15) | |
unsigned char | type () const |
Get the message type (see MIDIByte) | |
unsigned char | noteNumber () const |
Get note number (type must be NOTE_ON or NOTE_OFF) | |
double | velocity (double mul=1./127.) const |
Get mapped note velocity (type must be NOTE_ON or NOTE_OFF) | |
double | pitchBend () const |
Get mapped pitch bend amount in [-1,1] (type must be PITCH_BEND) | |
unsigned char | controlNumber () const |
Get controller number (type must be CONTROL_CHANGE) | |
double | controlValue (double mul=1./127.) const |
Get mapped controller value (type must be CONTROL_CHANGE) | |
unsigned char * | data () const |
Get sysex message data. | |
void | print (std::ostream &stream=std::cout) const |
Print general information about message. | |
Public Attributes | |
unsigned char | bytes [3] |
Protected Attributes | |
double | mTimeStamp |
unsigned | mPort |
unsigned char * | mData |
MIDI message
Definition at line 139 of file al_MIDI.hpp.