shithub: aubio

Download patch

ref: be8b18bc704b8a9b5e4be79ca66055a78b218571
parent: a380b7330ac79e1ce595c0fb4bb8fc515f2b03bb
author: Paul Brossier <piem@piem.org>
date: Sat Nov 17 09:18:38 EST 2018

[tests] [filterbank] add get/set power/norm calls

--- a/tests/src/spectral/test-filterbank.c
+++ b/tests/src/spectral/test-filterbank.c
@@ -11,6 +11,15 @@
   // create filterbank object
   aubio_filterbank_t *o = new_aubio_filterbank (n_filters, win_s);
 
+  smpl_t power = aubio_filterbank_get_power(o);
+  smpl_t norm = aubio_filterbank_get_norm(o);
+  if (aubio_filterbank_set_power(o, power)) {
+    return 1;
+  }
+  if (aubio_filterbank_set_norm(o, norm)) {
+    return 1;
+  }
+
   // apply filterbank ten times
   uint_t n = 10;
   while (n) {