History

[py] filterbank power and norm are floats

Paul Brossier committed 7 years ago

Commit 35f7e051 parent 35ce4ab1 file · +5 −5Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/ext/py-filterbank.c+5−5
@@ -268,9 +268,9 @@ Py_filterbank_get_coeffs (Py_filterbank * self, PyObject *unused) · 267 unmodified lines
268268 static PyObject *
269269 Py_filterbank_set_power(Py_filterbank *self, PyObject *args)
270270 {
271− uint_t power;
271+ smpl_t power;
272272
273− if (!PyArg_ParseTuple (args, "I", &power)) {
273+ if (!PyArg_ParseTuple (args, "f", &power)) {
274274 return NULL;
275275 }
276276 if(aubio_filterbank_set_power (self->o, power)) {
@@ -291,12 +291,12 @@ Py_filterbank_set_power(Py_filterbank *self, PyObject *args) · 14 unmodified lines
291291 static PyObject *
292292 Py_filterbank_set_norm(Py_filterbank *self, PyObject *args)
293293 {
294− uint_t playing;
294+ smpl_t norm;
295295
296− if (!PyArg_ParseTuple (args, "I", &playing)) {
296+ if (!PyArg_ParseTuple (args, "f", &norm)) {
297297 return NULL;
298298 }
299− if(aubio_filterbank_set_norm (self->o, playing)) {
299+ if(aubio_filterbank_set_norm (self->o, norm)) {
300300 if (PyErr_Occurred() == NULL) {
301301 PyErr_SetString (PyExc_ValueError,
302302 "error running filterbank.set_power");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t