Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tempo/beattracking.c

    r2823389 r72db1cf  
    171171  /* find non-zero Rayleigh period */
    172172  maxindex = fvec_max_elem (bt->acfout);
    173   bt->rp = maxindex ? fvec_quadratic_peak_pos (bt->acfout, maxindex) : 1;
     173  bt->rp = maxindex ? fvec_quadint (bt->acfout, maxindex) : 1;
    174174  //rp = (maxindex==127) ? 43 : maxindex; //rayparam
    175175  bt->rp = (maxindex == bt->acfout->length - 1) ? bt->rayparam : maxindex;      //rayparam
     
    183183  /* end of biased filterbank */
    184184
    185   if (bp == 0) {
    186     output->data[0] = 0;
    187     return;
    188   }
    189185
    190186  /* deliberate integer operation, could be set to 3 max eventually */
     
    208204    phase = step - bt->lastbeat;
    209205  } else {
    210     phase = fvec_quadratic_peak_pos (bt->phout, maxindex);
     206    phase = fvec_quadint (bt->phout, maxindex);
    211207  }
    212208  /* take back one frame delay */
     
    310306    }
    311307    fvec_weight (acfout, bt->gwv);
    312     gp = fvec_quadratic_peak_pos (acfout, fvec_max_elem (acfout));
     308    gp = fvec_quadint (acfout, fvec_max_elem (acfout));
    313309    /*
    314310       while(gp<32) gp =gp*2;
     
    386382
    387383  /* if tempo is > 206 bpm, half it */
    388   while (0 < bp && bp < 25) {
     384  while (bp < 25) {
    389385#if AUBIO_BEAT_WARNINGS
    390386    AUBIO_WRN ("doubling from %f (%f bpm) to %f (%f bpm)\n",
     
    413409aubio_beattracking_get_bpm (aubio_beattracking_t * bt)
    414410{
    415   if (bt->bp != 0 && bt->timesig != 0 && bt->counter == 0 && bt->flagstep == 0) {
    416     return 5168. / fvec_quadratic_peak_pos (bt->acfout, bt->bp);
     411  if (bt->timesig != 0 && bt->counter == 0 && bt->flagstep == 0) {
     412    return 5168. / fvec_quadint (bt->acfout, bt->bp);
    417413  } else {
    418414    return 0.;
Note: See TracChangeset for help on using the changeset viewer.