Changeset adc47c9 for examples


Ignore:
Timestamp:
Mar 15, 2013, 11:49:47 PM (11 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:
cb243f2
Parents:
7e9e311
Message:

examples/aubioonset.c: simplify

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubioonset.c

    r7e9e311 radc47c9  
    6161  smpl_t onset_found = fvec_read_sample (onset, 0);
    6262  if (onset_found) {
    63     if (frames >= 4) {
    64       outmsg ("%f\n", (frames - frames_delay + onset_found)
    65           * overlap_size / (float) samplerate);
    66     } else if (frames < frames_delay) {
    67       outmsg ("%f\n", 0.);
    68     }
     63    outmsg ("%f\n", aubio_onset_get_last_onset_s (o) );
    6964  }
    7065}
Note: See TracChangeset for help on using the changeset viewer.