Ignore:
Timestamp:
Oct 7, 2009, 7:33:51 PM (15 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:
e5e693e
Parents:
1b88289
Message:

src/pitch/: change all _detect prototypes to _do

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/pitch/pitchdetection.c

    r1b88289 r1294862  
    196196}
    197197
    198 smpl_t aubio_pitchdetection(aubio_pitchdetection_t *p, fvec_t * ibuf) {
     198smpl_t aubio_pitchdetection_do (aubio_pitchdetection_t *p, fvec_t * ibuf) {
    199199  return p->freqconv(p->callback(p,ibuf),p->srate,p->bufsize);
    200200}
     
    204204  aubio_filter_do(p->filter,ibuf);
    205205  aubio_pvoc_do(p->pv,ibuf,p->fftgrain);
    206   pitch = aubio_pitchmcomb_detect(p->mcomb,p->fftgrain);
     206  pitch = aubio_pitchmcomb_do(p->mcomb,p->fftgrain);
    207207  /** \bug should move the >0 check within aubio_bintofreq */
    208208  if (pitch>0.) {
     
    230230  smpl_t pitch = 0.;
    231231  aubio_pitchdetection_slideblock(p,ibuf);
    232   pitch = aubio_pitchyinfft_detect(p->yinfft,p->buf,p->yinthres);
     232  pitch = aubio_pitchyinfft_do(p->yinfft,p->buf,p->yinthres);
    233233  if (pitch>0) {
    234234    pitch = p->srate/(pitch+0.);
     
    241241smpl_t aubio_pitchdetection_fcomb(aubio_pitchdetection_t *p, fvec_t *ibuf){
    242242  aubio_pitchdetection_slideblock(p,ibuf);
    243   return aubio_pitchfcomb_detect(p->fcomb,p->buf);
     243  return aubio_pitchfcomb_do(p->fcomb,p->buf);
    244244}
    245245
    246246smpl_t aubio_pitchdetection_schmitt(aubio_pitchdetection_t *p, fvec_t *ibuf){
    247247  aubio_pitchdetection_slideblock(p,ibuf);
    248   return aubio_pitchschmitt_detect(p->schmitt,p->buf);
    249 }
     248  return aubio_pitchschmitt_do(p->schmitt,p->buf);
     249}
Note: See TracChangeset for help on using the changeset viewer.