- Timestamp:
- Oct 2, 2009, 1:19:10 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:
- 38e9732
- Parents:
- 2f64b0e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tempo/beattracking.c
r2f64b0e r5c4ec3c 170 170 /* find non-zero Rayleigh period */ 171 171 maxindex = fvec_max_elem (bt->acfout); 172 bt->rp = maxindex ? vec_quadint (bt->acfout, maxindex, 1) : 1;172 bt->rp = maxindex ? fvec_quadint (bt->acfout, maxindex, 1) : 1; 173 173 //rp = (maxindex==127) ? 43 : maxindex; //rayparam 174 174 bt->rp = (maxindex == bt->acfout->length - 1) ? bt->rayparam : maxindex; //rayparam … … 203 203 phase = step - bt->lastbeat; 204 204 } else { 205 phase = vec_quadint (bt->phout, maxindex, 1);205 phase = fvec_quadint (bt->phout, maxindex, 1); 206 206 } 207 207 /* take back one frame delay */ … … 305 305 } 306 306 fvec_weight (acfout, bt->gwv); 307 gp = vec_quadint (acfout, fvec_max_elem (acfout), 1);307 gp = fvec_quadint (acfout, fvec_max_elem (acfout), 1); 308 308 /* 309 309 while(gp<32) gp =gp*2; … … 409 409 { 410 410 if (bt->timesig != 0 && bt->counter == 0 && bt->flagstep == 0) { 411 return 5168. / vec_quadint (bt->acfout, bt->bp, 1);411 return 5168. / fvec_quadint (bt->acfout, bt->bp, 1); 412 412 } else { 413 413 return 0.;
Note: See TracChangeset
for help on using the changeset viewer.