Changeset dc7f2cc
 Timestamp:
 Apr 8, 2013, 5:24:13 PM (8 years ago)
 Branches:
 feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
 Children:
 6510866
 Parents:
 f84cea7
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

src/pitch/pitchyinfft.c
rf84cea7 rdc7f2cc 141 141 142 142 // 3 point quadratic interpolation 143 //return fvec_quad int_min(yin,tau,1);143 //return fvec_quadratic_peak_pos (yin,tau,1); 144 144 /* additional check for (unlikely) octave doubling in higher frequencies */ 145 145 if (tau > 35) { 146 output>data[0] = fvec_quad int(yin, tau);146 output>data[0] = fvec_quadratic_peak_pos (yin, tau); 147 147 } else { 148 148 /* should compare the minimum value of each interpolated peaks */ 149 149 halfperiod = FLOOR (tau / 2 + .5); 150 150 if (yin>data[halfperiod] < p>tol) 151 output>data[0] = fvec_quad int(yin, halfperiod);151 output>data[0] = fvec_quadratic_peak_pos (yin, halfperiod); 152 152 else 153 output>data[0] = fvec_quad int(yin, tau);153 output>data[0] = fvec_quadratic_peak_pos (yin, tau); 154 154 } 155 155 } else {
Note: See TracChangeset
for help on using the changeset viewer.