Changeset ce6f652


Ignore:
Timestamp:
Jul 31, 2015, 10:25:30 PM (4 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:
8e94af5
Parents:
053495b
Message:

src/tempo/tempo.c: add silence detection (closes #23), add old behavior in examples/aubiotrack.c

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • examples/aubiotrack.c

    r053495b rce6f652  
    7171  tempo_out = new_fvec(2);
    7272  tempo = new_aubio_tempo(tempo_method, buffer_size, hop_size, samplerate);
     73  // set silence threshold very low to output beats even during silence
     74  // aubio_tempo_set_silence(tempo, -1000.);
    7375  if (onset_threshold != 0.) aubio_tempo_set_threshold (tempo, onset_threshold);
    7476
  • src/tempo/tempo.c

    r053495b rce6f652  
    110110      tempo->data[0] = o->out->data[i] - FLOOR(o->out->data[i]); /* set tactus */
    111111      /* test for silence */
    112       /*
    113112      if (aubio_silence_detection(input, o->silence)==1) {
    114113        tempo->data[0] = 0; // unset beat if silent
    115114      }
    116       */
    117115      o->last_beat = o->total_frames + (uint_t)ROUND(tempo->data[0] * o->hop_size);
    118116    }
Note: See TracChangeset for help on using the changeset viewer.