MidiEvent struct

Backend-agnostic MIDI event descriptor.


Public variables

MidiEventType type
The values below will be filled in depending on what event this is.
int pitchbend
-8192 to 8191.
midi_byte_t controller
The controller, for control events.
midi_byte_t control
Control value (also used for modulation wheel (0 ~ 127).
midi_byte_t channel
MIDI channel, starting from 1.
midi_byte_t note_pitch
Note value (0 ~ 127).
midi_byte_t velocity
Velocity (0 ~ 127).
midi_time_t time
Time of the MIDI event, in frames from the start of the current cycle.
gint64 systime
Time using g_get_monotonic_time ().
midi_byte_t raw_buffer
Raw MIDI data.