pub struct ChordTableAddress {
pub cardinality: u8,
pub forte_class: u8,
pub inversion: i8,
pub pitch_class_original: u8,
}Expand description
Where a chord’s set class sits in the Forte tables: music21’s
ChordTableAddress.
The cardinality and the class number index the table; the inversion says
which of an inversionally related pair this is, 0 when the class is its
own inversion; and the original pitch class is the one the prime form was
transposed away from.
Fields§
§cardinality: u8How many distinct pitch classes the chord has.
forte_class: u8The Forte class number within that cardinality.
inversion: i81, -1, or 0 for a class that is its own inversion.
pitch_class_original: u8The pitch class the prime form was transposed away from.
Trait Implementations§
Source§impl Clone for ChordTableAddress
impl Clone for ChordTableAddress
Source§fn clone(&self) -> ChordTableAddress
fn clone(&self) -> ChordTableAddress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChordTableAddress
Source§impl Debug for ChordTableAddress
impl Debug for ChordTableAddress
Source§impl<'de> Deserialize<'de> for ChordTableAddress
Available on crate feature serde only.
impl<'de> Deserialize<'de> for ChordTableAddress
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ChordTableAddress
Source§impl Hash for ChordTableAddress
impl Hash for ChordTableAddress
Source§impl PartialEq for ChordTableAddress
impl PartialEq for ChordTableAddress
Source§impl Serialize for ChordTableAddress
Available on crate feature serde only.
impl Serialize for ChordTableAddress
Available on crate feature
serde only.impl StructuralPartialEq for ChordTableAddress
Auto Trait Implementations§
impl Freeze for ChordTableAddress
impl RefUnwindSafe for ChordTableAddress
impl Send for ChordTableAddress
impl Sync for ChordTableAddress
impl Unpin for ChordTableAddress
impl UnsafeUnpin for ChordTableAddress
impl UnwindSafe for ChordTableAddress
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more