- Timestamp:
- Sep 28, 2016, 2:23:16 AM (8 years ago)
- 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
- Location:
- src/pitch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/pitch/pitch.c
r1b57274 r0cf2b44 325 325 } 326 326 327 smpl_t 328 aubio_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 327 344 uint_t 328 345 aubio_pitch_set_silence (aubio_pitch_t * p, smpl_t silence) -
src/pitch/pitch.h
r1b57274 r0cf2b44 118 118 uint_t aubio_pitch_set_tolerance (aubio_pitch_t * o, smpl_t tol); 119 119 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 */ 126 smpl_t aubio_pitch_get_tolerance (aubio_pitch_t * o); 127 120 128 /** deletion of the pitch detection object 121 129
Note: See TracChangeset
for help on using the changeset viewer.