Skip to main content

join_consecutive_identical_pitches

Function join_consecutive_identical_pitches 

Source
pub fn join_consecutive_identical_pitches(
    pitches: Vec<Pitch>,
) -> Result<(Vec<StreamElement>, Vec<usize>)>
Expand description

Notes and rests from runs of one pitch, and how many pitches each lasted: music21’s joinConsecutiveIdenticalPitches. A run of six or more is a note of its last pitch; fifteen or more pitches in shorter runs before a note make a rest. The first pitch is taken as a rest’s, and as in music21 the first pitch after each run is passed over.

§Errors

No pitches.