pub struct BeamedNote {
pub offset: FloatType,
pub quarter_length: FloatType,
pub duration_type: DurationType,
pub sounds: bool,
}Expand description
One of a run of notes to be beamed: where it sits in the bar, how long it lasts, what it is written as, and whether it sounds.
A rest is beamed alongside the notes — music21 works its beams out and then declines to write them on it — so what matters here is the written value and whether the thing sounds, not what kind of object it is.
Fields§
§offset: FloatTypeWhere it starts, in quarter lengths from the start of its measure.
quarter_length: FloatTypeHow long it lasts, in quarter lengths.
duration_type: DurationTypeThe value it is written as, which says how many beams it can carry.
sounds: boolWhether it sounds. A rest carries no beam however it is written.
Trait Implementations§
Source§impl Clone for BeamedNote
impl Clone for BeamedNote
Source§fn clone(&self) -> BeamedNote
fn clone(&self) -> BeamedNote
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 BeamedNote
Source§impl Debug for BeamedNote
impl Debug for BeamedNote
Source§impl PartialEq for BeamedNote
impl PartialEq for BeamedNote
impl StructuralPartialEq for BeamedNote
Auto Trait Implementations§
impl Freeze for BeamedNote
impl RefUnwindSafe for BeamedNote
impl Send for BeamedNote
impl Sync for BeamedNote
impl Unpin for BeamedNote
impl UnsafeUnpin for BeamedNote
impl UnwindSafe for BeamedNote
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