pub enum EnvelopeStage {
Attack,
Hold,
Decay,
Sustain,
Release,
Off,
}Expand description
Phase of the envelope lifecycle.
Variants§
Attack
The signal is rising toward the peak level.
Hold
The signal holds at the peak level (AHDSR only).
Decay
The signal falls from the peak to the sustain level.
Sustain
The signal remains at the sustain level while gate is on.
Release
The signal falls to zero after gate-off.
Off
The envelope is silent.
Implementations§
Trait Implementations§
Source§impl Clone for EnvelopeStage
impl Clone for EnvelopeStage
Source§fn clone(&self) -> EnvelopeStage
fn clone(&self) -> EnvelopeStage
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 moreimpl Copy for EnvelopeStage
Source§impl Debug for EnvelopeStage
impl Debug for EnvelopeStage
Source§impl PartialEq for EnvelopeStage
impl PartialEq for EnvelopeStage
Source§fn eq(&self, other: &EnvelopeStage) -> bool
fn eq(&self, other: &EnvelopeStage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EnvelopeStage
Auto Trait Implementations§
impl Freeze for EnvelopeStage
impl RefUnwindSafe for EnvelopeStage
impl Send for EnvelopeStage
impl Sync for EnvelopeStage
impl Unpin for EnvelopeStage
impl UnsafeUnpin for EnvelopeStage
impl UnwindSafe for EnvelopeStage
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