Skip to main content

pitches

Function pitches 

Source
pub fn pitches<S: AsRef<str>>(
    pitch_names: &[S],
    bass: &Pitch,
    max_pitch: &Pitch,
) -> Result<Vec<Pitch>>
Expand description

Every pitch named in pitch_names, in every octave from bass up to max_pitch, both included, lowest first: music21’s segment.getPitches.

§Errors

A maximum pitch with no octave, or a name that is no pitch.