shithub: aubio

ref: 83b385ffe982db15d8d9f7224e8993a709bc8910
dir: /interfaces/python/demo_filterbank.py/

View raw version
#! /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)

from pylab import loglog, show
loglog(f.get_coeffs().T, '+-')
show()