//number of harmonics in shift invariant comb filterbank
uint_t numelem = 4;
- smpl_t phase; // beat alignment (step - lastbeat)
- smpl_t beat; // beat position
+ smpl_t phase; // beat alignment (step - lastbeat)
+ smpl_t beat; // beat position
smpl_t bp; // beat period
uint_t a, b; // used to build shift invariant comb filterbank
uint_t kmax; // number of elements used to find beat phase
i = 1;
beat = bp - phase;
- // AUBIO_DBG ("bp: %f, phase: %f, lastbeat: %f, step: %d, winlen: %d\n",
+ // AUBIO_DBG ("bp: %f, phase: %f, lastbeat: %f, step: %d, winlen: %d\n",
// bp, phase, bt->lastbeat, step, winlen);
/* the next beat will be earlier than 60% of the tempo period
gp = 0;
}
- //now look for step change - i.e. a difference between gp and rp that
+ //now look for step change - i.e. a difference between gp and rp that
// is greater than 2*constthresh - always true in first case, since gp = 0
if (counter == 0) {
if (ABS (gp - rp) > 2. * bt->g_var) {
counter = 2; // let it look next time
}
} else if (counter > 0) {
- //if counter doesn't = 1,
+ //if counter doesn't = 1,
counter = counter - 1;
}