Changeset 9b138a8 for python/aubiocut


Ignore:
Timestamp:
May 17, 2006, 11:18:56 AM (19 years ago)
Author:
Paul Brossier <piem@altern.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:
ba11e53
Parents:
7cded32
Message:

add spectrogram and x/y sizes to aubiocut
add spectrogram and x/y sizes to aubiocut

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/aubiocut

    r7cded32 r9b138a8  
    6262                          action="store_true", dest="plot", default=False,
    6363                          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")
    6773        parser.add_option("-n","--no-onsets",
    6874                          action="store_true", dest="nplot", default=False,
    69                           help="plot only detection functions")
     75                          help="do not plot detected onsets")
    7076        parser.add_option("-O","--outplot",
    7177                          action="store", dest="outplot", default=None,
    7278                          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")
    7382        parser.add_option("-v","--verbose",
    7483                          action="store_true", dest="verbose", default=False,
     
    131140                        print i
    132141
    133 if options.plot: filetask.plotplot(wplot, oplots, outplot=options.outplot)
     142if options.outplot:
     143  extension = options.outplot.split('.')[-1]
     144  outplot = '.'.join(options.outplot.split('.')[:-1])
     145else:
     146  extension,outplot = None,None
     147if options.plot: filetask.plotplot(wplot, oplots, outplot=outplot, extension=extension,
     148  xsize=options.xsize,ysize=options.ysize,spectro=options.spectro)
    134149
    135150if options.cut:
Note: See TracChangeset for help on using the changeset viewer.