DaisySP
Loading...
Searching...
No Matches
daisysp::Svf Class Reference

#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 ()
 

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

Member Function Documentation

◆ Band()

float daisysp::Svf::Band ( )
inline

bandpass output

Returns
band pass output of the filter

◆ High()

float daisysp::Svf::High ( )
inline

highpass output

Returns
high pass output of the filter

◆ Init()

void 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.

◆ Low()

float daisysp::Svf::Low ( )
inline

lowpass output

Returns
low pass output of the filter

◆ Notch()

float daisysp::Svf::Notch ( )
inline

notchpass output

Returns
notch pass output of the filter

◆ Peak()

float daisysp::Svf::Peak ( )
inline

peak output

Returns
peak output of the filter

◆ Process()

void Svf::Process ( float in)

Process the input signal, updating all of the outputs.

◆ SetDrive()

void Svf::SetDrive ( float d)

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

◆ SetFreq()

void Svf::SetFreq ( float f)

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

◆ SetRes()

void Svf::SetRes ( float r)

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


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