projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
35ce4ab
)
[py] filterbank power and norm are floats
author
Paul Brossier
<piem@piem.org>
Tue, 20 Nov 2018 21:34:26 +0000
(22:34 +0100)
committer
Paul Brossier
<piem@piem.org>
Tue, 20 Nov 2018 21:34:26 +0000
(22:34 +0100)
python/ext/py-filterbank.c
patch
|
blob
|
history
diff --git
a/python/ext/py-filterbank.c
b/python/ext/py-filterbank.c
index
01d4d3f
..
99cf466
100644
(file)
--- a/
python/ext/py-filterbank.c
+++ b/
python/ext/py-filterbank.c
@@
-268,9
+268,9
@@
Py_filterbank_get_coeffs (Py_filterbank * self, PyObject *unused)
static PyObject *
Py_filterbank_set_power(Py_filterbank *self, PyObject *args)
{
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)) {
return NULL;
}
if(aubio_filterbank_set_power (self->o, power)) {
@@
-291,12
+291,12
@@
Py_filterbank_set_power(Py_filterbank *self, PyObject *args)
static PyObject *
Py_filterbank_set_norm(Py_filterbank *self, PyObject *args)
{
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;
}
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");
if (PyErr_Occurred() == NULL) {
PyErr_SetString (PyExc_ValueError,
"error running filterbank.set_power");