Changeset 69d642a


Ignore:
Timestamp:
Apr 8, 2013, 5:19:48 PM (7 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:
f84cea7
Parents:
9499eefb
Message:

src/pitch/pitchyin.c: use fvec_quadratic_peak_pos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/pitch/pitchyin.c

    r9499eefb r69d642a  
    100100{
    101101  uint_t tau;
    102   smpl_t tmp;
    103   tmp = 0.;
     102  smpl_t tmp = 0.;
    104103  yin->data[0] = 1.;
    105104  //AUBIO_DBG("%f\t",yin->data[0]);
     
    151150    if (tau > 4 && (yin->data[period] < tol) &&
    152151        (yin->data[period] < yin->data[period + 1])) {
    153       out->data[0] = fvec_quadint (yin, period);
     152      out->data[0] = fvec_quadratic_peak_pos (yin, period);
    154153      goto beach;
    155154    }
    156155  }
    157   out->data[0] = fvec_quadint (yin, fvec_min_elem (yin));
     156  out->data[0] = fvec_quadratic_peak_pos (yin, fvec_min_elem (yin));
    158157beach:
    159158  return;
Note: See TracChangeset for help on using the changeset viewer.