Changeset 973eb75


Ignore:
Timestamp:
Aug 8, 2015, 2:37:48 PM (5 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:
a90e9d4
Parents:
deedc49
Message:

src/pitch/pitch.c: allow for silence == 0, improve error message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/pitch/pitch.c

    rdeedc49 r973eb75  
    318318aubio_pitch_set_silence (aubio_pitch_t * p, smpl_t silence)
    319319{
    320   if (silence < 0 && silence > -200) {
     320  if (silence <= 0 && silence >= -200) {
    321321    p->silence = silence;
    322322    return AUBIO_OK;
    323323  } else {
    324     AUBIO_ERR("pitch: could do set silence to %.2f", silence);
     324    AUBIO_ERR("pitch: could not set silence to %.2f", silence);
    325325    return AUBIO_FAIL;
    326326  }
Note: See TracChangeset for help on using the changeset viewer.