Audio FX
 
Loading...
Searching...
No Matches
EQ Class Reference

parametric equalizer with 8 Biquad filters More...

#include <eq.h>

Public Member Functions

 EQ (int sr)
 Initialize all filters for EQ.
 
 EQ (int sr, double g[], int lenG)
 Initialize filters for EQ giving then the corresponding gains in g.
 
 ~EQ ()
 Destory filters and free memory.
 
void applyEQ (vector< vector< double > > &samples)
 Apply filters to samples in a cascading fashion.
 
void setHighPass (double cutoffFreq, double q=0.707)
 
void setLowShelf (double gain, double slope=1.0)
 
void setBell1 (double gain, double bw=0.6)
 
void setBell2 (double gain, double bw=0.3)
 
void setBell3 (double gain, double bw=0.4)
 
void setBell4 (double gain, double bw=0.2)
 
void setHighShelf (double gain, double slope=1.0)
 
void setLowPass (double cutoffFreq, double q=0.707)
 

Detailed Description

parametric equalizer with 8 Biquad filters

the order of the filters is follows:

1 High pass 1 Low shelf 4 Bell 1 High shelf 1 Low pass

Constructor & Destructor Documentation

◆ EQ() [1/2]

EQ::EQ ( int sr)

Initialize all filters for EQ.

Parameters
sr-> sample rate

◆ EQ() [2/2]

EQ::EQ ( int sr,
double g[],
int lenG )

Initialize filters for EQ giving then the corresponding gains in g.

Parameters
sr-> samples rate
g-> array of gains for each filter that is not a pass filter
lenG-> length of array g

Member Function Documentation

◆ applyEQ()

void EQ::applyEQ ( vector< vector< double > > & samples)

Apply filters to samples in a cascading fashion.

Parameters
samples-> audio samples separated by channel

The documentation for this class was generated from the following file: