pub enum Voicing {
Close,
Drop2,
First,
Second,
}Expand description
How the notes of a chord are spread out.
Every one of these preserves the chord’s pitch-class set — it is the same chord, arranged differently — which is the property the tests check.
Variants§
Close
Drop2
The second voice from the top, down an octave. The definition is worth being precise about: it is not “the middle note”, and on a four-note chord it is the third note up, not the second.
First
Lowest voice up an octave.
Second
Lowest two voices up an octave.
Implementations§
Trait Implementations§
impl Copy for Voicing
impl Eq for Voicing
impl StructuralPartialEq for Voicing
Auto Trait Implementations§
impl Freeze for Voicing
impl RefUnwindSafe for Voicing
impl Send for Voicing
impl Sync for Voicing
impl Unpin for Voicing
impl UnsafeUnpin for Voicing
impl UnwindSafe for Voicing
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