demo_filterbank.py: use a vector, not a list
authorPaul Brossier <piem@piem.org>
Wed, 11 Jul 2012 01:42:40 +0000 (19:42 -0600)
committerPaul Brossier <piem@piem.org>
Wed, 11 Jul 2012 01:42:40 +0000 (19:42 -0600)
interfaces/python/demo_filterbank.py

index 40962bfc04017396a9b88f8e949b5e42520461ad..19c09af758fd7283cdca69a8d6f986de45d92254 100644 (file)
@@ -3,7 +3,7 @@ from aubio import filterbank, fvec
 f = filterbank(9, 1024)
 freq_list = [60, 80, 200, 400, 800, 1600, 3200, 6400, 12800, 15000, 24000]
 freqs = fvec(freq_list)
-f.set_triangle_bands(freq_list, 48000)
+f.set_triangle_bands(freqs, 48000)
 f.get_coeffs().T
 
 from pylab import loglog, show