commit 855f9ae16106353a80396f876217e6a8e90a7dc5
parent 261aa497178099d754994db410520981fe04225f
Author: Nasca Octavian PAUL <zynaddsubfx@yahoo.com>
Date: Tue, 22 Feb 2011 21:35:10 +0200
Made output louder
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/paulstretch_stereo.py b/paulstretch_stereo.py
@@ -80,7 +80,7 @@ def paulstretch(samplerate,smp,stretch,windowsize_seconds,outfilename):
old_windowed_buf=zeros((2,windowsize))
hinv_sqrt2=(1+sqrt(0.5))*0.5
- hinv_buf=(hinv_sqrt2-(1.0-hinv_sqrt2)*cos(arange(half_windowsize,dtype='float')*2.0*pi/half_windowsize))/hinv_sqrt2
+ hinv_buf=2.0*(hinv_sqrt2-(1.0-hinv_sqrt2)*cos(arange(half_windowsize,dtype='float')*2.0*pi/half_windowsize))/hinv_sqrt2
while True:
#get the windowed buffer
@@ -127,7 +127,7 @@ def paulstretch(samplerate,smp,stretch,windowsize_seconds,outfilename):
outfile.close()
########################################
-print "Paul's Extreme Sound Stretch (Paulstretch) - Python version 20110219"
+print "Paul's Extreme Sound Stretch (Paulstretch) - Python version 20110222"
print "by Nasca Octavian PAUL, Targu Mures, Romania\n"
parser = OptionParser(usage="usage: %prog [options] input_wav output_wav")
parser.add_option("-s", "--stretch", dest="stretch",help="stretch amount (1.0 = no stretch)",type="float",default=8.0)