Step sequencer-style LFO with programmable values per step.
More...
#include <gin_steplfo.h>
Step sequencer-style LFO with programmable values per step.
StepLFO provides a stepped low-frequency oscillator where each step can have an independently programmed value. Unlike smooth LFOs, this creates stepped/ quantized modulation patterns useful for rhythmic effects and sequenced modulation.
Key Features:
- Configurable number of steps
- Independent value per step (-1.0 to 1.0)
- Adjustable frequency (rate)
- Phase reset on note-on for tempo-synced patterns
- Constant output per step (no interpolation)
Usage:
float modValue = stepLFO.
process(numSamples);
void setNumPoints(int n)
Definition gin_steplfo.h:65
void noteOn(float phase_=-1.0f)
Definition gin_steplfo.h:74
void setSampleRate(double sr)
Definition gin_steplfo.h:63
float process(int numSamples)
Definition gin_steplfo.h:80
void setFreq(float f)
Definition gin_steplfo.h:64
void setPoint(int n, float v)
Definition gin_steplfo.h:66
- See also
- MSEG, LFO
◆ StepLFO()
◆ setSampleRate()
| void StepLFO::setSampleRate |
( |
double | sr | ) |
|
◆ setFreq()
| void StepLFO::setFreq |
( |
float | f | ) |
|
◆ setNumPoints()
| void StepLFO::setNumPoints |
( |
int | n | ) |
|
◆ setPoint()
| void StepLFO::setPoint |
( |
int | n, |
|
|
float | v ) |
◆ reset()
◆ noteOn()
| void StepLFO::noteOn |
( |
float | phase_ = -1.0f | ) |
|
◆ process()
| float StepLFO::process |
( |
int | numSamples | ) |
|
◆ getOutput()
| float StepLFO::getOutput |
( |
| ) |
|
◆ getCurrentPhase()
| float StepLFO::getCurrentPhase |
( |
| ) |
|
The documentation for this class was generated from the following file: