Changeset dc7f2cc


Ignore:
Timestamp:
Apr 8, 2013, 5:24:13 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, 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.