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:
2:74e41881a5d9
Parent:
1:0545d8890dc6
Child:
3:495d3542ccb5
--- a/ParametricEQ.h	Thu Aug 04 19:47:00 2016 +0000
+++ b/ParametricEQ.h	Thu Aug 04 19:48:39 2016 +0000
@@ -41,6 +41,17 @@
 
 #define PIN(n,min,max) ((n) > (max) ? max : ((n) < (min) ? (min) : (n)))
 
+enum FilterType {
+    
+    Peaking,
+    BandPass,
+    BandStop,
+    LowShelf,
+    HighShelf,
+    LowPass,
+    HighPass    
+};
+
 /** A fixed point parametric EQ implementing Butterworth coefficients in direct form 2 transposed realisation
  *
  * Example:
@@ -65,17 +76,6 @@
  * @endcode
  */
  
-enum FilterType {
-    
-    Peaking,
-    BandPass,
-    BandStop,
-    LowShelf,
-    HighShelf,
-    LowPass,
-    HighPass    
-};
- 
 class ParametricEQ {
 
 class biquad {