Changeset 0ab19df for python/aubioplot-spec
- Timestamp:
- Aug 2, 2006, 5:25:09 PM (18 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:
- 33cf541
- Parents:
- 32fa8e8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/aubioplot-spec
r32fa8e8 r0ab19df 6 6 7 7 import sys 8 from aubio.gnuplot import *8 from aubio.gnuplot import gnuplot_create,gnuplot_addargs,plot_spec 9 9 10 10 usage = "usage: %s [options] -i soundfile" % sys.argv[0] … … 22 22 action="store", dest="minf", default=0., 23 23 type='float',help="lower frequency limit") 24 parser.add_option("-x","--xsize",25 action="store", dest="xsize", default=1.,26 type='float',help="define xsize for plot")27 parser.add_option("-y","--ysize",28 action="store", dest="ysize", default=1.,29 type='float',help="define ysize for plot")30 24 parser.add_option("-l","--log", 31 25 action="store_true", dest="log", default=False, 32 26 help="plot on a logarithmic scale") 33 parser.add_option("-O","--outplot",34 action="store", dest="outplot", default=None,35 help="save plot to output.{ps,png}")36 27 parser.add_option("-B","--bufsize", type='int', 37 28 action="store", dest="bufsize", default=8192, … … 40 31 action="store", dest="hopsize", default=1024, 41 32 help="overlap size [default=1024]") 33 gnuplot_addargs(parser) 42 34 (options, args) = parser.parse_args() 43 35 if not options.filename: … … 56 48 outplot = None 57 49 58 g = gnuplot_create(outplot,extension, xsize=options.xsize, ysize=options.ysize)50 g = gnuplot_create(outplot,extension,options) 59 51 plot_spec(filename, g, log=options.log, 60 52 maxf = options.maxf, minf = options.minf,
Note: See TracChangeset
for help on using the changeset viewer.