pub fn midi_notes_from_stream(stream: &Stream) -> Result<Vec<MidiNote>>
Extracts MIDI note events from a stream.