Struct glicol_synth::envelope::Adsr
source · pub struct Adsr { /* private fields */ }
Implementations§
source§impl Adsr
impl Adsr
pub fn new() -> Self
pub fn attack(self, attack: f32) -> Self
pub fn decay(self, decay: f32) -> Self
pub fn sustain(self, sustain: f32) -> Self
pub fn release(self, release: f32) -> Self
pub fn gate(self, gate: f32) -> Self
pub fn sr(self, sr: usize) -> Self
pub fn to_boxed_nodedata<const N: usize>( self, channels: usize ) -> NodeData<BoxedNodeSend<N>, N>
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 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