Skip to main content

notes_sorted

Function notes_sorted 

Source
pub fn notes_sorted(stream: &Stream) -> Vec<Searched<'_>>
Expand description

The notes of a stream in the order music21’s recurse().notes.stream() leaves them: by offset in the stream, then by class, grace notes first, then as the walk met them – so the notes of two voices interleave.

It is what music21 hands its translations when it indexes a part, and so what a caller translating a part itself – the wheel, whose translator may fail – must hand them too.