Changeset 35f7e059


Ignore:
Timestamp:
Nov 20, 2018, 10:34:26 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
Children:
15c3466
Parents:
35ce4ab
Message:

[py] filterbank power and norm are floats

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/ext/py-filterbank.c

    r35ce4ab r35f7e059  
    269269Py_filterbank_set_power(Py_filterbank *self, PyObject *args)
    270270{
    271   uint_t power;
    272 
    273   if (!PyArg_ParseTuple (args, "I", &power)) {
     271  smpl_t power;
     272
     273  if (!PyArg_ParseTuple (args, "f", &power)) {
    274274    return NULL;
    275275  }
     
    292292Py_filterbank_set_norm(Py_filterbank *self, PyObject *args)
    293293{
    294   uint_t playing;
    295 
    296   if (!PyArg_ParseTuple (args, "I", &playing)) {
    297     return NULL;
    298   }
    299   if(aubio_filterbank_set_norm (self->o, playing)) {
     294  smpl_t norm;
     295
     296  if (!PyArg_ParseTuple (args, "f", &norm)) {
     297    return NULL;
     298  }
     299  if(aubio_filterbank_set_norm (self->o, norm)) {
    300300    if (PyErr_Occurred() == NULL) {
    301301      PyErr_SetString (PyExc_ValueError,
Note: See TracChangeset for help on using the changeset viewer.