diff options
| author | mick grierson <mickgrierson@gmail.com> | 2016-12-14 02:30:34 +0000 |
|---|---|---|
| committer | mick grierson <mickgrierson@gmail.com> | 2016-12-14 02:30:34 +0000 |
| commit | d60b86693af086e820f2488a4f8db6fe96ed7ece (patch) | |
| tree | 6b9b50a70744706271fc5c417a431137196bc199 /openFrameworks/ofxMaxim/libs/fft.cpp | |
| parent | df18758a04f36e74f0fa74a65ee11572015a9aff (diff) | |
refined old envelopes
Diffstat (limited to 'openFrameworks/ofxMaxim/libs/fft.cpp')
| -rw-r--r-- | openFrameworks/ofxMaxim/libs/fft.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/openFrameworks/ofxMaxim/libs/fft.cpp b/openFrameworks/ofxMaxim/libs/fft.cpp index 85a7aa9..6e5e0de 100644 --- a/openFrameworks/ofxMaxim/libs/fft.cpp +++ b/openFrameworks/ofxMaxim/libs/fft.cpp @@ -544,9 +544,12 @@ void fft::inversePowerSpectrum(int start, float *finalOut, float *window, float } /* zero negative frequencies */ - memset(in_real+half, half, 0.0); - memset(in_img+half, half, 0.0); - +// memset(in_real+half, half, 0.0); +// memset(in_img+half, half, 0.0); + + memset(in_real+half, 0.0, sizeof(float) * half); + memset(in_img+half, 0.0, sizeof(float) * half); + FFT(n, 1, in_real, in_img, out_real, out_img); // second parameter indicates inverse transform for (i = 0; i < n; i++) { |
