Changes in src/fft.c [a47cd35:ac5f22c]
Legend:
- Unmodified
- Added
- Removed
-
src/fft.c
ra47cd35 rac5f22c 121 121 void aubio_fft_getnorm(smpl_t * norm, fft_data_t * spectrum, uint_t size) { 122 122 uint_t i; 123 norm[0] = SQR(spectrum[0]);124 for (i=1;i<size/2;i++) norm[i] = (SQR(spectrum[i]) + SQR(spectrum[size-i]));125 norm[size/2] = SQR(spectrum[size/2]);123 norm[0] = spectrum[0]; 124 for (i=1;i<size/2;i++) norm[i] = SQRT((SQR(spectrum[i]) + SQR(spectrum[size-i]))); 125 norm[size/2] = spectrum[size/2]; 126 126 } 127 127
Note: See TracChangeset
for help on using the changeset viewer.