pub struct Lfo { /* private fields */ }
Expand description
A Low Frequency Oscillator is represented here
Lfo::new(sr) is a new LFO with sample rate sr
lfo.tick() advances the LFO by 1 tick, must be called at the sample rate
lfo.set_frequency(f) sets the frequency of the LFO to f
lfo.get(ws) is the current value of the given waveshape in [-1.0, +1.0]
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.