diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2018-03-18 09:59:04 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2018-03-18 09:59:04 +0000 |
commit | d11bcd43595b5c3591e80b7557e5ebb5eb1412b7 (patch) | |
tree | e9580b8b52fac11a7096ffa8091b84538a068747 /Project/RTDSP | |
parent | 7bdfd651a3ddb88837b179f2c6dd7e6511570837 (diff) | |
download | NoiseSilencer-d11bcd43595b5c3591e80b7557e5ebb5eb1412b7.tar.gz NoiseSilencer-d11bcd43595b5c3591e80b7557e5ebb5eb1412b7.zip |
[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.
Diffstat (limited to 'Project/RTDSP')
-rw-r--r-- | Project/RTDSP/enhance.c | 3 |
1 files changed, 1 insertions, 2 deletions
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]; } } |