daisysp::Svf¶
#include <svf.h>
Public Functions¶
Name | |
---|---|
Svf() | |
~Svf() | |
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() |
Detailed Description¶
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
Public Functions Documentation¶
function Svf¶
function ~Svf¶
function Init¶
Initializes the filter float sample_rate - sample rate of the audio engine being run, and the frequency that the Process function will be called.
function Process¶
Process the input signal, updating all of the outputs.
function SetFreq¶
sets the frequency of the cutoff frequency. f must be between 0.0 and sample_rate / 3
function SetRes¶
sets the resonance of the filter. Must be between 0.0 and 1.0 to ensure stability.
function SetDrive¶
sets the drive of the filter affects the response of the resonance of the filter
function Low¶
Return: low pass output of the filter
lowpass output
function High¶
Return: high pass output of the filter
highpass output
function Band¶
Return: band pass output of the filter
bandpass output
function Notch¶
Return: notch pass output of the filter
notchpass output
function Peak¶
Return: peak output of the filter
peak output
---¶
Updated on 2024-01-03 at 19:38:46 +0000