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) |
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
EQ::EQ | ( | int | sr | ) |
Initialize all filters for EQ.
sr | -> sample rate |
EQ::EQ | ( | int | sr, |
double | g[], | ||
int | lenG ) |
Initialize filters for EQ giving then the corresponding gains in g.
sr | -> samples rate |
g | -> array of gains for each filter that is not a pass filter |
lenG | -> length of array g |
void EQ::applyEQ | ( | vector< vector< double > > & | samples | ) |
Apply filters to samples in a cascading fashion.
samples | -> audio samples separated by channel |