pub struct Spelling {
pub chord: String,
pub numeral: String,
pub form: Option<String>,
pub relativeroot: Option<String>,
pub local_key: String,
}Expand description
One row of a DCML table, read: music21’s TabChord and TabChordV2.
The columns of the two standards differ in their names and in what they
carry, and a row of either is read into this one type – what the lab’s
version 1 calls measure and beat its version 2 calls mn and
mn_onset, and counts the onset in whole notes rather than in beats.
A row’s label and keys as one of the two standards spells them:
what music21’s _changeRepresentation writes back onto a row.
Fields§
§chord: StringThe whole label, which the lab’s version 2 writes in one column.
numeral: StringThe degree alone.
form: Option<String>How the chord is built over the degree.
relativeroot: Option<String>The degree the chord is read in.
local_key: StringThe key in force.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Spelling
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Spelling
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 StructuralPartialEq for Spelling
Auto Trait Implementations§
impl Forget for Spelling
impl Freeze for Spelling
impl RefUnwindSafe for Spelling
impl Send for Spelling
impl Sync for Spelling
impl Unpin for Spelling
impl UnsafeUnpin for Spelling
impl UnwindSafe for Spelling
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