Struct Lfo
pub struct Lfo { /* private fields */ }Expand description
Low Frequency Oscillator for modulation effects.
Generates periodic control signals for tremolo, vibrato, phaser, etc. Uses a phase accumulator for efficient, RT-safe operation.
Implementations§
§impl Lfo
impl Lfo
pub fn new(waveform: LfoWaveform, sample_rate: f64) -> Lfo
pub fn new(waveform: LfoWaveform, sample_rate: f64) -> Lfo
Create a new LFO with the given waveform and sample rate.
pub fn set_depth(&mut self, depth: f64)
pub fn set_depth(&mut self, depth: f64)
Set modulation depth (0.0 = no modulation, 1.0 = full depth).
pub fn set_waveform(&mut self, waveform: LfoWaveform)
pub fn set_waveform(&mut self, waveform: LfoWaveform)
Set the waveform shape.
pub fn waveform(&self) -> LfoWaveform
pub fn waveform(&self) -> LfoWaveform
Get the current waveform.
pub fn tick_unipolar(&mut self) -> f64
pub fn tick_unipolar(&mut self) -> f64
Advance the LFO and return unipolar output (0.0 to depth).
Useful for tremolo depth where 0 = no cut, depth = full cut.
Trait Implementations§
§impl Modulator for Lfo
impl Modulator for Lfo
Auto Trait Implementations§
impl Freeze for Lfo
impl RefUnwindSafe for Lfo
impl Send for Lfo
impl Sync for Lfo
impl Unpin for Lfo
impl UnsafeUnpin for Lfo
impl UnwindSafe for Lfo
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