pub struct WeighedChord<'a> {
pub offset: FloatType,
pub chord: &'a Chord,
pub beat_strength: FloatType,
}Expand description
One chord of a measure as the weighing reads it: where it stands, what it is, and how strong the beat it stands on is.
music21 reads the beat strength off the chord’s own place in the measure holding it; a chord here knows neither, so the caller says.
Fields§
§offset: FloatTypeWhere the chord stands in the measure.
chord: &'a ChordThe chord itself.
beat_strength: FloatTypeHow strong the beat it stands on is.
Trait Implementations§
Source§impl<'a> Clone for WeighedChord<'a>
impl<'a> Clone for WeighedChord<'a>
impl<'a> Copy for WeighedChord<'a>
Auto Trait Implementations§
impl<'a> Forget for WeighedChord<'a>
impl<'a> Freeze for WeighedChord<'a>
impl<'a> RefUnwindSafe for WeighedChord<'a>
impl<'a> Send for WeighedChord<'a>
impl<'a> Sync for WeighedChord<'a>
impl<'a> Unpin for WeighedChord<'a>
impl<'a> UnsafeUnpin for WeighedChord<'a>
impl<'a> UnwindSafe for WeighedChord<'a>
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,
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