GithubHelp home page GithubHelp logo

Error loading wav about paulstretch_python HOT 5 OPEN

paulnasca avatar paulnasca commented on June 15, 2024 1
Error loading wav

from paulstretch_python.

Comments (5)

ojczeo avatar ojczeo commented on June 15, 2024 1

Fixed it here:
https://github.com/ojczeo/paulstretch_python

from paulstretch_python.

canyondust avatar canyondust commented on June 15, 2024 1

@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.

usworked avatar usworked commented on June 15, 2024 1

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.

canyondust avatar canyondust commented on June 15, 2024

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.

Mikec78660 avatar Mikec78660 commented on June 15, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.