Changeset acf7d30 for src/onset/onsetdetection.c
- Timestamp:
- Oct 2, 2009, 2:10:25 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:
- 1498ced
- Parents:
- c0b295c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/onset/onsetdetection.c
rc0b295c racf7d30 98 98 uint_t nbins = fftgrain->length; 99 99 for (i=0;i<fftgrain->channels; i++) { 100 onset->data[i][0] = 0.0 f;100 onset->data[i][0] = 0.0; 101 101 o->dev1->data[i][0]=0.; 102 102 for ( j=0;j<nbins; j++ ) { … … 109 109 o->dev1->data[i][j] = ABS(o->dev1->data[i][j]); 110 110 else 111 o->dev1->data[i][j] = 0.0 f;111 o->dev1->data[i][j] = 0.0; 112 112 /* keep a track of the past frames */ 113 113 o->theta2->data[i][j] = o->theta1->data[i][j]; … … 130 130 uint_t nbins = fftgrain->length; 131 131 for (i=0;i<fftgrain->channels; i++) { 132 onset->data[i][0] = 0.0 f;132 onset->data[i][0] = 0.0; 133 133 for (j=0;j<nbins; j++) { 134 134 o->dev1->data[i][j] = SQRT( … … 138 138 o->dev1->data[i][j] = ABS(o->dev1->data[i][j]); 139 139 else 140 o->dev1->data[i][j] = 0.0 f;140 o->dev1->data[i][j] = 0.0; 141 141 o->oldmag->data[i][j] = fftgrain->norm[i][j]; 142 142 } … … 230 230 o->theta1 = new_fvec(rsize,channels); 231 231 o->theta2 = new_fvec(rsize,channels); 232 o->histog = new_aubio_hist(0.0 f, PI, 10, channels);232 o->histog = new_aubio_hist(0.0, PI, 10, channels); 233 233 o->threshold = 0.1; 234 234 break; … … 236 236 o->oldmag = new_fvec(rsize,channels); 237 237 o->dev1 = new_fvec(rsize,channels); 238 o->histog = new_aubio_hist(0.0 f, PI, 10, channels);238 o->histog = new_aubio_hist(0.0, PI, 10, channels); 239 239 o->threshold = 0.1; 240 240 break;
Note: See TracChangeset
for help on using the changeset viewer.