feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since e5f6a0b was
f72ceeb,
checked in by Amaury Hazan <mahmoudax@gmail.com>, 18 years ago
|
aubiomfcc.c: added a dump filterbank funcion
filterbank: written mfcc filterbank init according to slaney auditory toolbox (90%)
plotfb.py: added x log scale option
#some hacks and debug test
|
-
Property mode set to
100755
|
File size:
424 bytes
|
Line | |
---|
1 | #!/usr/bin/env python |
---|
2 | |
---|
3 | import pylab |
---|
4 | import numpy |
---|
5 | import sys |
---|
6 | |
---|
7 | |
---|
8 | filename=sys.argv[1] |
---|
9 | |
---|
10 | doLog=False |
---|
11 | if len(sys.argv)>2: |
---|
12 | if sys.argv[2]=='log': |
---|
13 | doLog=True |
---|
14 | |
---|
15 | mat = pylab.load(filename) |
---|
16 | nmat= numpy.array(mat) |
---|
17 | print numpy.shape(nmat) |
---|
18 | |
---|
19 | pylab.hold(True) |
---|
20 | |
---|
21 | n_filters=numpy.shape(nmat)[0] |
---|
22 | for i in range(n_filters): |
---|
23 | if doLog==True: |
---|
24 | pylab.semilogx(nmat[i,:]) |
---|
25 | else: |
---|
26 | pylab.plot(nmat[i,:]) |
---|
27 | |
---|
28 | |
---|
29 | pylab.hold(False) |
---|
30 | pylab.show() |
---|
Note: See
TracBrowser
for help on using the repository browser.