Changeset d626fac


Ignore:
Timestamp:
Dec 15, 2013, 3:09:17 AM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
4d733b5
Parents:
614ba69
Message:

examples/aubiopitch.c: use built-in silence

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubiopitch.c

    r614ba69 rd626fac  
    6464
    6565  o = new_aubio_pitch (pitch_method, buffer_size, hop_size, samplerate);
    66   if (pitch_tolerance != 0.) aubio_pitch_set_tolerance (o, pitch_tolerance);
    67   if (pitch_unit != NULL) aubio_pitch_set_unit (o, pitch_unit);
     66  if (pitch_tolerance != 0.)
     67    aubio_pitch_set_tolerance (o, pitch_tolerance);
     68  if (silence_threshold != -90.)
     69    aubio_pitch_set_silence (o, silence_threshold);
     70  if (pitch_unit != NULL)
     71    aubio_pitch_set_unit (o, pitch_unit);
    6872  pitch = new_fvec (1);
    6973
Note: See TracChangeset for help on using the changeset viewer.