Changeset - 5a83935377f9
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 17 years ago 2008-06-12 06:47:17
drewp@bigasterisk.com
wavecurve to support .ogg/.wav pairs
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
bin/wavecurve
Show inline comments
 
#!/usr/bin/env python
 
import os, sys, optparse
 
import run_local
 
from light9.wavepoints import simp
 

	
 

	
 
def createCurve(inpath, outpath, t):
 
    print "reading %s, writing %s" % (inpath, outpath)
 
    points = simp(inpath, seconds_per_average=t)
 
    points = simp(inpath.replace('.ogg', '.wav'), seconds_per_average=t)
 

	
 
    f = file(outpath, 'w')
 
    for time_val in points:
 
        print >>f, "%s %s" % time_val
 
    
 

	
 

	
 
parser = optparse.OptionParser(usage="""%prog inputSong.wav outputCurve
 

	
 
You probably just want -a
 

	
 
""")
0 comments (0 inline, 0 general)