Changeset ac67de7 for src/tempo


Ignore:
Timestamp:
Apr 14, 2013, 5:23:04 AM (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:
0fa325b, dd15573
Parents:
54dd945
Message:

src/tempo/tempo.c: always set last_beat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tempo/tempo.c

    r54dd945 rac67de7  
    8989      tempo->data[0] = o->out->data[i] - FLOOR(o->out->data[i]); /* set tactus */
    9090      /* test for silence */
     91      /*
    9192      if (aubio_silence_detection(input, o->silence)==1) {
    92         //tempo->data[0] = 0; /* unset onset */
    93       } else {
    94         o->last_beat = o->total_frames + (uint_t)ROUND(tempo->data[0] * o->hop_size);
     93        tempo->data[0] = 0; // unset beat if silent
    9594      }
     95      */
     96      o->last_beat = o->total_frames + (uint_t)ROUND(tempo->data[0] * o->hop_size);
    9697    }
    9798  }
Note: See TracChangeset for help on using the changeset viewer.