Skip to main content

transcribed_notes

Function transcribed_notes 

Source
pub fn transcribed_notes(
    notes: &[StreamElement],
    lengths: &[usize],
    score_notes: Option<&Stream>,
    remove_rests_at_beginning: bool,
) -> Result<(Vec<TranscribedNote>, FloatType)>
Expand description

How long each note of a transcription is to last and which of them go into the part, and the quarter length estimated: the by-position twin of notes_and_durations_to_stream.

music21 writes the length onto every note it is given, the rests it then leaves out included, which is why each note is answered for whether it is kept or not.

ยงErrors

Fewer notes than lengths, or no lengths.