A parametric EQ that uses a fixed point, direct form 2 transposed, implementation of a Butterworth filter. The following parameters can be adjusted: Gain (dB), Bandwidth Gain (dB), Centre frequency (Hz), Bandwidth (Hz), Order, Type (Peaking, Bandstop, Bandpass, Low Shelf, High Shelf, Low Pass or High Pass).
Diff: ParametricEQ.h
- Revision:
- 1:0545d8890dc6
- Parent:
- 0:2e17a3d6907c
- Child:
- 2:74e41881a5d9
diff -r 2e17a3d6907c -r 0545d8890dc6 ParametricEQ.h --- a/ParametricEQ.h Thu Aug 04 19:34:39 2016 +0000 +++ b/ParametricEQ.h Thu Aug 04 19:47:00 2016 +0000 @@ -64,6 +64,19 @@ * } * @endcode */ + +enum FilterType { + + Peaking, + BandPass, + BandStop, + LowShelf, + HighShelf, + LowPass, + HighPass +}; + +class ParametricEQ { class biquad { @@ -95,19 +108,6 @@ int execute(int input); }; -enum FilterType { - - Peaking, - BandPass, - BandStop, - LowShelf, - HighShelf, - LowPass, - HighPass -}; - -class ParametricEQ { - // This module's fx blocks biquad fx_blocks[(MAX_ORDER + 1)/2];