diff options
author | andreas128 <Andreas> | 2017-03-26 16:02:02 +0200 |
---|---|---|
committer | andreas128 <Andreas> | 2017-03-26 16:02:02 +0200 |
commit | fce4eab342a5e4bfad01c5f7e704ece35bd718bc (patch) | |
tree | 9da5c1e2d8a445e4a13b0bfc5396ed7b943c3f79 | |
parent | 0cded83e492e1fa66ee6be45dae9db53fd17da96 (diff) | |
download | dabmod-fce4eab342a5e4bfad01c5f7e704ece35bd718bc.tar.gz dabmod-fce4eab342a5e4bfad01c5f7e704ece35bd718bc.tar.bz2 dabmod-fce4eab342a5e4bfad01c5f7e704ece35bd718bc.zip |
Fix remote for polynom coefficients
-rw-r--r-- | src/MemlessPoly.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/MemlessPoly.cpp b/src/MemlessPoly.cpp index a9970e2..b4bd5d0 100644 --- a/src/MemlessPoly.cpp +++ b/src/MemlessPoly.cpp @@ -73,7 +73,7 @@ MemlessPoly::MemlessPoly(const std::string& taps_file) : taps_file.c_str(), this); RC_ADD_PARAMETER(ntaps, "(Read-only) number of filter taps."); - RC_ADD_PARAMETER(tapsfile, "Filename containing filter taps. When written to, the new file gets automatically loaded."); + RC_ADD_PARAMETER(coeffile, "Filename containing filter taps. When written to, the new file gets automatically loaded."); load_filter_taps(m_taps_file); @@ -143,14 +143,14 @@ int MemlessPoly::internal_process(Buffer* const dataIn, Buffer* dataOut) float mag = std::abs(in[i]); //out[i] = in[i]; out[i] = in[i] * ( - default_coefficients[0] + - default_coefficients[1] * mag + - default_coefficients[2] * mag*mag + - default_coefficients[3] * mag*mag*mag + - default_coefficients[4] * mag*mag*mag*mag + - default_coefficients[5] * mag*mag*mag*mag*mag + - default_coefficients[6] * mag*mag*mag*mag*mag*mag + - default_coefficients[7] * mag*mag*mag*mag*mag*mag*mag + m_taps[0] + + m_taps[1] * mag + + m_taps[2] * mag*mag + + m_taps[3] * mag*mag*mag + + m_taps[4] * mag*mag*mag*mag + + m_taps[5] * mag*mag*mag*mag*mag + + m_taps[6] * mag*mag*mag*mag*mag*mag + + m_taps[7] * mag*mag*mag*mag*mag*mag*mag ); } } |