pub struct EnvelopeOptions {
pub attack_curve: EnvelopeCurveType,
pub decay_curve: EnvelopeCurveType,
pub release_curve: EnvelopeCurveType,
}Expand description
Options for the curves of a specific envelope.
Fields§
§attack_curve: EnvelopeCurveTypeControls the type of curve of the attack envelope stage. See the
documentation of the EnvelopeCurveType enum for available options.
Default: Exponential
decay_curve: EnvelopeCurveTypeControls the type of curve of the decay envelope stage. See the
documentation of the EnvelopeCurveType enum for available options.
Default: Linear
release_curve: EnvelopeCurveTypeControls the type of curve of the release envelope stage. See the
documentation of the EnvelopeCurveType enum for available options.
Default: Linear
Trait Implementations§
Source§impl Clone for EnvelopeOptions
impl Clone for EnvelopeOptions
Source§fn clone(&self) -> EnvelopeOptions
fn clone(&self) -> EnvelopeOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 EnvelopeOptions
impl Debug for EnvelopeOptions
Source§impl Default for EnvelopeOptions
impl Default for EnvelopeOptions
Source§impl PartialEq for EnvelopeOptions
impl PartialEq for EnvelopeOptions
impl Copy for EnvelopeOptions
impl StructuralPartialEq for EnvelopeOptions
Auto Trait Implementations§
impl Freeze for EnvelopeOptions
impl RefUnwindSafe for EnvelopeOptions
impl Send for EnvelopeOptions
impl Sync for EnvelopeOptions
impl Unpin for EnvelopeOptions
impl UnsafeUnpin for EnvelopeOptions
impl UnwindSafe for EnvelopeOptions
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