Changeset 7100895
- Timestamp:
- Jul 29, 2017, 10:11:52 PM (7 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
- Children:
- faeec7c
- Parents:
- 986131d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/spectral/fft.c
r986131d r7100895 450 450 ippsFFTInv_CCSToR_64f((const Ipp64f *)s->complexOut, output->data, s->fftSpec, s->memBuffer); 451 451 // apply scaling 452 ippsMulC_64f(output->data, 1.0 / s->winsize, output->data, s->fft_size);452 ippsMulC_64f(output->data, 2.0 / s->winsize, output->data, s->fft_size); 453 453 #else 454 454 // apply fft 455 455 ippsFFTInv_CCSToR_32f((const Ipp32f *)s->complexOut, output->data, s->fftSpec, s->memBuffer); 456 456 // apply scaling 457 ippsMulC_32f(output->data, 1.0f / s->winsize, output->data, s->fft_size);457 ippsMulC_32f(output->data, 2.0f / s->winsize, output->data, s->fft_size); 458 458 #endif /* HAVE_AUBIO_DOUBLE */ 459 459 460 460 #else // using OOURA 461 smpl_t scale = 1.0 / s->winsize;461 smpl_t scale = 2.0 / s->winsize; 462 462 s->out[0] = compspec->data[0]; 463 463 s->out[1] = compspec->data[s->winsize / 2];
Note: See TracChangeset
for help on using the changeset viewer.