- Timestamp:
- Feb 16, 2016, 5:51:10 PM (9 years ago)
- 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:
- 4bf3731
- Parents:
- 6ab6611
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/pitch/pitch.c
r6ab6611 rd04875c 133 133 // check parameters are valid 134 134 if ((sint_t)hopsize < 1) { 135 AUBIO_ERR(" onset: got hopsize %d, but can not be < 1\n", hopsize);135 AUBIO_ERR("pitch: got hopsize %d, but can not be < 1\n", hopsize); 136 136 goto beach; 137 137 } else if ((sint_t)bufsize < 1) { 138 AUBIO_ERR(" onset: got buffer_size %d, but can not be < 1\n", bufsize);138 AUBIO_ERR("pitch: got buffer_size %d, but can not be < 1\n", bufsize); 139 139 goto beach; 140 140 } else if (bufsize < hopsize) { 141 AUBIO_ERR(" onset: hop size (%d) is larger than win size (%d)\n", bufsize, hopsize);141 AUBIO_ERR("pitch: hop size (%d) is larger than win size (%d)\n", bufsize, hopsize); 142 142 goto beach; 143 143 } else if ((sint_t)samplerate < 1) { 144 AUBIO_ERR(" onset: samplerate (%d) can not be < 1\n", samplerate);144 AUBIO_ERR("pitch: samplerate (%d) can not be < 1\n", samplerate); 145 145 goto beach; 146 146 }
Note: See TracChangeset
for help on using the changeset viewer.