Ignore:
Timestamp:
Oct 25, 2009, 9:33:24 PM (14 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:
b616ffe
Parents:
a17e8c9
Message:

examples/: simplify, use fvec_ funcs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubioonset.c

    ra17e8c9 r0e0a049  
    4141      aubio_onset_do (o, ibuf, onset);
    4242      if (fvec_read_sample(onset, 0, 0)) {
    43         for (pos = 0; pos < overlap_size; pos++){
    44           obuf->data[0][pos] = woodblock->data[0][pos];
    45         }
     43        fvec_copy (woodblock, obuf);
    4644      } else {
    47         for (pos = 0; pos < overlap_size; pos++) {
    48           obuf->data[0][pos] = 0.;
    49         }
     45        fvec_zeros (obuf);
    5046      }
    5147      /* end of block loop */
Note: See TracChangeset for help on using the changeset viewer.