Changeset 0cf2b44 for src/pitch/pitch.c


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

File:
1 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)
Note: See TracChangeset for help on using the changeset viewer.