Skip to main content

read_event

Function read_event 

Source
pub fn read_event(
    bytes: &[u8],
    last: Option<u8>,
) -> MidiResult<Option<(ReadEvent, usize)>>
Expand description

One event off the front of bytes, and how many of them it took: music21’s MidiEvent.read. A data byte first is read under the running status last, or a note-on’s where there is none. Fewer than two bytes are no event, and None.