Changeset 4f872d7 for src/spectral
- Timestamp:
- Mar 16, 2013, 3:46:34 AM (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:
- 8c43bf7
- Parents:
- cb243f2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/spectral/specdesc.c
rcb243f2 r4f872d7 194 194 for (j=0;j<fftgrain->length;j++) { 195 195 onset->data[0] += fftgrain->norm[j] 196 *LOG(1.+fftgrain->norm[j]/(o->oldmag->data[j]+1.e-1 0));196 *LOG(1.+fftgrain->norm[j]/(o->oldmag->data[j]+1.e-1)); 197 197 o->oldmag->data[j] = fftgrain->norm[j]; 198 198 } … … 207 207 onset->data[0] = 0.; 208 208 for (j=0;j<fftgrain->length;j++) { 209 onset->data[0] += LOG(1.+fftgrain->norm[j]/(o->oldmag->data[j]+1.e-1 0));209 onset->data[0] += LOG(1.+fftgrain->norm[j]/(o->oldmag->data[j]+1.e-1)); 210 210 o->oldmag->data[j] = fftgrain->norm[j]; 211 211 }
Note: See TracChangeset
for help on using the changeset viewer.