Comments (5)
Fixed it here:
https://github.com/ojczeo/paulstretch_python
from paulstretch_python.
@ojczeo Thank you for updating the script. It seems 24bit causes level problems (clipping) and the script also fails under Python 3.8 (numpy 1.19.4, scipy 1.5.4) with the following error:
"Traceback (most recent call last):
File "./paulstretch_stereo.py", line 153, in
paulstretch(samplerate,smp,options.stretch,options.window_size,args[1])
File "./paulstretch_stereo.py", line 124, in paulstretch
outfile.writeframes(int16(output.ravel(1)*32767.0).tostring())
TypeError: order must be str, not int"
I'll try to fix it myself, but I know nothing about Python. However if you have time, and the fix is easy, it would be beneficial to macOS uses are Python 2 is depricated as of macOS 10.16+
Thanks!
from paulstretch_python.
Hi @canyondust
Hope this helps you buddy.. change the output.writeframes line to this:
outfile.writeframes(int16(output.ravel('F')*32767.0).tostring())
from paulstretch_python.
Heyya @usworked I this is such a coincidence you write now, because I hadn't done much with the code until YESTERDAY when I rewrote the IO to use the soundfile library instead of the wavefile library and added 24-bit support as well :)
from paulstretch_python.
Wow funny. I just grabbed this utility for a project I was working on. got the same error. "TypeError: order must be str, not int"" Didn't think there was a chance it was still maintained after 9 years and saw the fix. Works great! Thank you for writing this.
from paulstretch_python.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paulstretch_python.