Changeset 549825a for interfaces/python/demo_filterbank.py
- Timestamp:
- Jan 9, 2010, 3:20:48 PM (15 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 493e6f7
- Parents:
- d836c21
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
interfaces/python/demo_filterbank.py
rd836c21 r549825a 1 from _aubio import filterbank 2 from numpy import array 1 from aubio import filterbank, fvec 3 2 4 3 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(freq s, 48000)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) 8 7 f.get_coeffs().T 9 8
Note: See TracChangeset
for help on using the changeset viewer.