diff options
author | Damien Zammit <damien@zamaudio.com> | 2014-10-01 13:49:20 +1000 |
---|---|---|
committer | Damien Zammit <damien@zamaudio.com> | 2014-10-01 13:49:20 +1000 |
commit | f63008e21bcf5356c9dff84587ced658ff688c70 (patch) | |
tree | dbffe8b1393b4914ed5635a6e0aaf5976a51d4f6 /plugins/ZamGEQ31/ZamGEQ31Plugin.hpp | |
parent | f088d518ff4ae8e5198e43c62ae845e8b60703e1 (diff) |
Changed graphic EQ filter algorithm
Signed-off-by: Damien Zammit <damien@zamaudio.com>
Diffstat (limited to 'plugins/ZamGEQ31/ZamGEQ31Plugin.hpp')
-rw-r--r-- | plugins/ZamGEQ31/ZamGEQ31Plugin.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/ZamGEQ31/ZamGEQ31Plugin.hpp b/plugins/ZamGEQ31/ZamGEQ31Plugin.hpp index 12900cb..051b307 100644 --- a/plugins/ZamGEQ31/ZamGEQ31Plugin.hpp +++ b/plugins/ZamGEQ31/ZamGEQ31Plugin.hpp @@ -139,14 +139,16 @@ protected: void d_activate() override; void d_run(const float** inputs, float** outputs, uint32_t frames) override; - void geq31(int i, int ch, float srate, float fc, float q); + //void geq31(int i, int ch, float srate, float fc, float q); + void peq(int i, float srate, float fc, float g, float bw); double run_filter(int i, int ch, double in); double x1[1][MAX_FILT], x2[1][MAX_FILT], y1[1][MAX_FILT], y2[1][MAX_FILT]; - double a[1][MAX_FILT], b[1][MAX_FILT], g[1][MAX_FILT]; + double a1[1][MAX_FILT], a2[1][MAX_FILT]; + double b0[1][MAX_FILT], b1[1][MAX_FILT], b2[1][MAX_FILT]; // ------------------------------------------------------------------- private: - float gain[MAX_FILT], freq[MAX_FILT], master, q; //parameters + float gain[MAX_FILT], freq[MAX_FILT], bw[MAX_FILT], master, q; //parameters }; // ----------------------------------------------------------------------- |