![]() |
fsh::stk
fantastic spatial holophonic synthesis toolkit
|
Virtual analog Moog-style lowpass filter. More...
#include <MoogVCF.h>
Classes | |
struct | Params |
Parameters for the filter. More... | |
Public Member Functions | |
void | setParams (const Params &) |
Set the filter parameters. | |
void | setSampleRate (double) |
Set the sample rate in Hz. | |
float | processSample (float) |
Filter a single sample. | |
void | reset () |
Reset the filter state. | |
Virtual analog Moog-style lowpass filter.
This implementation originally appeared on MusicDSP.org, and was then ported/improved by ddiakopoulos on GitHub.
The filter can occasionally become unstable when the input level is too high. It is recommended to use a pre-scale to avoid this. For example, a factor of 0.5 seems to work well with the Oscillator class.
Set the sample rate using setSampleRate(), and parameters using setParams().
Call processSample() for each sample.