Changeset 6fadb0d


Ignore:
Timestamp:
Sep 6, 2007, 6:02:28 PM (17 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:
cb0415d
Parents:
416c0b5
Message:

test-beattracking.c: add call to aubio_beattracking_get_bpm, making sure it returns 0 on silent frames

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/tests/test-beattracking.c

    r416c0b5 r6fadb0d  
    1313        uint_t i = 0;
    1414
     15        smpl_t curtempo;
     16
    1517        while (i < 10) {
    1618          aubio_beattracking_do(tempo,in,out);
     19          curtempo = aubio_beattracking_get_bpm(tempo);
     20          if (curtempo != 0.) {
     21            fprintf(stdout,"%f\n",curtempo);
     22            return 1;
     23          }
    1724          i++;
    1825        };
Note: See TracChangeset for help on using the changeset viewer.