PortAudio  2.0
Macros | Functions
biquad_filter.c File Reference
#include <math.h>
#include <string.h>
#include "biquad_filter.h"

Macros

#define FILTER_PI   (3.141592653589793238462643)
 

Functions

void BiquadFilter_SetupHighPass (BiquadFilter *filter, double ratio, double Q)
 
void BiquadFilter_SetupNotch (BiquadFilter *filter, double ratio, double Q)
 
void BiquadFilter_Filter (BiquadFilter *filter, float *inputs, float *outputs, int numSamples)
 

Macro Definition Documentation

#define FILTER_PI   (3.141592653589793238462643)
 Unit_BiquadFilter implements a second order IIR filter. 
 Here is the equation that we use for this filter:

y(n) = a0*x(n) + a1*x(n-1) + a2*x(n-2) - b1*y(n-1) - b2*y(n-2)

Author
(C) 2002 Phil Burk, SoftSynth.com, All Rights Reserved

Function Documentation

void BiquadFilter_Filter ( BiquadFilter filter,
float *  inputs,
float *  outputs,
int  numSamples 
)
void BiquadFilter_SetupHighPass ( BiquadFilter filter,
double  ratio,
double  Q 
)
void BiquadFilter_SetupNotch ( BiquadFilter filter,
double  ratio,
double  Q 
)