Changes in / [97514e2:b0f2cc5]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
interfaces/python/py-filter.c
r97514e2 rb0f2cc5 121 121 } 122 122 123 static PyObject *124 Py_filter_set_biquad(Py_filter * self, PyObject *args)125 {126 uint_t err = 0;127 lsmp_t b0, b1, b2, a1, a2;128 if (!PyArg_ParseTuple (args, "ddddd", &b0, &b1, &b2, &a1, &a2)) {129 return NULL;130 }131 132 err = aubio_filter_set_biquad (self->o, b0, b1, b2, a1, a2);133 if (err > 0) {134 PyErr_SetString (PyExc_ValueError,135 "error when setting filter with biquad coefficients");136 return NULL;137 }138 return Py_None;139 }140 141 123 static PyMemberDef Py_filter_members[] = { 142 124 // TODO remove READONLY flag and define getter/setter … … 151 133 {"set_a_weighting", (PyCFunction) Py_filter_set_a_weighting, METH_VARARGS, 152 134 "set filter coefficients to A-weighting"}, 153 {"set_biquad", (PyCFunction) Py_filter_set_biquad, METH_VARARGS,154 "set b0, b1, b2, a1, a2 biquad coefficients"},155 135 {NULL} 156 136 };
Note: See TracChangeset
for help on using the changeset viewer.