source: interfaces/python/demo_filterbank.py @ 549825a

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

demo_filterbank.py: use fvec to create array

  • Property mode set to 100644
File size: 286 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(freq_list, 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.