Ase::MidiEvent struct

MidiEvent data structure.

Public functions

auto message() const →  MidiMessage
Determine extended message type an MidiEvent.

Public variables

uint frame
Offset into current block, delayed if negative.
uint channel
0…15 for standard events
MidiEventType type
MidiEvent type, one of the MidiEventType members.
uint8 key
NOTE, KEY_PRESSURE MIDI note, 0…0x7f, 60 = middle C at 261.63 Hz.
uint8 fragment
Flag for multi-part control change mesages.
uint length
Data event length of byte array.
uint param
PROGRAM_CHANGE (program), CONTROL_CHANGE (controller):0…0x7f; PARAM_VALUE:uint32_t.
uint noteid
NOTE, identifier for note expression handling or 0xffffffff.
char* data
Data event byte array.
double pvalue
Numeric parameter value, PARAM_VALUE.
float value
CONTROL_CHANGE 0…+1, CHANNEL_PRESSURE, 0…+1, PITCH_BEND -1…+1.
uint cval
CONTROL_CHANGE control value, 0…0x7f.
float velocity
NOTE, KEY_PRESSURE, CHANNEL_PRESSURE, 0…+1.
float tuning
NOTE, fine tuning in ±cents.