SynthLab SDK
SynthLab::VAKorg35Filter Class Reference
Inheritance diagram for SynthLab::VAKorg35Filter:
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 (VAKorg35Coeffs &_coeffs)
 
void copyCoeffs (VAKorg35Filter &destination)
 

Protected Attributes

FilterOutput output
 
VA1Filter lpfVAFilters [KORG_SUBFILTERS]
 
VA1Filter hpfVAFilters [KORG_SUBFILTERS]
 
double sampleRate = 44100.0
 current sample rate
 
double halfSamplePeriod = 1.0
 
double fc = 0.0
 
VAKorg35Coeffs coeffs
 

Member Function Documentation

◆ process()

FilterOutput * SynthLab::VAKorg35Filter::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::VAKorg35Filter::reset ( double  _sampleRate)
virtual

reset members to initialized state

Implements SynthLab::IFilterBase.

◆ setFilterParams()

void SynthLab::VAKorg35Filter::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::VAKorg35Filter::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: