- Timestamp:
- Dec 7, 2018, 1:28:57 AM (6 years ago)
- 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)
- Location:
- src/effects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/effects/pitchshift_rubberband.c
r24dc867 ra77f0c6 114 114 return AUBIO_OK; 115 115 } else { 116 AUBIO_ERR("pitchshift: could not set pitchscale to %.2f\n", pitchscale); 116 AUBIO_ERR("pitchshift: could not set pitchscale to '%f'," 117 " should be in the range [0.25, 4.].\n", pitchscale); 117 118 return AUBIO_FAIL; 118 119 } … … 132 133 return aubio_pitchshift_set_pitchscale(p, pitchscale); 133 134 } else { 134 AUBIO_ERR("pitchshift: could not set transpose to %.2f\n", transpose); 135 AUBIO_ERR("pitchshift: could not set transpose to '%f'," 136 " should be in the range [-24; 24.].\n", transpose); 135 137 return AUBIO_FAIL; 136 138 } -
src/effects/timestretch_rubberband.c
r24dc867 ra77f0c6 131 131 { 132 132 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"); 134 135 return AUBIO_FAIL; 135 136 } … … 139 140 return AUBIO_OK; 140 141 } 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); 142 145 return AUBIO_FAIL; 143 146 } … … 154 157 { 155 158 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"); 157 161 return AUBIO_FAIL; 158 162 } … … 162 166 return AUBIO_OK; 163 167 } 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); 165 170 return AUBIO_FAIL; 166 171 } … … 180 185 return aubio_timestretch_set_pitchscale(p, pitchscale); 181 186 } 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); 183 189 return AUBIO_FAIL; 184 190 }
Note: See TracChangeset
for help on using the changeset viewer.