Jack MIDI is normalised, the MIDI event returned by this function is
guaranteed to be a complete MIDI event (the status byte will always be
present, and no realtime events will interspered with the event).
@param event Event structure to store retrieved event in.
@param port_buffer Port buffer from which to retrieve event.
@param event_index Index of event to retrieve.
@return 0 on success, ENODATA if buffer is empty.
Get a MIDI event from an event port buffer.
Jack MIDI is normalised, the MIDI event returned by this function is guaranteed to be a complete MIDI event (the status byte will always be present, and no realtime events will interspered with the event).
@param event Event structure to store retrieved event in. @param port_buffer Port buffer from which to retrieve event. @param event_index Index of event to retrieve. @return 0 on success, ENODATA if buffer is empty.