Skip to content

Class daisysp::Svf

ClassList > daisysp > Svf

More...

  • #include <svf.h>

Public Functions

Type Name
float Band ()
float High ()
void Init (float sample_rate)
float Low ()
float Notch ()
float Peak ()
void Process (float in)
void SetDrive (float d)
void SetFreq (float f)
void SetRes (float r)
Svf ()
~Svf ()

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 Band

inline float daisysp::Svf::Band () 

bandpass output

Returns:

band pass output of the filter


function High

inline float daisysp::Svf::High () 

highpass output

Returns:

high pass output of the filter


function Init

void daisysp::Svf::Init (
    float sample_rate
) 

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 Low

inline float daisysp::Svf::Low () 

lowpass output

Returns:

low pass output of the filter


function Notch

inline float daisysp::Svf::Notch () 

notchpass output

Returns:

notch pass output of the filter


function Peak

inline float daisysp::Svf::Peak () 

peak output

Returns:

peak output of the filter


function Process

void daisysp::Svf::Process (
    float in
) 

Process the input signal, updating all of the outputs.


function SetDrive

void daisysp::Svf::SetDrive (
    float d
) 

sets the drive of the filter affects the response of the resonance of the filter


function SetFreq

void daisysp::Svf::SetFreq (
    float f
) 

sets the frequency of the cutoff frequency. f must be between 0.0 and sample_rate / 3


function SetRes

void daisysp::Svf::SetRes (
    float r
) 

sets the resonance of the filter. Must be between 0.0 and 1.0 to ensure stability.


function Svf

inline daisysp::Svf::Svf () 

function ~Svf

inline daisysp::Svf::~Svf () 


The documentation for this class was generated from the following file external-docs/DaisySP/Source/Filters/svf.h