1 #include "aubio-types.h"
4 Py_aubio_window(PyObject *self, PyObject *args)
6 char_t *wintype = NULL;
10 if (!PyArg_ParseTuple (args, "|sI", &wintype, &winlen)) {
11 PyErr_SetString (PyExc_ValueError, "failed parsing arguments");
15 window = new_aubio_window(wintype, winlen);
17 PyErr_SetString (PyExc_ValueError, "failed computing window");
21 return (PyObject *) PyAubio_CFvecToArray(window);