Changeset 9b138a8 for python/aubiocut
- Timestamp:
- May 17, 2006, 11:18:56 AM (19 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:
- ba11e53
- Parents:
- 7cded32
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/aubiocut
r7cded32 r9b138a8 62 62 action="store_true", dest="plot", default=False, 63 63 help="draw plot") 64 parser.add_option("-f","--function", 65 action="store_true", dest="func", default=False, 66 help="print detection function") 64 parser.add_option("-x","--xsize", 65 action="store", dest="xsize", default=1., 66 type='float', help="define xsize for plot") 67 parser.add_option("-y","--ysize", 68 action="store", dest="ysize", default=1., 69 type='float', help="define ysize for plot") 70 parser.add_option("-f","--function", 71 action="store_true", dest="func", default=False, 72 help="print detection function") 67 73 parser.add_option("-n","--no-onsets", 68 74 action="store_true", dest="nplot", default=False, 69 help=" plot only detection functions")75 help="do not plot detected onsets") 70 76 parser.add_option("-O","--outplot", 71 77 action="store", dest="outplot", default=None, 72 78 help="save plot to output.{ps,png}") 79 parser.add_option("-F","--spectrogram", 80 action="store_true", dest="spectro", default=False, 81 help="add spectrogram to the plot") 73 82 parser.add_option("-v","--verbose", 74 83 action="store_true", dest="verbose", default=False, … … 131 140 print i 132 141 133 if options.plot: filetask.plotplot(wplot, oplots, outplot=options.outplot) 142 if options.outplot: 143 extension = options.outplot.split('.')[-1] 144 outplot = '.'.join(options.outplot.split('.')[:-1]) 145 else: 146 extension,outplot = None,None 147 if options.plot: filetask.plotplot(wplot, oplots, outplot=outplot, extension=extension, 148 xsize=options.xsize,ysize=options.ysize,spectro=options.spectro) 134 149 135 150 if options.cut:
Note: See TracChangeset
for help on using the changeset viewer.