Skip to main content

fix_default_octave_for_pitch_list

Function fix_default_octave_for_pitch_list 

Source
pub fn fix_default_octave_for_pitch_list(pitches: &[Pitch]) -> Vec<Pitch>
Expand description

A collection’s notes with the octaves a caller left out filled in so that the collection rises: music21’s fixDefaultOctaveForPitchList.

A B C D E F G# A is a scale on A, not a collection that climbs a tone and then falls a seventh, and a caller who names no octaves means the first. Notes that carry an octave are left exactly as they are.