Skip to main content

read_midi_near

Function read_midi_near 

Source
pub fn read_midi_near(
    path: &Path,
    bpm: Bpm,
    refined: Option<Bpm>,
) -> Result<NoteList, MidiError>
Expand description

Reads the notes of a MIDI file at path as read_midi does, and also accepts a file whose every tempo matches refined, the trusted tempo refined from the stem. A refined equal to bpm counts as none.

ยงErrors

As read_midi, with a tempo that matches neither bpm nor refined.