Ignore:
Timestamp:
Mar 11, 2013, 1:15:47 AM (11 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/pitchyin.c

    r8c4560e r5284e0d  
    3737  fvec_t *yin;
    3838  smpl_t tol;
     39  smpl_t confidence;
    3940};
    4041
     
    159160}
    160161
     162smpl_t
     163aubio_pitchyin_get_confidence (aubio_pitchyin_t * o) {
     164  o->confidence = 1. - fvec_min (o->yin);
     165  return o->confidence;
     166}
     167
    161168uint_t
    162169aubio_pitchyin_set_tolerance (aubio_pitchyin_t * o, smpl_t tol)
Note: See TracChangeset for help on using the changeset viewer.