Changeset b84c0c2 for interfaces/python


Ignore:
Timestamp:
Jul 11, 2012, 9:45:12 PM (12 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:
012b324
Parents:
451b05d
Message:

demo_filterbank.py: added simple demo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • interfaces/python/demo_filterbank.py

    • Property mode changed from 100644 to 100755
    r451b05d rb84c0c2  
    1 from aubio import filterbank, fvec
     1#! /usr/bin/python
     2
     3try:
     4  from aubio import filterbank, fvec
     5except ImportError:
     6  import localaubio
     7  from aubio import filterbank, fvec
    28
    39f = filterbank(9, 1024)
     
    511freqs = fvec(freq_list)
    612f.set_triangle_bands(freqs, 48000)
    7 f.get_coeffs().T
    813
    914from pylab import loglog, show
    1015loglog(f.get_coeffs().T, '+-')
    1116show()
    12 
Note: See TracChangeset for help on using the changeset viewer.