From fce4eab342a5e4bfad01c5f7e704ece35bd718bc Mon Sep 17 00:00:00 2001 From: andreas128 Date: Sun, 26 Mar 2017 16:02:02 +0200 Subject: Fix remote for polynom coefficients --- src/MemlessPoly.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src') 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 ); } } -- cgit v1.2.3