Mercurial > code > home > repos > light9
view bin/wavecurve @ 294:c9dcc57116c2
new curve editing: select single/multiple points, delete selection, move selection
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Sat, 18 Jun 2005 16:58:15 +0000 |
parents | 8c9138ff91d5 |
children | 7771f37252da |
line wrap: on
line source
#!/usr/bin/env python import os, sys, optparse import run_local from light9.wavepoints import simp parser = optparse.OptionParser(usage="%prog inputSong.wav outputCurve") parser.add_option("-t",type="float",default=.01, help="seconds per sample (default .01, .07 is smooth)") options,args = parser.parse_args() inpath,outpath = args points = simp(inpath, seconds_per_average=options.t) f = file(outpath, 'w') for time_val in points: print >>f, "%s %s" % time_val