Ignore:
Timestamp:
Feb 11, 2013, 11:06:28 AM (11 years ago)
Author:
Paul Brossier <piem@piem.org>
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:
050a8f3
Parents:
5314432 (diff), 88fc249 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge from develop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tempo/beattracking.c

    r5314432 rfc117d0  
    136136  smpl_t beat;                  // beat position
    137137  smpl_t bp;                    // beat period
    138   uint_t a; sint_t b;           // used to build shift invariant comb filterbank
     138  uint_t a, b;                  // used to build shift invariant comb filterbank
    139139  uint_t kmax;                  // number of elements used to find beat phase
    140140
     
    160160  for (i = 1; i < laglen - 1; i++) {
    161161    for (a = 1; a <= numelem; a++) {
    162       for (b = (1 - a); b < (sint_t)a; b++) {
    163         bt->acfout->data[i] += bt->acf->data[a * (i + 1) + b - 1]
     162      for (b = 1; b < 2 * a; b++) {
     163        bt->acfout->data[i] += bt->acf->data[i * a + b - 1]
    164164            * 1. / (2. * a - 1.);
    165165      }
     
    276276aubio_beattracking_checkstate (aubio_beattracking_t * bt)
    277277{
    278   uint_t i, j, a; sint_t b;
     278  uint_t i, j, a, b;
    279279  uint_t flagconst = 0;
    280280  sint_t counter = bt->counter;
     
    300300    for (i = 1; i < laglen - 1; i++) {
    301301      for (a = 1; a <= bt->timesig; a++) {
    302         for (b = (1 - a); b < (sint_t)a; b++) {
    303           acfout->data[i] += acf->data[a * (i + 1) + b - 1];
     302        for (b = 1; b < 2 * a; b++) {
     303          acfout->data[i] += acf->data[i * a + b - 1];
    304304        }
    305305      }
Note: See TracChangeset for help on using the changeset viewer.