Ignore:
Timestamp:
Sep 12, 2009, 12:08:54 AM (11 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:
fbe2cd2
Parents:
68a3fc9
Message:

src/mathutils.c: merge and fix vec_quadint_min and _max into simpler and more exact vec_quadint, use in src/pitch algorithms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/pitch/pitchyinfft.c

    r68a3fc9 rc5c0c98  
    129129    /* additional check for (unlikely) octave doubling in higher frequencies */
    130130    if (tau>35) {
    131       return vec_quadint_min(yin,tau,1);
     131      return vec_quadint(yin,tau,1);
    132132    } else {
    133133      /* should compare the minimum value of each interpolated peaks */
    134134      halfperiod = FLOOR(tau/2+.5);
    135135      if (yin->data[0][halfperiod] < tol)
    136         return vec_quadint_min(yin,halfperiod,1);
     136        return vec_quadint(yin,halfperiod,1);
    137137      else
    138         return vec_quadint_min(yin,tau,1);
     138        return vec_quadint(yin,tau,1);
    139139    }
    140140  } else
Note: See TracChangeset for help on using the changeset viewer.