do decimation by 7 using boxcar filter :)

This commit is contained in:
Ahmet Inan 2015-01-07 21:04:03 +01:00
parent e1b68b4e59
commit 0026a26897

View file

@ -44,7 +44,7 @@ static void spectrum_analyzer(float amplitude)
static complex_t input[radix2_N];
static complex_t output[radix2_N];
input[n&(radix2_N-1)] += complex(stft_w[n] * amplitude, 0.0f);
input[(n/7)&(radix2_N-1)] += complex(stft_w[n] * amplitude, 0.0f);
if (++n >= stft_N) {
n = 0;
// yep, were wasting 3x performance