Ignore:
Timestamp:
Dec 7, 2018, 1:28:57 AM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/cnn, feature/crepe, feature/timestretch, fix/ffmpeg5, master
Children:
4bb2e74
Parents:
24dc867
git-author:
Paul Brossier <piem@piem.org> (10/27/18 19:39:55)
git-committer:
Paul Brossier <piem@piem.org> (12/07/18 01:28:57)
Message:

[effects] convert warnings to error, improve messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/effects/timestretch_rubberband.c

    r24dc867 ra77f0c6  
    131131{
    132132  if (!p->rb) {
    133     AUBIO_WRN("timestretch: could not set stretch ratio, rubberband not created\n");
     133    AUBIO_ERR("timestretch: could not set stretch ratio,"
     134       " rubberband not created\n");
    134135    return AUBIO_FAIL;
    135136  }
     
    139140    return AUBIO_OK;
    140141  } else {
    141     AUBIO_WRN("timestretch: could not set stretch ratio to %.2f\n", stretch);
     142    AUBIO_ERR("timestretch: could not set stretch ratio to '%f',"
     143        " should be in the range [%.2f, %.2f].\n", stretch,
     144        MIN_STRETCH_RATIO, MAX_STRETCH_RATIO);
    142145    return AUBIO_FAIL;
    143146  }
     
    154157{
    155158  if (!p->rb) {
    156     AUBIO_WRN("timestretch: could not set pitch scale, rubberband not created\n");
     159    AUBIO_ERR("timestretch: could not set pitch scale,"
     160       " rubberband not created\n");
    157161    return AUBIO_FAIL;
    158162  }
     
    162166    return AUBIO_OK;
    163167  } else {
    164     AUBIO_WRN("timestretch: could not set pitchscale to %.2f\n", pitchscale);
     168    AUBIO_ERR("timestretch: could not set pitchscale to '%f',"
     169        " should be in the range [0.0625, 4.].\n", pitchscale);
    165170    return AUBIO_FAIL;
    166171  }
     
    180185    return aubio_timestretch_set_pitchscale(p, pitchscale);
    181186  } else {
    182     AUBIO_WRN("timestretch: could not set transpose to %.2f\n", transpose);
     187    AUBIO_ERR("timestretch: could not set transpose to '%f',"
     188        " should be in the range [-24; 24].\n", transpose);
    183189    return AUBIO_FAIL;
    184190  }
Note: See TracChangeset for help on using the changeset viewer.