aboutsummaryrefslogtreecommitdiffstats
path: root/src/MemlessPoly.cpp
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-08-21 11:43:07 +0200
committerandreas128 <Andreas>2017-08-21 11:43:07 +0200
commitc05ff22af0c65d71a829add2e3cbdbe76e4169f7 (patch)
tree2830fd4e893382c16e15f032308256cd2917179a /src/MemlessPoly.cpp
parentd15a05dbdeb0523a9b6fcde5811c2f76c4e648c8 (diff)
downloaddabmod-c05ff22af0c65d71a829add2e3cbdbe76e4169f7.tar.gz
dabmod-c05ff22af0c65d71a829add2e3cbdbe76e4169f7.tar.bz2
dabmod-c05ff22af0c65d71a829add2e3cbdbe76e4169f7.zip
Add linear coefficient
Diffstat (limited to 'src/MemlessPoly.cpp')
-rw-r--r--src/MemlessPoly.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/MemlessPoly.cpp b/src/MemlessPoly.cpp
index ccb3a7b..dc0dd31 100644
--- a/src/MemlessPoly.cpp
+++ b/src/MemlessPoly.cpp
@@ -150,11 +150,12 @@ static void apply_coeff(
float in_10 = in_6 * in_4;
out[i] = in[i] *
(
- coefs[0] * in_2 +
- coefs[1] * in_4 +
- coefs[2] * in_6 +
- coefs[3] * in_8 +
- coefs[4] * in_10
+ coefs[0] +
+ coefs[1] * in_2 +
+ coefs[2] * in_4 +
+ coefs[3] * in_6 +
+ coefs[4] * in_8 +
+ coefs[5] * in_10
);
}
}