Gin
|
#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 () |
LFO with many shapes.
|
strong |
LFO::LFO | ( | ) |
void LFO::setParameters | ( | Parameters | p | ) |
void LFO::reset | ( | ) |
References LFO::Parameters::delay, LFO::Parameters::fade, and LFO::Parameters::phase.
References LFO::Parameters::frequency, noise, LFO::Parameters::phase, sampleAndHold, and LFO::Parameters::waveShape.
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 | ( | ) |