pub struct EnvelopeState {
pub stage: EnvelopeStage,
pub level: f64,
pub stage_start_time: Time,
pub stage_start_level: f64,
pub stage_target_level: f64,
pub stage_duration: f64,
pub gate: bool,
}Expand description
Runtime state of an envelope automaton.
Tracks the current stage, output level, timing information, and gate status.
Fields§
§stage: EnvelopeStageCurrent envelope phase.
level: f64Current output level (0.0 – 1.0).
stage_start_time: TimeTime when the current stage began.
stage_start_level: f64Output level at the start of the current stage.
stage_target_level: f64Target level of the current stage.
stage_duration: f64Duration of the current stage in seconds.
gate: boolWhether the gate is on (triggered).
Trait Implementations§
Source§impl Clone for EnvelopeState
impl Clone for EnvelopeState
Source§fn clone(&self) -> EnvelopeState
fn clone(&self) -> EnvelopeState
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 moreAuto Trait Implementations§
impl Freeze for EnvelopeState
impl RefUnwindSafe for EnvelopeState
impl Send for EnvelopeState
impl Sync for EnvelopeState
impl Unpin for EnvelopeState
impl UnsafeUnpin for EnvelopeState
impl UnwindSafe for EnvelopeState
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