Ignore:
Timestamp:
Mar 11, 2013, 1:15:47 AM (12 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:
426e6f7
Parents:
8c4560e
Message:

src/pitch: start adding confidence

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/pitch/pitchyinfft.c

    r8c4560e r5284e0d  
    3838  fvec_t *yinfft;     /**< Yin function */
    3939  smpl_t tol;         /**< Yin tolerance */
     40  smpl_t confidence;  /**< confidence */
    4041};
    4142
     
    166167}
    167168
     169smpl_t
     170aubio_pitchyinfft_get_confidence (aubio_pitchyinfft_t * o) {
     171  o->confidence = 1. - fvec_min (o->yinfft);
     172  return o->confidence;
     173}
     174
    168175uint_t
    169176aubio_pitchyinfft_set_tolerance (aubio_pitchyinfft_t * p, smpl_t tol)
Note: See TracChangeset for help on using the changeset viewer.