- Timestamp:
- Oct 1, 2009, 9:04:35 AM (15 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:
- f825dd0
- Parents:
- bc4e175
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/onset/onsetdetection.c
rbc4e175 r1942323 88 88 #else 89 89 o->meas[j] = (fftgrain->norm[i][j])*COS(o->dev1->data[i][j]); 90 o->meas[(nbins-1)*2- j] = (fftgrain->norm[i][j])*SIN(o->dev1->data[i][j]);90 o->meas[(nbins-1)*2-1-j] = (fftgrain->norm[i][j])*SIN(o->dev1->data[i][j]); 91 91 /* sum on all bins */ 92 92 onset->data[i][0] += //(fftgrain->norm[i][j]); 93 93 SQRT(SQR( (o->oldmag->data[i][j]-o->meas[j]) ) 94 + SQR( (-o->meas[(nbins-1)*2- j]) )94 + SQR( (-o->meas[(nbins-1)*2-1-j]) ) 95 95 ); 96 96 #endif
Note: See TracChangeset
for help on using the changeset viewer.