feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since d836c21 was
b8aaaff,
checked in by Paul Brossier <piem@piem.org>, 15 years ago
|
demo_filterbank.py: add simple filterbank demo
|
-
Property mode set to
100644
|
File size:
321 bytes
|
Line | |
---|
1 | from _aubio import filterbank |
---|
2 | from numpy import array |
---|
3 | |
---|
4 | f = filterbank(9, 1024) |
---|
5 | freq_list = [40, 80, 200, 400, 800, 1600, 3200, 6400, 12800, 15000, 24000] |
---|
6 | freqs = array(freq_list, dtype = 'float32') |
---|
7 | f.set_triangle_bands(freqs, 48000) |
---|
8 | f.get_coeffs().T |
---|
9 | |
---|
10 | from pylab import loglog, show |
---|
11 | loglog(f.get_coeffs().T, '+-') |
---|
12 | show() |
---|
13 | |
---|
Note: See
TracBrowser
for help on using the repository browser.