Aviate Audio Multiverse Library
|
The LFO is commonly used on modulation effects where some parameter (delay, volume, etc.) is modulated via waveform at a frequency below 20 Hz. More...
#include <LibBasicFunctions.h>
Public Member Functions | |
LowFrequencyOscillatorVector () | |
Default constructor, uses SINE as default waveform. | |
LowFrequencyOscillatorVector (Waveform waveform) | |
Specifies the desired waveform at construction time. More... | |
virtual | ~LowFrequencyOscillatorVector () |
destructor | |
void | setWaveform (Waveform waveform) |
Change the waveform. More... | |
void | setRateAudio (float frequencyHz) |
Set the LFO rate in Hertz. More... | |
void | setRateRatio (float ratio) |
Set the LFO rate as a fraction. More... | |
void | setRoundnessFactor (float roundness) |
This value will control how much roundness is applied to sharp transition points in the waveform. Note this has no impact in the SINE waveform. More... | |
T * | getNextVector () |
Get the next waveform value. More... | |
The LFO is commonly used on modulation effects where some parameter (delay, volume, etc.) is modulated via waveform at a frequency below 20 Hz.
Waveforms vary between -1.0f and +1.0f.
the | data type of the oscillator |
this LFO is for operating on vectors of audio block samples.
Aviate::LowFrequencyOscillatorVector< T >::LowFrequencyOscillatorVector | ( | Waveform | waveform | ) |
Specifies the desired waveform at construction time.
waveform | specifies desired waveform |
T* Aviate::LowFrequencyOscillatorVector< T >::getNextVector | ( | ) |
Get the next waveform value.
void Aviate::LowFrequencyOscillatorVector< T >::setRateAudio | ( | float | frequencyHz | ) |
Set the LFO rate in Hertz.
frequencyHz | the LFO frequency in Hertz |
void Aviate::LowFrequencyOscillatorVector< T >::setRateRatio | ( | float | ratio | ) |
Set the LFO rate as a fraction.
ratio | the radians/sample will be 2*pi*ratio |
void Aviate::LowFrequencyOscillatorVector< T >::setRoundnessFactor | ( | float | roundness | ) |
This value will control how much roundness is applied to sharp transition points in the waveform. Note this has no impact in the SINE waveform.
roundness | a value between 0 and 1.0. This controls how much rounding is applied to sharp transitions. |
void Aviate::LowFrequencyOscillatorVector< T >::setWaveform | ( | Waveform | waveform | ) |
Change the waveform.
waveform | specifies desired waveform |