pub enum PitchAxis {
Pitch(Pitch),
PitchClass(PitchClass),
ScaleDegree {
scale: Scale,
degree: usize,
octave: i16,
},
ChordRoot(Chord),
Frequency(Pitch),
Custom(CustomPitchAxis),
}Expand description
Specification of the axis an InvertTransform mirrors about.
Variants§
Pitch(Pitch)
Mirror about a concrete pitch.
PitchClass(PitchClass)
Mirror pitch classes about a pitch class, keeping octaves.
ScaleDegree
Mirror about a scale degree resolved at a given octave.
Fields
ChordRoot(Chord)
Mirror about the root note of a chord.
Frequency(Pitch)
Mirror about a pitch interpreted as a frequency center.
Custom(CustomPitchAxis)
Mirror about a named CustomPitchAxis.
Trait Implementations§
impl Eq for PitchAxis
impl StructuralPartialEq for PitchAxis
Auto Trait Implementations§
impl Freeze for PitchAxis
impl RefUnwindSafe for PitchAxis
impl Send for PitchAxis
impl Sync for PitchAxis
impl Unpin for PitchAxis
impl UnsafeUnpin for PitchAxis
impl UnwindSafe for PitchAxis
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more