Skip to main content

write_named_midi

Function write_named_midi 

Source
pub fn write_named_midi(
    notes: &NoteList,
    bpm: Bpm,
    velocities: Velocities,
    name: &str,
) -> Result<Vec<u8>, MidiWriteError>
Expand description

Encodes the notes as write_midi does, with a track name event at tick 0 before the tempo. notes names the stem this way, so a later run can tell a file of another stem; midi_track_name reads it back.

ยงErrors

The errors of write_midi.