Changeset 9bb8151 for python


Ignore:
Timestamp:
Aug 2, 2006, 1:24:50 PM (18 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:
90bcdaa
Parents:
778bc7a
Message:

use gnuplot_create in plot_audio
use gnuplot_create in plot_audio

Location:
python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/aubio/gnuplot.py

    r778bc7a r9bb8151  
    4646        return time,data
    4747
    48 def plot_audio(filenames, fileout=None, start=0, end=None, noaxis=None,xsize=1.,ysize=1.):
    49         g = gnuplot_init(fileout)
     48def plot_audio(filenames, outplot='', extension='', start=0, end=None, noaxis=None,xsize=1.,ysize=1.):
     49        g = gnuplot_create(outplot, extension)
    5050        d = []
    5151        todraw = len(filenames)
  • python/aubioplot-audio

    r778bc7a r9bb8151  
    2828options, args = parse_args()
    2929
     30if options.outplot:
     31  extension = options.outplot.split('.')[-1]
     32  outplot = '.'.join(options.outplot.split('.')[:-1])
     33else:
     34  extension = ''
     35  outplot = None
     36
    3037aubio.gnuplot.plot_audio(options.filename.split(','),
    31   fileout=options.outplot,
     38  extension = extension,
     39  outplot = outplot,
    3240  xsize=float(options.xsize),
    3341  ysize=float(options.ysize))
Note: See TracChangeset for help on using the changeset viewer.