- Timestamp:
- Dec 7, 2013, 6:38:07 PM (11 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:
- 5958d1e
- Parents:
- ce1d788
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/pitch/pitch.c
rce1d788 r21e2e6db 233 233 aubio_pitch_set_unit (aubio_pitch_t * p, char_t * pitch_unit) 234 234 { 235 uint_t err = AUBIO_OK; 235 236 aubio_pitch_mode pitch_mode; 236 237 if (strcmp (pitch_unit, "freq") == 0) … … 247 248 AUBIO_ERR ("unknown pitch detection unit %s, using default\n", pitch_unit); 248 249 pitch_mode = aubio_pitchm_default; 250 err = AUBIO_FAIL; 249 251 } 250 252 p->mode = pitch_mode; … … 266 268 break; 267 269 } 268 return AUBIO_OK;270 return err; 269 271 } 270 272
Note: See TracChangeset
for help on using the changeset viewer.