jack.midi

Types 1

MIDI event range helper, which is intended to use in the JACK process callback on MIDI input port buffers.

Fields
void * portBuffer
uint count
uint index
MidiEvent current
Methods
bool empty() const @nogc nothrow
MidiEvent front() ref @nogc nothrow
void popFront() @nogc nothrow
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 pointer

Functions 5

fnvoid 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 buffer
fnbool 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 ...
fnubyte[] 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 ...
fnsize_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 size
fnuint getLostMidiEventCount(void * portBuffer) @nogc nothrowGet lost MIDI event count. Real-time safe. Params: portBuffer = Port buffer pointer Returns: Count of lost MIDI events