diff options
author | ymherklotz <ymherklotz@gmail.com> | 2018-03-19 17:16:00 +0000 |
---|---|---|
committer | ymherklotz <ymherklotz@gmail.com> | 2018-03-19 17:16:00 +0000 |
commit | f2ca5219a904fae17e9c744fe1a6d324527d5f56 (patch) | |
tree | d69b02960235a7424735d667caed72e724b5bd2a /Project/RTDSP/enhance.c | |
parent | f860d0c5bb890b4e73c2d2dc76bbb0d4258e0007 (diff) | |
download | NoiseSilencer-f2ca5219a904fae17e9c744fe1a6d324527d5f56.tar.gz NoiseSilencer-f2ca5219a904fae17e9c744fe1a6d324527d5f56.zip |
Fixing alphas
Diffstat (limited to 'Project/RTDSP/enhance.c')
-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 09b78d6..a5992ff 100644 --- a/Project/RTDSP/enhance.c +++ b/Project/RTDSP/enhance.c @@ -103,7 +103,7 @@ volatile int m_ptr = 0; float snr_val = 0; float total_snr = 0; float lambda = 0.05; -float alpha[NUM_ALPHA] = {300, 400, 600, 1000}; +float alpha[NUM_ALPHA] = {100, 50, 9, 1}; float avg = 0; float sum = 0; float *M[NUM_M]; @@ -267,7 +267,6 @@ void overestimation(void) { // Low pass filter X(w) void low_pass_filter(float* current, float* next) { int w; - float temp; for (w = 0; w < FFTLEN; ++w) { current[w] = (1-K)*current[w] + K*next[w]; next[w] = current[w]; |