Changeset 0482e76


Ignore:
Timestamp:
Sep 12, 2009, 1:13:10 PM (15 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:
54a5d56
Parents:
f698997
Message:

src/tempo/tempo.c: always output tempo, pass along interpolated position

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tempo/tempo.c

    rf698997 r0482e76  
    7676  for (i = 1; i < o->out->data[0][0]; i++ ) {
    7777    /* if current frame is a predicted tactus */
    78     if (o->blockpos == o->out->data[0][i]) {
     78    if (o->blockpos == FLOOR(o->out->data[0][i])) {
     79      tempo->data[0][0] = 1. + o->out->data[0][i] - FLOOR(o->out->data[0][i]); /* set tactus */
    7980      /* test for silence */
    8081      if (aubio_silence_detection(input, o->silence)==1) {
    8182        tempo->data[0][1] = 0; /* unset onset */
    82         tempo->data[0][0] = 0; /* unset tactus */
    83       } else {
    84         tempo->data[0][0] = 1; /* set tactus */
    8583      }
    8684    }
Note: See TracChangeset for help on using the changeset viewer.