pub enum ArticulationType {
OneShot,
SustainLoop {
loop_start: usize,
loop_end: usize,
},
SustainRelease,
}Expand description
How a sample behaves during playback.
Variants§
OneShot
Play once and stop (staccato, pluck).
SustainLoop
Loop while key is held, release when key is lifted.
Fields
SustainRelease
Play forward until key release, then crossfade to release sample.
Trait Implementations§
Source§impl Clone for ArticulationType
impl Clone for ArticulationType
Source§fn clone(&self) -> ArticulationType
fn clone(&self) -> ArticulationType
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 moreSource§impl Debug for ArticulationType
impl Debug for ArticulationType
Source§impl<'de> Deserialize<'de> for ArticulationType
impl<'de> Deserialize<'de> for ArticulationType
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
Source§impl PartialEq for ArticulationType
impl PartialEq for ArticulationType
Source§fn eq(&self, other: &ArticulationType) -> bool
fn eq(&self, other: &ArticulationType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ArticulationType
impl Serialize for ArticulationType
impl StructuralPartialEq for ArticulationType
Auto Trait Implementations§
impl Freeze for ArticulationType
impl RefUnwindSafe for ArticulationType
impl Send for ArticulationType
impl Sync for ArticulationType
impl Unpin for ArticulationType
impl UnsafeUnpin for ArticulationType
impl UnwindSafe for ArticulationType
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