Changeset d53a3b5 for src/spectral/fft.c
 Timestamp:
 Sep 21, 2009, 6:15:05 PM (10 years ago)
 Branches:
 feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
 Children:
 55b7cb4
 Parents:
 adcf405
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

src/spectral/fft.c
radcf405 rd53a3b5 170 170 uint_t i, j = 0; 171 171 for (i = 0; i < spectrum>channels; i++) { 172 spectrum>norm[i][0] = compspec>data[i][0];172 spectrum>norm[i][0] = ABS(compspec>data[i][0]); 173 173 for (j=1; j < spectrum>length  1; j++) { 174 174 spectrum>norm[i][j] = SQRT(SQR(compspec>data[i][j]) 175 175 + SQR(compspec>data[i][compspec>length  j]) ); 176 176 } 177 spectrum>norm[i][spectrum>length1] = compspec>data[i][compspec>length/2]; 177 spectrum>norm[i][spectrum>length1] = 178 ABS(compspec>data[i][compspec>length/2]); 178 179 } 179 180 }
Note: See TracChangeset
for help on using the changeset viewer.