Skip to main content

Module pitch

Module pitch 

Source
Expand description

Pitch construction, spelling and pitch-space helpers.

Structs§

Accidental
Symbolic and numerical accidental information for a pitch.
Microtone
A microtonal pitch adjustment measured in cents, optionally shifted by a harmonic like Python music21’s music21.pitch.Microtone.
Pitch
A musical pitch with spelling, octave, accidental and optional microtone.
PitchClass
A normalized pitch-class value.
PitchOptions
Builder options for constructing a Pitch.

Enums§

AccidentalSpecifier
Input accepted by Accidental::new and Accidental::set.
MicrotoneSpecifier
Input accepted by Microtone::new and Microtone::with_harmonic_shift.
PitchClassSpecifier
Input accepted by PitchClass::new and pitch-class builders.
PitchName
Input accepted as a pitch name or pitch-space number.

Constants§

CHROMATIC_PITCH_CLASS_NAMES
Canonical pitch names for chromatic pitch classes.

Functions§

pitch_class_name
Returns a canonical pitch name for a chromatic pitch class.