pub struct Grace { /* private fields */ }Expand description
How a grace note is written and played: what music21’s GraceDuration
carries beside its written values.
Implementations§
Source§impl Grace
impl Grace
Sourcepub fn appoggiatura() -> Self
pub fn appoggiatura() -> Self
An appoggiatura: unslashed, taking its time from the note it leans
on, as music21’s AppoggiaturaDuration starts out.
Sourcepub fn slash(&self) -> bool
pub fn slash(&self) -> bool
Whether the stem is drawn with a slash through it: music21’s slash.
Sourcepub fn steal_time_previous(&self) -> Option<FloatType>
pub fn steal_time_previous(&self) -> Option<FloatType>
The share of the note before’s time this one takes: music21’s
stealTimePrevious.
Sourcepub fn set_steal_time_previous(&mut self, share: Option<FloatType>)
pub fn set_steal_time_previous(&mut self, share: Option<FloatType>)
Says what share of the note before’s time it takes.
Sourcepub fn steal_time_following(&self) -> Option<FloatType>
pub fn steal_time_following(&self) -> Option<FloatType>
The share of the note after’s time this one takes: music21’s
stealTimeFollowing.
Sourcepub fn set_steal_time_following(&mut self, share: Option<FloatType>)
pub fn set_steal_time_following(&mut self, share: Option<FloatType>)
Says what share of the note after’s time it takes.
Sourcepub fn make_time(&self) -> bool
pub fn make_time(&self) -> bool
Whether the grace note takes time of its own in performance:
music21’s makeTime.
Sourcepub fn set_make_time(&mut self, make_time: bool)
pub fn set_make_time(&mut self, make_time: bool)
Says whether it takes time of its own.
Trait Implementations§
impl Copy for Grace
Source§impl<'de> Deserialize<'de> for Grace
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Grace
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 StructuralPartialEq for Grace
Auto Trait Implementations§
impl Freeze for Grace
impl RefUnwindSafe for Grace
impl Send for Grace
impl Sync for Grace
impl Unpin for Grace
impl UnsafeUnpin for Grace
impl UnwindSafe for Grace
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