Skip to main content

read_midi_bytes

Function read_midi_bytes 

Source
pub fn read_midi_bytes(
    path: &Path,
    bpm: Bpm,
) -> Result<(NoteList, Vec<u8>), MidiError>
Expand description

Reads the notes of a MIDI file at path as read_midi does, and returns the file’s bytes with them, so a caller can hash the very bytes it read.

§Errors

As read_midi.