fsh::stk
fantastic spatial holophonic synthesis toolkit
Loading...
Searching...
No Matches
fsh::fx::MoogVCF Class Reference

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.
 

Detailed Description

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.

Before using

Set the sample rate using setSampleRate(), and parameters using setParams().

To use

Call processSample() for each sample.


The documentation for this class was generated from the following files: