pub enum BeamType {
Start,
Continue,
Stop,
PartialBeam,
}Expand description
How one beam of a note joins its neighbours: music21’s beam.Beam.
A beam is a horizontal line joining the flags of consecutive short notes, and each note carries one for every level it is beamed at — an eighth has one, a sixteenth two. Whether the line starts here, carries through, ends here, or is only a stub is rhythmic grouping written down, which is why this lives here beside the ties and the noteheads and not among the things that need a page.
Variants§
Start
The beam begins on this note.
Continue
The beam carries through this note.
Stop
The beam ends on this note.
PartialBeam
A stub reaching only part of the way, pointing left or right.
Implementations§
Trait Implementations§
impl Copy for BeamType
Source§impl<'de> Deserialize<'de> for BeamType
Available on crate feature serde only.
impl<'de> Deserialize<'de> for BeamType
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 Eq for BeamType
impl StructuralPartialEq for BeamType
Auto Trait Implementations§
impl Freeze for BeamType
impl RefUnwindSafe for BeamType
impl Send for BeamType
impl Sync for BeamType
impl Unpin for BeamType
impl UnsafeUnpin for BeamType
impl UnwindSafe for BeamType
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