Changes in python/ext/py-musicutils.c [bc66f1d:b532275]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/ext/py-musicutils.c
rbc66f1d rb532275 182 182 return (PyObject *) PyAubio_CFvecToArray(&vec); 183 183 } 184 185 PyObject*186 Py_aubio_hztomel(PyObject *self, PyObject *args, PyObject *kwds)187 {188 smpl_t v;189 PyObject *htk = NULL;190 static char *kwlist[] = {"f", "htk", NULL};191 if (!PyArg_ParseTupleAndKeywords(args, kwds, AUBIO_NPY_SMPL_CHR "|O",192 kwlist, &v, &htk))193 {194 return NULL;195 }196 if (htk != NULL && PyObject_IsTrue(htk) == 1)197 return Py_BuildValue(AUBIO_NPY_SMPL_CHR, aubio_hztomel_htk(v));198 else199 return Py_BuildValue(AUBIO_NPY_SMPL_CHR, aubio_hztomel(v));200 }201 202 PyObject*203 Py_aubio_meltohz(PyObject *self, PyObject *args, PyObject *kwds)204 {205 smpl_t v;206 PyObject *htk = NULL;207 static char *kwlist[] = {"m", "htk", NULL};208 if (!PyArg_ParseTupleAndKeywords(args, kwds, AUBIO_NPY_SMPL_CHR "|O",209 kwlist, &v, &htk))210 {211 return NULL;212 }213 if (htk != NULL && PyObject_IsTrue(htk) == 1)214 return Py_BuildValue(AUBIO_NPY_SMPL_CHR, aubio_meltohz_htk(v));215 else216 return Py_BuildValue(AUBIO_NPY_SMPL_CHR, aubio_meltohz(v));217 }218 219 PyObject*220 Py_aubio_hztomel_htk(PyObject *self, PyObject *args)221 {222 smpl_t v;223 if (!PyArg_ParseTuple(args, AUBIO_NPY_SMPL_CHR, &v)) {224 return NULL;225 }226 return Py_BuildValue(AUBIO_NPY_SMPL_CHR, aubio_hztomel_htk(v));227 }228 229 PyObject*230 Py_aubio_meltohz_htk(PyObject *self, PyObject *args)231 {232 smpl_t v;233 if (!PyArg_ParseTuple(args, AUBIO_NPY_SMPL_CHR, &v)) {234 return NULL;235 }236 return Py_BuildValue(AUBIO_NPY_SMPL_CHR, aubio_meltohz_htk(v));237 }
Note: See TracChangeset
for help on using the changeset viewer.