changeset 436:5a83935377f9

wavecurve to support .ogg/.wav pairs
author drewp@bigasterisk.com
date Thu, 12 Jun 2008 06:47:17 +0000
parents 064d2c9f2014
children 3926ab3b7ceb
files bin/wavecurve
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/wavecurve	Thu Jun 12 06:47:00 2008 +0000
+++ b/bin/wavecurve	Thu Jun 12 06:47:17 2008 +0000
@@ -6,7 +6,7 @@
 
 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: