ref: 35f7e0597087fa0a196036925b0773fc39dd14ce
parent: 35ce4ab5969423fef884b78be6efe12fd92d4a8a
author: Paul Brossier <piem@piem.org>
date: Tue Nov 20 17:34:26 EST 2018
[py] filterbank power and norm are floats
--- a/python/ext/py-filterbank.c
+++ b/python/ext/py-filterbank.c
@@ -268,9 +268,9 @@
static PyObject *
Py_filterbank_set_power(Py_filterbank *self, PyObject *args)
{
- uint_t power;
+ smpl_t power;
- if (!PyArg_ParseTuple (args, "I", &power)) {
+ if (!PyArg_ParseTuple (args, "f", &power)) {
return NULL;
}
if(aubio_filterbank_set_power (self->o, power)) {
@@ -291,12 +291,12 @@
static PyObject *
Py_filterbank_set_norm(Py_filterbank *self, PyObject *args)
{
- uint_t playing;
+ smpl_t norm;
- if (!PyArg_ParseTuple (args, "I", &playing)) {
+ if (!PyArg_ParseTuple (args, "f", &norm)) {
return NULL;
}
- if(aubio_filterbank_set_norm (self->o, playing)) {
+ if(aubio_filterbank_set_norm (self->o, norm)) {
if (PyErr_Occurred() == NULL) {
PyErr_SetString (PyExc_ValueError,
"error running filterbank.set_power");