Files @ fe9dff7dbffd
Branch filter:

Location: light9/bin/wavecurve

Drew Perttula
added C-l to launch subcomposer- in progress
keyboardcomposer will probably launch subcomposer correctly,
but i don't even know if KC blocks or not (untested), and
the SC is certainly a child process of the KC, which is
undesirable. We think that some sort of setpgrp call in
the child may fix that.
#!/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