DaisySP
|
#include <svf.h>
Public Member Functions | |
void | Init (float sample_rate) |
void | Process (float in) |
void | SetFreq (float f) |
void | SetRes (float r) |
void | SetDrive (float d) |
float | Low () |
float | High () |
float | Band () |
float | Notch () |
float | Peak () |
Double Sampled, Stable State Variable Filter
Credit to Andrew Simper from musicdsp.org
This is his "State Variable Filter (Double Sampled, Stable)"
Additional thanks to Laurent de Soras for stability limit, and Stefan Diedrichsen for the correct notch output
Ported by: Stephen Hensley
|
inline |
bandpass output
|
inline |
highpass output
Initializes the filter float sample_rate - sample rate of the audio engine being run, and the frequency that the Process function will be called.
|
inline |
lowpass output
|
inline |
notchpass output
|
inline |
peak output
sets the drive of the filter affects the response of the resonance of the filter
sets the frequency of the cutoff frequency. f must be between 0.0 and sample_rate / 3
sets the resonance of the filter. Must be between 0.0 and 1.0 to ensure stability.