source: interfaces/python/demo_filterbank.py @ b84c0c2

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

demo_filterbank.py: added simple demo

  • Property mode set to 100755
File size: 368 bytes
Line 
1#! /usr/bin/python
2
3try:
4  from aubio import filterbank, fvec
5except ImportError:
6  import localaubio
7  from aubio import filterbank, fvec
8
9f = filterbank(9, 1024)
10freq_list = [60, 80, 200, 400, 800, 1600, 3200, 6400, 12800, 15000, 24000]
11freqs = fvec(freq_list)
12f.set_triangle_bands(freqs, 48000)
13
14from pylab import loglog, show
15loglog(f.get_coeffs().T, '+-')
16show()
Note: See TracBrowser for help on using the repository browser.