Changeset 2cdae81 for examples


Ignore:
Timestamp:
May 23, 2005, 12:31:46 AM (20 years ago)
Author:
Paul Brossier <piem@altern.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:
71f98f1
Parents:
b78805a
Message:

update beattracking.c
update beattracking.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubiotrack.c

    rb78805a r2cdae81  
    8181      istactus = 0;
    8282      i=0;
    83       for (i = 1; i <= btoutput[0]; i++ ) {
    84               if (pos2 == btoutput[i] && btoutput[i] != 0.) {
     83      for (i = 1; i < btoutput[0]; i++ ) {
     84              if (pos2 == btoutput[i]) {
    8585                      //printf("pos2: %d\n", pos2);
    8686                      /* test for silence */
     
    113113        if (output_filename == NULL) {
    114114                if (istactus)
    115                         outmsg("%d\t%f",pos2,(frames)*overlap_size/(float)samplerate);
    116                 if (isonset)
     115                        outmsg("%f\n",(frames)*overlap_size/(float)samplerate);
     116                if (isonset && verbose)
    117117                        outmsg(" \t \t%f\n",(frames)*overlap_size/(float)samplerate);
    118118        }
Note: See TracChangeset for help on using the changeset viewer.