From c05ff22af0c65d71a829add2e3cbdbe76e4169f7 Mon Sep 17 00:00:00 2001 From: andreas128 Date: Mon, 21 Aug 2017 11:43:07 +0200 Subject: Add linear coefficient --- src/MemlessPoly.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src') 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 ); } } -- cgit v1.2.3