Changeset c6388f4 for python/ext/aubioproxy.c
- Timestamp:
- Apr 24, 2016, 11:45:45 PM (8 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:
- fbcee4f
- Parents:
- 81984a7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/ext/aubioproxy.c
r81984a7 rc6388f4 31 31 return 0; 32 32 } else if (PyArray_TYPE ((PyArrayObject *)input) != AUBIO_NPY_SMPL) { 33 PyErr_SetString (PyExc_ValueError, "input array should be float32");33 PyErr_SetString (PyExc_ValueError, "input array should be " AUBIO_NPY_SMPL_STR); 34 34 return 0; 35 35 } … … 74 74 return 1; 75 75 } else { 76 PyErr_SetString (PyExc_ValueError, "input array should be float32");76 PyErr_SetString (PyExc_ValueError, "input array should be aubio.cvec"); 77 77 return 0; 78 78 } … … 120 120 return 0; 121 121 } else if (PyArray_TYPE ((PyArrayObject *)input) != AUBIO_NPY_SMPL) { 122 PyErr_SetString (PyExc_ValueError, "input array should be float32");122 PyErr_SetString (PyExc_ValueError, "input array should be " AUBIO_NPY_SMPL_STR); 123 123 return 0; 124 124 }
Note: See TracChangeset
for help on using the changeset viewer.