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).

Revision:
1:0545d8890dc6
Parent:
0:2e17a3d6907c
--- a/ParametricEQ.cpp	Thu Aug 04 19:34:39 2016 +0000
+++ b/ParametricEQ.cpp	Thu Aug 04 19:47:00 2016 +0000
@@ -22,7 +22,7 @@
 
 #include "ParametricEQ.h"
 
-int biquad::execute(int input) {
+int ParametricEQ::biquad::execute(int input) {
 
     int block_output = bhat_0*input + v1;
     w1 = bhat_1*input - ahat_1*(block_output/scaling_factor) + v3;
@@ -174,7 +174,7 @@
     
     Type = type;
     
-    // Tailor parameters to suite the chosen filter type
+    // Tailor parameters to suit the chosen filter type
     switch (Type) {
         
         case Peaking: