- Timestamp:
- Mar 16, 2013, 9:38:21 PM (12 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, pitchshift, sampler, timestretch, yinfft+
- Children:
- 4a95f83
- Parents:
- de5d3f1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/pitch/pitchyinfft.c
rde5d3f1 r8da0033 110 110 } 111 111 aubio_fft_do (p->fft, p->winput, p->fftout); 112 for (l = 0; l < p->fftout->length; l++) { 112 p->sqrmag->data[0] = SQR (p->fftout->norm[0]); 113 p->sqrmag->data[0] *= p->weight->data[0]; 114 for (l = 1; l < p->fftout->length; l++) { 113 115 p->sqrmag->data[l] = SQR (p->fftout->norm[l]); 114 116 p->sqrmag->data[l] *= p->weight->data[l]; 117 p->sqrmag->data[p->sqrmag->length - l] = p->sqrmag->data[l]; 115 118 } 116 for (l = 1; l < p->fftout->length; l++) { 117 p->sqrmag->data[(p->fftout->length - 1) * 2 - l] = 118 SQR (p->fftout->norm[l]); 119 p->sqrmag->data[(p->fftout->length - 1) * 2 - l] *= 120 p->weight->data[l]; 121 } 122 for (l = 0; l < p->sqrmag->length / 2 + 1; l++) { 119 for (l = 0; l < p->fftout->length; l++) { 123 120 sum += p->sqrmag->data[l]; 124 121 }
Note: See TracChangeset
for help on using the changeset viewer.