Changeset 0cf2b44 for src/pitch


Ignore:
Timestamp:
Sep 28, 2016, 2:23:16 AM (8 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:
6388c37
Parents:
1b57274
Message:

src/pitch/pitch.h: add aubio_pitch_get_tolerance

Location:
src/pitch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/pitch/pitch.c

    r1b57274 r0cf2b44  
    325325}
    326326
     327smpl_t
     328aubio_pitch_get_tolerance (aubio_pitch_t * p)
     329{
     330  smpl_t tolerance = 1.;
     331  switch (p->type) {
     332    case aubio_pitcht_yin:
     333      tolerance = aubio_pitchyin_get_tolerance (p->p_object);
     334      break;
     335    case aubio_pitcht_yinfft:
     336      tolerance = aubio_pitchyinfft_get_tolerance (p->p_object);
     337      break;
     338    default:
     339      break;
     340  }
     341  return tolerance;
     342}
     343
    327344uint_t
    328345aubio_pitch_set_silence (aubio_pitch_t * p, smpl_t silence)
  • src/pitch/pitch.h

    r1b57274 r0cf2b44  
    118118uint_t aubio_pitch_set_tolerance (aubio_pitch_t * o, smpl_t tol);
    119119
     120/** get yin or yinfft tolerance threshold
     121
     122  \param o pitch detection object as returned by new_aubio_pitch()
     123  \return tolerance (default is 0.15 for yin and 0.85 for yinfft)
     124
     125*/
     126smpl_t aubio_pitch_get_tolerance (aubio_pitch_t * o);
     127
    120128/** deletion of the pitch detection object
    121129
Note: See TracChangeset for help on using the changeset viewer.