Changeset c1656cf for examples


Ignore:
Timestamp:
Oct 25, 2007, 4:02:06 AM (16 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:
7873363
Parents:
14aebce (diff), 97525e4 (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 main branch

Location:
examples/tests
Files:
2 edited

Legend:

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

    r14aebce rc1656cf  
    1313        uint_t i = 0;
    1414
    15         smpl_t curtempo;
     15        smpl_t curtempo, curtempoconf;
    1616
    1717        while (i < 10) {
     
    1919          curtempo = aubio_beattracking_get_bpm(tempo);
    2020          if (curtempo != 0.) {
     21            fprintf(stdout,"%f\n",curtempo);
     22            return 1;
     23          }
     24          curtempoconf = aubio_beattracking_get_confidence(tempo);
     25          if (curtempoconf != 0.) {
    2126            fprintf(stdout,"%f\n",curtempo);
    2227            return 1;
  • examples/tests/test-tempo.c

    r14aebce rc1656cf  
    1010        uint_t i = 0;
    1111
    12         smpl_t curtempo;
     12        smpl_t curtempo, curtempoconf;
    1313
    1414        while (i < 1000) {
     
    1717          if (curtempo != 0.) {
    1818            fprintf(stdout,"%f\n",curtempo);
     19            return 1;
     20          }
     21          curtempoconf = aubio_beattracking_get_confidence(o);
     22          if (curtempoconf != 0.) {
     23            fprintf(stdout,"%f\n",curtempo);
     24            return 1;
    1925          }
    2026          i++;
Note: See TracChangeset for help on using the changeset viewer.