pub struct Adsr {
pub attack: f32,
pub decay: f32,
pub sustain: f32,
pub release: f32,
}Expand description
ADSR envelope generator. Produces a gain value in [0, 1] from a note timeline.
Fields§
§attack: f32§decay: f32§sustain: f32§release: f32Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Adsr
impl RefUnwindSafe for Adsr
impl Send for Adsr
impl Sync for Adsr
impl Unpin for Adsr
impl UnsafeUnpin for Adsr
impl UnwindSafe for Adsr
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