pub struct NumeralFigure {
pub figure: String,
pub degree: u8,
pub front_alteration: Option<FloatType>,
pub fifths: IntegerType,
pub mode: String,
pub key: KeyDisplay,
}Expand description
What MusicXML 4 writes of a Roman numeral as a <numeral>: music21’s
romanNumeralToXml with writeAsChord off.
Fields§
§figure: StringThe figure without what follows a slash: music21’s primaryFigure.
degree: u8The scale degree of the root, one to seven.
front_alteration: Option<FloatType>The alteration written in front of the numeral, in semitones.
fifths: IntegerTypeThe key’s count of sharps, flats negative.
mode: StringThe mode MusicXML names: major, minor, or for the sixth and
seventh degrees of a minor key the form of minor they come from.
key: KeyDisplayWhether the key is shown.
Implementations§
Source§impl NumeralFigure
impl NumeralFigure
Sourcepub fn of(numeral: &RomanNumeral, root: &Pitch, key: KeyDisplay) -> Self
pub fn of(numeral: &RomanNumeral, root: &Pitch, key: KeyDisplay) -> Self
The figure of a numeral whose chord has this root, read as music21 reads it.
Trait Implementations§
Source§impl Clone for NumeralFigure
impl Clone for NumeralFigure
Source§impl Debug for NumeralFigure
impl Debug for NumeralFigure
Source§impl<'de> Deserialize<'de> for NumeralFigure
Available on crate feature serde only.
impl<'de> Deserialize<'de> for NumeralFigure
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
Source§impl PartialEq for NumeralFigure
impl PartialEq for NumeralFigure
Source§impl Serialize for NumeralFigure
Available on crate feature serde only.
impl Serialize for NumeralFigure
Available on crate feature
serde only.impl StructuralPartialEq for NumeralFigure
Auto Trait Implementations§
impl Forget for NumeralFigure
impl Freeze for NumeralFigure
impl Move for NumeralFigure
impl RefUnwindSafe for NumeralFigure
impl Send for NumeralFigure
impl Sync for NumeralFigure
impl Unpin for NumeralFigure
impl UnsafeUnpin for NumeralFigure
impl UnwindSafe for NumeralFigure
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