diff --git a/paulstretch_mono.py b/paulstretch_mono.py old mode 100644 new mode 100755 index 3f6236a..c0e6f03 --- a/paulstretch_mono.py +++ b/paulstretch_mono.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python # # Paul's Extreme Sound Stretch (Paulstretch) - Python version # diff --git a/paulstretch_newmethod.py b/paulstretch_newmethod.py old mode 100644 new mode 100755 index efa6309..b0545c1 --- a/paulstretch_newmethod.py +++ b/paulstretch_newmethod.py @@ -168,7 +168,7 @@ def paulstretch(samplerate,smp,stretch,windowsize_seconds,onset_level,outfilenam output[output<-1.0]=-1.0 #write the output to wav file - outfile.writeframes(int16(output.ravel(1)*32767.0).tostring()) + outfile.writeframes(int16(output.ravel('F')*32767.0).tostring()) if get_next_buf: start_pos+=displace_pos diff --git a/paulstretch_stereo.py b/paulstretch_stereo.py index df7797c..1480b04 100755 --- a/paulstretch_stereo.py +++ b/paulstretch_stereo.py @@ -120,7 +120,7 @@ def paulstretch(samplerate,smp,stretch,windowsize_seconds,outfilename): output[output<-1.0]=-1.0 #write the output to wav file - outfile.writeframes(int16(output.ravel(1)*32767.0).tostring()) + outfile.writeframes(int16(output.ravel('F')*32767.0).tostring()) start_pos+=displace_pos if start_pos>=nsamples: