From 9a5490580a2d4cfcc36c2624ff7c8b6331ddb50e Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Tue, 21 Apr 2015 21:08:38 +0200 Subject: [PATCH] [DEV] add basic equalizer with biquad Not tested --- .gitignore | 64 ++++++ audio/algo/drain/BiQuad.cpp | 9 + audio/algo/drain/BiQuad.h | 282 +++++++++++++++++++++++++ audio/algo/drain/BiQuadType.cpp | 38 ++++ audio/algo/drain/BiQuadType.h | 29 +++ audio/algo/drain/Equalizer.cpp | 359 ++++++++++++++++++++++++++++++++ audio/algo/drain/Equalizer.h | 81 +++++++ audio/algo/drain/debug.cpp | 14 ++ audio/algo/drain/debug.h | 46 ++++ lutin_audio_algo_drain.py | 37 ++++ lutin_audio_algo_drain_test.py | 26 +++ test/debug.cpp | 13 ++ test/debug.h | 41 ++++ test/main.cpp | 228 ++++++++++++++++++++ 14 files changed, 1267 insertions(+) create mode 100644 .gitignore create mode 100644 audio/algo/drain/BiQuad.cpp create mode 100644 audio/algo/drain/BiQuad.h create mode 100644 audio/algo/drain/BiQuadType.cpp create mode 100644 audio/algo/drain/BiQuadType.h create mode 100644 audio/algo/drain/Equalizer.cpp create mode 100644 audio/algo/drain/Equalizer.h create mode 100644 audio/algo/drain/debug.cpp create mode 100644 audio/algo/drain/debug.h create mode 100644 lutin_audio_algo_drain.py create mode 100644 lutin_audio_algo_drain_test.py create mode 100644 test/debug.cpp create mode 100644 test/debug.h create mode 100644 test/main.cpp diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b08d134 --- /dev/null +++ b/.gitignore @@ -0,0 +1,64 @@ + +################################### +# folders +################################### +CVS +.svn +Object_* +doxygen/API/ +doxygen/ALL/ + +################################### +# backup files +################################### +*~ +*.swp +*.old +*.bck + +################################### +# Compiled source # +################################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.pyc +tags +#ewol +out +ewol_debug +ewol_release + +################################### +# Packages # +################################### +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods +*.7z +*.dmg +*.gz +*.iso +*.jar +*.rar +*.tar +*.zip + +################################### +# Logs and databases # +################################### +*.log +*.sql +*.sqlite + +################################### +# OS generated files # +################################### +.DS_Store? +ehthumbs.db +Icon? +Thumbs.db +Sources/libewol/ewol/os/AndroidAbstraction.cpp +org_ewol_EwolConstants.h diff --git a/audio/algo/drain/BiQuad.cpp b/audio/algo/drain/BiQuad.cpp new file mode 100644 index 0000000..90059e0 --- /dev/null +++ b/audio/algo/drain/BiQuad.cpp @@ -0,0 +1,9 @@ +/** @file + * @author Edouard DUPIN + * @copyright 2011, Edouard DUPIN, all right reserved + * @license APACHE v2.0 (see license file) + */ + +#include +#include