writeMidiEvent

fnbool writeMidiEvent(void * portBuffer, NFrames time, const(ubyte)[] data) @nogc nothrow

Write a MIDI event into an output port buffer.

Parameters

portBufferThe MIDI output port buffer
timeThe time of the event (events must be in order)
dataThe MIDI data which must be a complete normalized MIDI event without any real-time MIDI events interspersed within it. Returns true on success, false otherwise, such as when running out of buffer space