shithub: aubio

Download patch

ref: b84c0c229b6ee7f84ab43aba8e07c4586309d726
parent: 451b05d2a7a965fc0638e76db930ab83d8cfe373
author: Paul Brossier <piem@piem.org>
date: Wed Jul 11 09:45:12 EDT 2012

demo_filterbank.py: added simple demo

--- a/interfaces/python/demo_filterbank.py
+++ b/interfaces/python/demo_filterbank.py
@@ -1,12 +1,16 @@
-from aubio import filterbank, fvec
+#! /usr/bin/python
 
+try:
+  from aubio import filterbank, fvec
+except ImportError:
+  import localaubio
+  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(freqs, 48000)
-f.get_coeffs().T
 
 from pylab import loglog, show
 loglog(f.get_coeffs().T, '+-')
 show()
-