Changeset f264b17 for python/demos/demo_mfcc.py
- Timestamp:
- Jun 22, 2016, 1:00:10 PM (8 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:
- 4b9443c4
- Parents:
- 60fc05b (diff), 6769586 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/demos/demo_mfcc.py
r60fc05b rf264b17 3 3 import sys 4 4 from aubio import source, pvoc, mfcc 5 from numpy import array,vstack, zeros5 from numpy import vstack, zeros 6 6 7 7 win_s = 512 # fft size 8 hop_s = win_s / 4# hop size8 hop_s = win_s // 4 # hop size 9 9 n_filters = 40 # must be 40 for mfcc 10 10 n_coeffs = 13 … … 12 12 13 13 if len(sys.argv) < 2: 14 print "Usage: %s <source_filename>" % sys.argv[0]14 print("Usage: %s <source_filename>" % sys.argv[0]) 15 15 sys.exit(1) 16 16
Note: See TracChangeset
for help on using the changeset viewer.