jack.midi
struct MidiEventRange
Types 1
structMidiEventRange
MIDI event range helper, which is intended to use in the JACK process callback on MIDI input port buffers.
Methods
Constructors
this(void * portBuffer)Create a MIDI event range from a MIDI input port buffer. This is intended to be called within the JACK process callback and is real-time safe. Params: portBuffer = MIDI input port buffer pointerFunctions 5
fn
void clearMidiBuffer(void * portBuffer) @nogc nothrowClear an output MIDI port buffer (must be called at the start of process for an output MIDI port). Params: portBuffer = The MIDI port bufferfn
bool writeMidiEvent(void * portBuffer, NFrames time, const(ubyte)[] data) @nogc nothrowWrite a MIDI event into an output port buffer. Params: portBuffer = The MIDI output port buffer time = The time of the event (events must be in order) data = The MIDI data which must be a complete ...fn
ubyte[] reserveMidiEvent(void * portBuffer, NFrames time, size_t size) @nogc nothrowReserve space for a MIDI event and return a mutable slice to write into. Params: portBuffer = The MIDI output port buffer time = The time of the event (events must be in order) Returns: A slice to ...fn
size_t maxMidiEventSize(void * portBuffer) @nogc nothrowGet max event size for a MIDI port buffer. Real-time safe. Params: portBuffer = Port buffer pointer Returns: Max event sizefn
uint getLostMidiEventCount(void * portBuffer) @nogc nothrowGet lost MIDI event count. Real-time safe. Params: portBuffer = Port buffer pointer Returns: Count of lost MIDI events