Changeset 14aae81


Ignore:
Timestamp:
Jun 2, 2006, 7:23:29 PM (14 years ago)
Author:
Paul Brossier <piem@altern.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
af35ed0
Parents:
6b0ca87
Message:

ugly hack to plot beat track anyway
ugly hack to plot beat track anyway

Location:
python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/aubio/task/beat.py

    r6b0ca87 r14aae81  
    193193                oplots.append(Gnuplot.Data(results,with='linespoints',title="auto"))
    194194
    195         def plotplot(self,oplots,outplot=None):
     195        def plotplot(self,wplot,oplots,outplot=None,extension=None,xsize=1.,ysize=1.,spectro=False):
    196196                import Gnuplot
    197                 from aubio.gnuplot import gnuplot_init, audio_to_array, make_audio_plot
     197                from aubio.gnuplot import gnuplot_create, audio_to_array, make_audio_plot
    198198                import re
    199199                # audio data
     
    201201                #f = make_audio_plot(time,data)
    202202
    203                 g = gnuplot_init(outplot)
     203                g = gnuplot_create(outplot=outplot, extension=extension)
    204204                oplots = [Gnuplot.Data(self.gettruth(),with='linespoints',title="orig")] + oplots
    205205                g.plot(*oplots)
  • python/aubiocut

    r6b0ca87 r14aae81  
    134134                lofunc.append(ofunc)
    135135
    136         if options.plot: filetask.plot(onsets, ofunc, wplot, oplots, nplot=options.nplot)
     136        if options.plot:
     137                if options.beat:
     138                        filetask.plot(oplots, onsets)
     139                else:
     140                        filetask.plot(onsets, ofunc, wplot, oplots, nplot=options.nplot)
    137141
    138142        if options.func:
Note: See TracChangeset for help on using the changeset viewer.