- Timestamp:
- Sep 20, 2014, 3:23:16 PM (10 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:
- 892c369
- Parents:
- f33ab63
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/pitch/pitch.c
rf33ab63 r2abe563 130 130 pitch_type = aubio_pitcht_default; 131 131 } 132 133 // check parameters are valid 134 if ((sint_t)hopsize < 1) { 135 AUBIO_ERR("onset: got hopsize %d, but can not be < 1\n", hopsize); 136 goto beach; 137 } else if ((sint_t)bufsize < 1) { 138 AUBIO_ERR("onset: got buffer_size %d, but can not be < 1\n", bufsize); 139 goto beach; 140 } else if (bufsize < hopsize) { 141 AUBIO_ERR("onset: hop size (%d) is larger than win size (%d)\n", bufsize, hopsize); 142 goto beach; 143 } else if ((sint_t)samplerate < 1) { 144 AUBIO_ERR("onset: samplerate (%d) can not be < 1\n", samplerate); 145 goto beach; 146 } 147 132 148 p->samplerate = samplerate; 133 149 p->type = pitch_type; … … 179 195 } 180 196 return p; 197 198 beach: 199 AUBIO_FREE(p); 200 return NULL; 181 201 } 182 202
Note: See TracChangeset
for help on using the changeset viewer.