pub struct AdsrState {
pub stage: AdsrStage,
pub value: f32,
pub elapsed: f32,
}Expand description
ADSR envelope state. Thread forward with each call to adsr_step.
Fields§
§stage: AdsrStageCurrent envelope stage.
value: f32Current envelope value in [0, 1].
elapsed: f32Time elapsed in the current stage (seconds).
Implementations§
Trait Implementations§
impl Copy for AdsrState
impl StructuralPartialEq for AdsrState
Auto Trait Implementations§
impl Freeze for AdsrState
impl RefUnwindSafe for AdsrState
impl Send for AdsrState
impl Sync for AdsrState
impl Unpin for AdsrState
impl UnsafeUnpin for AdsrState
impl UnwindSafe for AdsrState
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