From d11bcd43595b5c3591e80b7557e5ebb5eb1412b7 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sun, 18 Mar 2018 09:59:04 +0000 Subject: [Fix] Fixing low pass filter Fixing the low pass filter, but may need to decrease the alphas by a lot, otherwise it may sound weird. Will first have to test it out on though. --- Project/RTDSP/enhance.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Project/RTDSP/enhance.c') diff --git a/Project/RTDSP/enhance.c b/Project/RTDSP/enhance.c index fc619d1..d4b8ce3 100644 --- a/Project/RTDSP/enhance.c +++ b/Project/RTDSP/enhance.c @@ -269,9 +269,8 @@ void low_pass_filter(float* current, float* next) { int w; float temp; for (w = 0; w < FFTLEN; ++w) { - temp = current[w]; current[w] = (1-K)*current[w] + K*next[w]; - next[w] = temp; + next[w] = current[w]; } } -- cgit