Changeset dc7f2cc for src/pitch


Ignore:
Timestamp:
Apr 8, 2013, 5:24:13 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:
6510866
Parents:
f84cea7
Message:

src/pitch/pitchyinfft.c: use fvec_quadratic_peak_pos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/pitch/pitchyinfft.c

    rf84cea7 rdc7f2cc  
    141141
    142142    // 3 point quadratic interpolation
    143     //return fvec_quadint_min(yin,tau,1);
     143    //return fvec_quadratic_peak_pos (yin,tau,1);
    144144    /* additional check for (unlikely) octave doubling in higher frequencies */
    145145    if (tau > 35) {
    146       output->data[0] = fvec_quadint (yin, tau);
     146      output->data[0] = fvec_quadratic_peak_pos (yin, tau);
    147147    } else {
    148148      /* should compare the minimum value of each interpolated peaks */
    149149      halfperiod = FLOOR (tau / 2 + .5);
    150150      if (yin->data[halfperiod] < p->tol)
    151         output->data[0] = fvec_quadint (yin, halfperiod);
     151        output->data[0] = fvec_quadratic_peak_pos (yin, halfperiod);
    152152      else
    153         output->data[0] = fvec_quadint (yin, tau);
     153        output->data[0] = fvec_quadratic_peak_pos (yin, tau);
    154154    }
    155155  } else {
Note: See TracChangeset for help on using the changeset viewer.