GithubHelp home page GithubHelp logo

paulstretch_python's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

paulstretch_python's Issues

Error loading wav

Hi Paul,

I'm trying to run this on MacOS High Sierra 10.13.6. Python 2.7.10.

I've tried a variety of wav files from sample packs and so forth as a test, and have gotten nothing but "Error loading wav..."; I added a bit of code to get more information. Seems I get a ValueError exception, which contains the following: "string size must be a multiple of element size"

It is triggered from this line:

wavedata=scipy.io.wavfile.read(filename)

I can dig further but was hoping you might just have an idea of what might be wrong here.

All I did was clone, copy a wav to the working directory as a.wav, then run:

./paulstretch_stereo.py a.wav b.wav

Full output:

Paul's Extreme Sound Stretch (Paulstretch) - Python version 20141220
by Nasca Octavian PAUL, Targu Mures, Romania

stretch amount = 8
window size = 0.25 seconds
Error loading wav: a.wav
Traceback (most recent call last):
  File "./paulstretch_stereo.py", line 149, in <module>
    (samplerate,smp)=load_wav(args[0])
TypeError: 'NoneType' object is not iterable

Which script to use ?

Hi !

I am confused about which script to use ... because one says "newmethod", but "paulstretch_stereo" has been updated more recently !?
Anyways, thanks for those scripts, they are great :)

How to use?

Hey!

I have no clue how to use this script. Maybe an example command would be nice to have.

Cheers!

Inputting filename from command line?

Using python3, I cannot seem to use any of the argparse options or input a wav file. Can you give an example command-line syntax in the readme? I receive the same error trying to access the -help arg as well.

python3 paulstretch_newmethod.py TTLS.wav
print "Error loading wav: "+filename

Why randomize the phase?

Why randomize the phase? It makes everything sound super reverberant. Although I do enjoy it, and I must say it has become the signature paulstretch sound.

However, you get a cleaner extreme time stretch if you interpolate the change in phase from frame to frame. Interpolating phase itself won't produce meaningful results, and I know I was led astray initially by trying this, but interpolating the change in phase may sound more natural.

Check it out:
https://www.youtube.com/watch?v=h5SObE8JSX8
Read all about the technique here:
http://www.mitpressjournals.org/doi/pdf/10.1162/comj.2008.32.3.87

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.