Changeset 7f6f880 for src/onset/onset.c


Ignore:
Timestamp:
Sep 28, 2016, 3:23:01 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/cnn, feature/crepe, feature/pitchshift, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch
Children:
683d52f5
Parents:
68586d4 (diff), 80d0083 (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 branch 'master' into pitchshift

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/onset/onset.c

    r68586d4 r7f6f880  
    191191    goto beach;
    192192  } else if (buf_size < hop_size) {
    193     AUBIO_ERR("onset: hop size (%d) is larger than win size (%d)\n", buf_size, hop_size);
     193    AUBIO_ERR("onset: hop size (%d) is larger than win size (%d)\n", hop_size, buf_size);
    194194    goto beach;
    195195  } else if ((sint_t)samplerate < 1) {
     
    206206  o->pp = new_aubio_peakpicker();
    207207  o->od = new_aubio_specdesc(onset_mode,buf_size);
     208  if (o->od == NULL) goto beach_specdesc;
    208209  o->fftgrain = new_cvec(buf_size);
    209210  o->desc = new_fvec(1);
     
    220221  return o;
    221222
     223beach_specdesc:
     224  del_aubio_peakpicker(o->pp);
     225  del_aubio_pvoc(o->pv);
    222226beach:
    223227  AUBIO_FREE(o);
Note: See TracChangeset for help on using the changeset viewer.