pub enum DynamicContext {
FromStream,
Ignored,
Fixed(Dynamic),
}Expand description
Where realize_volume looks for the dynamic a note sounds under:
music21’s useDynamicContext, which is True, False or a Dynamic.
Variants§
FromStream
The dynamics in the stream, each in force until the next. A note before the first of them sounds under none.
Ignored
No dynamic at all.
Fixed(Dynamic)
One dynamic for everything, whatever the stream holds.
Trait Implementations§
Source§impl Clone for DynamicContext
impl Clone for DynamicContext
Source§impl Debug for DynamicContext
impl Debug for DynamicContext
Source§impl Default for DynamicContext
impl Default for DynamicContext
Source§impl PartialEq for DynamicContext
impl PartialEq for DynamicContext
impl StructuralPartialEq for DynamicContext
Auto Trait Implementations§
impl Freeze for DynamicContext
impl RefUnwindSafe for DynamicContext
impl Send for DynamicContext
impl Sync for DynamicContext
impl Unpin for DynamicContext
impl UnsafeUnpin for DynamicContext
impl UnwindSafe for DynamicContext
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