pub struct EnvRetrigADSR { /* private fields */ }
Implementations§
Source§impl EnvRetrigADSR
impl EnvRetrigADSR
Sourcepub fn set_sample_rate(&mut self, srate: f32)
pub fn set_sample_rate(&mut self, srate: f32)
Set the sample rate of the envelope. Unit in samples per second.
pub fn tick(&mut self, gate: f32, params: &mut EnvADSRParams) -> (f32, f32)
Trait Implementations§
Source§impl Clone for EnvRetrigADSR
impl Clone for EnvRetrigADSR
Source§fn clone(&self) -> EnvRetrigADSR
fn clone(&self) -> EnvRetrigADSR
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 EnvRetrigADSR
impl RefUnwindSafe for EnvRetrigADSR
impl Send for EnvRetrigADSR
impl Sync for EnvRetrigADSR
impl Unpin for EnvRetrigADSR
impl UnwindSafe for EnvRetrigADSR
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