pub struct Tremolo { /* private fields */ }Expand description
Amplitude tremolo driven by the crate’s built-in sine wavetable, ported from
daisysp::Tremolo.
Implementations§
Source§impl Tremolo
impl Tremolo
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a tremolo at 1 Hz, full depth (call Self::set_freq/Self::set_depth_q8 to taste).
Sourcepub fn set_depth_q8(&mut self, depth_q8: u8)
pub fn set_depth_q8(&mut self, depth_q8: u8)
Sets how much to modulate volume, 0 (no effect) to 255 (full tremolo, silent at trough).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tremolo
impl RefUnwindSafe for Tremolo
impl Send for Tremolo
impl Sync for Tremolo
impl Unpin for Tremolo
impl UnsafeUnpin for Tremolo
impl UnwindSafe for Tremolo
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