Changeset 9bd769a for src/effects
- Timestamp:
- Dec 7, 2018, 1:28:55 AM (6 years ago)
- Branches:
- feature/cnn, feature/crepe, feature/timestretch, fix/ffmpeg5, master
- Children:
- 8856791
- Parents:
- 992ac88
- git-author:
- Paul Brossier <piem@piem.org> (09/29/16 23:07:19)
- git-committer:
- Paul Brossier <piem@piem.org> (12/07/18 01:28:55)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/effects/timestretch_rubberband.c
r992ac88 r9bd769a 137 137 return AUBIO_OK; 138 138 } else { 139 AUBIO_ ERR("timestretch: could not set stretch ratio to %.2f\n", stretch);139 AUBIO_WRN("timestretch: could not set stretch ratio to %.2f\n", stretch); 140 140 return AUBIO_FAIL; 141 141 } … … 156 156 return AUBIO_OK; 157 157 } else { 158 AUBIO_ ERR("timestretch: could not set pitchscale to %.2f\n", pitchscale);158 AUBIO_WRN("timestretch: could not set pitchscale to %.2f\n", pitchscale); 159 159 return AUBIO_FAIL; 160 160 } … … 174 174 return aubio_timestretch_set_pitchscale(p, pitchscale); 175 175 } else { 176 AUBIO_ ERR("timestretch: could not set transpose to %.2f\n", transpose);176 AUBIO_WRN("timestretch: could not set transpose to %.2f\n", transpose); 177 177 return AUBIO_FAIL; 178 178 } … … 210 210 rubberband_retrieve(p->rb, (float* const*)&(out->data), p->hopsize); 211 211 *read = p->hopsize; 212 } else {212 } else if (available > 0) { 213 213 rubberband_retrieve(p->rb, (float* const*)&(out->data), available); 214 214 *read = available; 215 } else { 216 fvec_zeros(out); 217 *read = 0; 215 218 } 216 219 }
Note: See TracChangeset
for help on using the changeset viewer.