Ignore:
Timestamp:
Jan 9, 2010, 3:20:48 PM (15 years ago)
Author:
Paul Brossier <piem@piem.org>
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
Message:

demo_filterbank.py: use fvec to create array

File:
1 edited

Legend:

Unmodified
Added
Removed
  • interfaces/python/demo_filterbank.py

    rd836c21 r549825a  
    1 from _aubio import filterbank
    2 from numpy import array
     1from aubio import filterbank, fvec
    32
    43f = 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)
     4freq_list = [60, 80, 200, 400, 800, 1600, 3200, 6400, 12800, 15000, 24000]
     5freqs = fvec(freq_list)
     6f.set_triangle_bands(freq_list, 48000)
    87f.get_coeffs().T
    98
Note: See TracChangeset for help on using the changeset viewer.