logo
Main Page | Namespaces | Classes | Compounds | Files | Compound Members | Related

SynthCore::BiFilter Class Reference

BiFilter is a biquadratic filter implementation. More...

#include <sndutils.h>

List of all members.

Public Methods

 BiFilter ()
 Constructor.

 ~BiFilter ()
 Destructor;.

float read (float input)
 Actual Code;.

void bypassFreqAndQ (float freq, float Q)
 Dummy filter. Does not alter input.

void lowpassFreqAndQ (float freq, float Q)
 Calculates Low Pass filter coefficients.

void notchFreqAndQ (float freq, float Q)
 Calculates notch (a steep valley) filter coefficients.

void bandpass2FreqAndQ (float freq, float Q)
 Calculates bandpass (constant 0 dB peak gain) filter coefficients.

void bandpass1FreqAndQ (float freq, float Q)
 Calculates Low Pass (constant skirt gain, peak gain = Q) filter coefficients.

void highpassFreqAndQ (float freq, float Q)
 Calculates High Pass filter coefficients.

void allpassFreqAndQ (float freq, float Q)
 Calculates all pass filter coefficients.

void highShelfFreqAndQAndA (float freq, float Q, float A)
 Calculates high shelf filter coefficients.

void lowShelfFreqAndQAndA (float freq, float Q, float A)
 Calculates low shelf filter coefficients.

void peakingEQFreqAndQAndA (float freq, float Q, float A)
 Calculates peaking EQ filter coefficients.

float getFreqResponse (float wT)
 calculates the frequency response for wT = (frequency*sampleLength). Fourier transforms filter co-efficients.

float getPhaseResponse (float wT)
 calculates the phase response for wT = (frequency*sampleLength). Fourier transforms filter co-efficients.

float getFreqResponse2 (float wT)
 calculates the frequency response for wT = (frequency*sampleLength). Uses 'brute force' method (read: this is not efficient- use getFreqResponse() instead)

void getPolesAndZeroes (float &p1r, float &p1i, float &p2r, float &p2i, float &z1r, float &z1i, float &z2r, float &z2i)
 Return the poles and Zeroes of the filter. All calling parameters are just return values passed by reference.

void clone (BiFilter *from)
SamplegetFreqResponseSample (int resolution)
 Returns total frequency response in a sample.

SamplegetPhaseResponseSample (int resolution)
 Returns total phase response in a sample.


Detailed Description

BiFilter is a biquadratic filter implementation.

BiFilter is a biquadratic filter implementation. Thus allowing up to two poles and zeroes in the Z-plane transform of the transfer-function.

BiFilter is used in the BiQuad module.

Definition at line 69 of file sndutils.h.


Member Function Documentation

void SynthCore::BiFilter::clone BiFilter *    from
 

This copies the coefficients from another filter. Useful for filters in series, since there is no reason to calcalute coefficients twice.

Definition at line 314 of file sndutils.cpp.

References a0, a1, a2, b0, b1, and b2.

Referenced by SynthCore::BiQuad::updateFreqAndRez().


The documentation for this class was generated from the following files:
Syntopia Project. Visit the web page, or the SourceForge page.
Docs made by Doxygen. Email: Mikael Christensen