Changeset c6388f4 for python/ext/py-musicutils.c
- Timestamp:
- Apr 24, 2016, 11:45:45 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:
- fbcee4f
- Parents:
- 81984a7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/ext/py-musicutils.c
r81984a7 rc6388f4 42 42 } 43 43 44 level_lin = Py_BuildValue( "f", aubio_level_lin(&vec));44 level_lin = Py_BuildValue(AUBIO_NPY_SMPL_CHR, aubio_level_lin(&vec)); 45 45 if (level_lin == NULL) { 46 46 PyErr_SetString (PyExc_ValueError, "failed computing level_lin"); … … 71 71 } 72 72 73 db_spl = Py_BuildValue( "f", aubio_db_spl(&vec));73 db_spl = Py_BuildValue(AUBIO_NPY_SMPL_CHR, aubio_db_spl(&vec)); 74 74 if (db_spl == NULL) { 75 75 PyErr_SetString (PyExc_ValueError, "failed computing db_spl"); … … 88 88 smpl_t threshold; 89 89 90 if (!PyArg_ParseTuple (args, "O f:silence_detection", &input, &threshold)) {90 if (!PyArg_ParseTuple (args, "O" AUBIO_NPY_SMPL_CHR ":silence_detection", &input, &threshold)) { 91 91 PyErr_SetString (PyExc_ValueError, "failed parsing arguments"); 92 92 return NULL; … … 118 118 smpl_t threshold; 119 119 120 if (!PyArg_ParseTuple (args, "O f:level_detection", &input, &threshold)) {120 if (!PyArg_ParseTuple (args, "O" AUBIO_NPY_SMPL_CHR ":level_detection", &input, &threshold)) { 121 121 PyErr_SetString (PyExc_ValueError, "failed parsing arguments"); 122 122 return NULL; … … 131 131 } 132 132 133 level_detection = Py_BuildValue( "f", aubio_level_detection(&vec, threshold));133 level_detection = Py_BuildValue(AUBIO_NPY_SMPL_CHR, aubio_level_detection(&vec, threshold)); 134 134 if (level_detection == NULL) { 135 135 PyErr_SetString (PyExc_ValueError, "failed computing level_detection");
Note: See TracChangeset
for help on using the changeset viewer.