source: interfaces/python/demo_filterbank.py @ 39e6f84

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 39e6f84 was 39e6f84, checked in by Paul Brossier <piem@piem.org>, 12 years ago

demo_filterbank.py: use a vector, not a list

  • Property mode set to 100644
File size: 282 bytes
Line 
1from aubio import filterbank, fvec
2
3f = filterbank(9, 1024)
4freq_list = [60, 80, 200, 400, 800, 1600, 3200, 6400, 12800, 15000, 24000]
5freqs = fvec(freq_list)
6f.set_triangle_bands(freqs, 48000)
7f.get_coeffs().T
8
9from pylab import loglog, show
10loglog(f.get_coeffs().T, '+-')
11show()
12
Note: See TracBrowser for help on using the repository browser.