Changeset afa21cdc


Ignore:
Timestamp:
Sep 28, 2016, 3:16:45 PM (7 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:
80d0083
Parents:
078dad8
Message:

src/pitch/pitch.c: fail on wrong method, warn on wrong unit, improve error messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/pitch/pitch.c

    r078dad8 rafa21cdc  
    127127    pitch_type = aubio_pitcht_default;
    128128  else {
    129     AUBIO_ERR ("unknown pitch detection method %s, using default.\n",
    130         pitch_mode);
    131     pitch_type = aubio_pitcht_default;
     129    AUBIO_ERR ("pitch: unknown pitch detection method ‘%s’\n", pitch_mode);
     130    goto beach;
    132131  }
    133132
     
    284283    pitch_mode = aubio_pitchm_default;
    285284  else {
    286     AUBIO_ERR ("unknown pitch detection unit %s, using default\n", pitch_unit);
     285    AUBIO_WRN("pitch: unknown pitch detection unit ‘%s’, using default\n",
     286        pitch_unit);
    287287    pitch_mode = aubio_pitchm_default;
    288288    err = AUBIO_FAIL;
     
    349349    return AUBIO_OK;
    350350  } else {
    351     AUBIO_ERR("pitch: could not set silence to %.2f", silence);
     351    AUBIO_WRN("pitch: could not set silence to %.2f\n", silence);
    352352    return AUBIO_FAIL;
    353353  }
Note: See TracChangeset for help on using the changeset viewer.