46 FilterSet() { reset(); }
47 void reset() { memset(
this, 0,
sizeof(FilterSet)); }
49 int32_t setConfig(q31_t lpfFrequency, q31_t lpfResonance, FilterMode lpfmode, q31_t lpfMorph, q31_t hpfFrequency,
50 q31_t hpfResonance, FilterMode hpfmode, q31_t hpfMorph, q31_t filterGain, FilterRoute routing,
51 bool adjustVolumeForHPFResonance, q31_t* overallOscAmplitude);
53 void renderLong(q31_t* startSample, q31_t* endSample, int32_t numSamples, int32_t sampleIncrememt = 1);
56 void renderLongStereo(q31_t* startSample, q31_t* endSample);
59 inline bool isLPFOn() {
return LPFOn; }
60 inline bool isHPFOn() {
return HPFOn; }
61 inline bool isOn() {
return HPFOn || LPFOn; }
65 FilterMode lastLPFMode_;
67 FilterMode lastHPFMode_;
70 void renderLPFLong(q31_t* startSample, q31_t* endSample, int32_t sampleIncrement = 1);
71 void renderLPFLongStereo(q31_t* startSample, q31_t* endSample);
72 void renderHPFLongStereo(q31_t* startSample, q31_t* endSample);
73 void renderHPFLong(q31_t* startSample, q31_t* endSample, int32_t sampleIncrement = 1);