pub struct NumeralAlone {
pub numeral: String,
pub rest: String,
pub degree: u8,
pub alteration: i8,
pub minor: bool,
pub bracketed: Vec<(i8, u8)>,
}Expand description
The numeral a figure opens with, and everything it implies.
This is what music21’s _parseRNAloneAmidstAug6 reads: usually just the
roman letters and the scale degree they name, but an augmented sixth is
written by nationality rather than by numeral and carries its own degree,
its own alteration and the accidentals that make it augmented — and it is
always read in the minor of the key it is written in.
Fields§
§numeral: StringThe numeral as written, or the augmented sixth’s name.
rest: StringWhat is left of the figure once the numeral is off it.
degree: u8The scale degree the numeral stands on.
alteration: i8The alteration in front of it, in semitones, where the numeral itself implies one.
minor: boolWhether the figure has to be read in the parallel minor, as every augmented sixth is.
bracketed: Vec<(i8, u8)>The alterations that make an augmented sixth augmented.
Trait Implementations§
Source§impl Clone for NumeralAlone
impl Clone for NumeralAlone
Source§fn clone(&self) -> NumeralAlone
fn clone(&self) -> NumeralAlone
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NumeralAlone
impl Debug for NumeralAlone
impl Eq for NumeralAlone
Source§impl PartialEq for NumeralAlone
impl PartialEq for NumeralAlone
impl StructuralPartialEq for NumeralAlone
Auto Trait Implementations§
impl Freeze for NumeralAlone
impl RefUnwindSafe for NumeralAlone
impl Send for NumeralAlone
impl Sync for NumeralAlone
impl Unpin for NumeralAlone
impl UnsafeUnpin for NumeralAlone
impl UnwindSafe for NumeralAlone
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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