|
Gin
|
Low-Frequency Oscillator with 18 waveform shapes and modulation features. More...
#include <gin_lfo.h>
Classes | |
| struct | Parameters |
Public Types | |
| enum class | WaveShape : int { none , sine , triangle , sawUp , sawDown , square , squarePos , sampleAndHold , noise , stepUp3 , stepUp4 , stepup8 , stepDown3 , stepDown4 , stepDown8 , pyramid3 , pyramid5 , pyramid9 } |
Public Member Functions | |
| LFO () | |
| void | setSampleRate (double sr) |
| void | setParameters (Parameters p) |
| void | reset () |
| void | noteOn (float phase_=-1.0f) |
| float | process (int numSamples) |
| float | getOutput () |
| float | getOutputUnclamped () |
| float | getCurrentPhase () |
Static Public Attributes | |
| static constexpr int | maxRandomPhase = 1000 |
Low-Frequency Oscillator with 18 waveform shapes and modulation features.
LFO provides a versatile modulation source with many waveforms, phase control, fade-in, delay, and depth/offset parameters. It supports both smooth waveforms (sine, triangle) and stepped waveforms (sample-and-hold, pyramids, steps).
Key Features:
Waveform Types:
Usage:
|
strong |
| LFO::LFO | ( | ) |
References maxRandomPhase.
| void LFO::setParameters | ( | Parameters | p | ) |
References maxRandomPhase, noise, sampleAndHold, and LFO::Parameters::waveShape.
| void LFO::reset | ( | ) |
| float LFO::getOutput | ( | ) |
References LFO::Parameters::depth, and LFO::Parameters::offset.
| float LFO::getOutputUnclamped | ( | ) |
References LFO::Parameters::depth, and LFO::Parameters::offset.
| float LFO::getCurrentPhase | ( | ) |
Referenced by LFO(), noteOn(), process(), and setParameters().