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