ref: 33916b8718563444fc6498083b41af0c0cf2bb78
parent: bd1a630f0d289fd6396ebeb5e3f7bd6058250630
author: Paul Brossier <piem@piem.org>
date: Wed Oct 7 15:55:08 EDT 2009
src/spectral/filterbank.{c,h}: add function to set coefficients
--- a/src/spectral/filterbank.c
+++ b/src/spectral/filterbank.c
@@ -87,3 +87,10 @@
{
return f->filters;
}
+
+uint_t
+aubio_filterbank_set_coeffs (aubio_filterbank_t * f, fvec_t * filters)
+{
+ fvec_copy(filters, f->filters);
+ return 0;
+}
--- a/src/spectral/filterbank.h
+++ b/src/spectral/filterbank.h
@@ -70,6 +70,13 @@
*/
fvec_t *aubio_filterbank_get_coeffs (aubio_filterbank_t * f);
+/** copy filter coefficients to the filterbank
+
+ \param f filterbank object to get coefficients from
+
+ */
+uint_t aubio_filterbank_set_coeffs (aubio_filterbank_t * f, fvec_t * filters);
+
#ifdef __cplusplus
}
#endif