Changeset b055b4e for python/ext
- Timestamp:
- Apr 29, 2016, 9:57:35 PM (9 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 21e8408
- Parents:
- 307fdfc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/ext/py-filterbank.c
r307fdfc rb055b4e 12 12 fvec_t freqs; 13 13 fmat_t coeffs; 14 fvec_t *out; 14 PyObject *out; 15 fvec_t c_out; 15 16 } Py_filterbank; 16 17 … … 65 66 return -1; 66 67 } 67 self->out = new_ fvec(self->n_filters);68 self->out = new_py_fvec(self->n_filters); 68 69 69 70 return 0; … … 74 75 { 75 76 del_aubio_filterbank(self->o); 76 del_fvec(self->out);77 Py_DECREF(self->out); 77 78 free(self->coeffs.data); 78 79 Py_TYPE(self)->tp_free((PyObject *) self); … … 92 93 } 93 94 95 Py_INCREF(self->out); 96 if (!PyAubio_ArrayToCFvec(self->out, &(self->c_out))) { 97 return NULL; 98 } 94 99 // compute the function 95 aubio_filterbank_do (self->o, &(self->vec), self->out);96 return (PyObject *)PyAubio_CFvecToArray(self->out);100 aubio_filterbank_do (self->o, &(self->vec), &(self->c_out)); 101 return self->out; 97 102 } 98 103
Note: See TracChangeset
for help on using the changeset viewer.