SynthLab SDK
SynthLab::VASVFilter Class Reference
Inheritance diagram for SynthLab::VASVFilter:
SynthLab::IFilterBase

Public Member Functions

virtual bool reset (double _sampleRate)
 
virtual bool update ()
 update the filter due to changes in the GUI controls and/or modulations More...
 
virtual FilterOutputprocess (double xn)
 Process audio through the filter. Different filters produce different outputs in the FilterOutput's array. More...
 
virtual void setFilterParams (double _fc, double _Q)
 Sets the two parameters of all synth filters. You can add more here if you need to. More...
 
void setCoeffs (VASVFCoeffs &_coeffs)
 
void copyCoeffs (VASVFilter &destination)
 

Protected Attributes

FilterOutput output
 
double sampleRate = 44100.0
 current sample rate
 
double halfSamplePeriod = 1.0
 
double fc = 0.0
 
double Q = 0.0
 
double integrator_z [2]
 state variables
 
VASVFCoeffs coeffs
 

Member Function Documentation

◆ process()

FilterOutput * SynthLab::VASVFilter::process ( double  xn)
virtual

Process audio through the filter. Different filters produce different outputs in the FilterOutput's array.

Returns
FilterOutput structure containing outputs in pre-defined slots

Implements SynthLab::IFilterBase.

◆ reset()

bool SynthLab::VASVFilter::reset ( double  _sampleRate)
virtual

reset members to initialized state

Implements SynthLab::IFilterBase.

◆ setFilterParams()

void SynthLab::VASVFilter::setFilterParams ( double  _fc,
double  _Q 
)
virtual

Sets the two parameters of all synth filters. You can add more here if you need to.

Parameters
_fcthe center or cutoff frequency of the filter
_Qthe quality factor (damping) of the filter

Implements SynthLab::IFilterBase.

◆ update()

bool SynthLab::VASVFilter::update ( )
virtual

update the filter due to changes in the GUI controls and/or modulations

Returns
true if sucessful, false otherwise

Implements SynthLab::IFilterBase.


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