Changeset 973eb75 for src


Ignore:
Timestamp:
Aug 8, 2015, 2:37:48 PM (9 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:
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.