void TransDirectFormIIFilter::setFilter(int type, double cutoff, double resonance,
										double peakGaindB)
{
	this->type = type;
	this->Q = 1.0 / (2.0 * (1.0 - resonance));
	this->cutoff = pitchToFreq(cutoff);
	setPeakGain(peakGaindB);
}
Esempio n. 2
0
void Biquad_multiChan::setBiquad(int type, double Fc, double Q, double peakGainDB) {
    this->type = type;
    this->Q = Q;
    this->Fc = Fc;
    setPeakGain(peakGainDB);
}