Changeset 2823389 for src/tempo


Ignore:
Timestamp:
Oct 17, 2013, 12:59:19 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
22dd9dc
Parents:
6b00c4a
Message:

src/tempo/beattracking.c: do nothing if period is zero

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tempo/beattracking.c

    r6b00c4a r2823389  
    183183  /* end of biased filterbank */
    184184
     185  if (bp == 0) {
     186    output->data[0] = 0;
     187    return;
     188  }
    185189
    186190  /* deliberate integer operation, could be set to 3 max eventually */
     
    382386
    383387  /* if tempo is > 206 bpm, half it */
    384   while (bp < 25) {
     388  while (0 < bp && bp < 25) {
    385389#if AUBIO_BEAT_WARNINGS
    386390    AUBIO_WRN ("doubling from %f (%f bpm) to %f (%f bpm)\n",
Note: See TracChangeset for help on using the changeset viewer.