Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions paulstretch_mono.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
#
# Paul's Extreme Sound Stretch (Paulstretch) - Python version
#
Expand Down
2 changes: 1 addition & 1 deletion paulstretch_newmethod.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion paulstretch_stereo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down