electronut / pp

Code for book Python Playground by Mahesh Venkitachalam (No Starch Press, USA)
564 stars 500 forks source link

Karplus-Strong Algorithm #10

Closed ThreeKidsPa closed 6 years ago

ThreeKidsPa commented 7 years ago

When I execute the ks.py file downloaded from here using --display --play, the random tones play as expected, however, when I use only the --play parameter, it creates/skips files but no random tones are played. Also, when using --display, the plot appears, but remains blank, unless I run it in a debugger. I'm using Python 2.7.12, and there are no exceptions or errors appearing in the console. Is this a python 2.7 vs 3 issue?

electronut commented 7 years ago

It looks like a problem with matplotlib. Which OS and python version are you running, and how did you install matplotlib?

Also, could you test if you can run matplotlib examples - like the one below?

http://matplotlib.org/examples/animation/animate_decay.html

ThreeKidsPa commented 7 years ago

Hello,

Thanks for the quick response. My initial attempt was on Windows 10, using Python 2.7, with matplotlib installed via pip install matplotlib. I also tried it using Python 3.6 with the same result. Earlier this morning I attempted using OSX and Python 2.7 which also failed.

I'll try the examples when I get home from work this evening, and see what happens.

r, Brent

On Mon, Apr 17, 2017 at 8:37 AM, Mahesh Venkitachalam < notifications@github.com> wrote:

It looks like a problem with matplotlib. Which OS and python version are you running, and how did you install matplotlib?

Also, could you test if you can run matplotlib examples - like the one below?

http://matplotlib.org/examples/animation/animate_decay.html

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/electronut/pp/issues/10#issuecomment-294476270, or mute the thread https://github.com/notifications/unsubscribe-auth/ALu1JWm8xWekSe2E62grva1Hd3zqk6nkks5rw1z3gaJpZM4M-Wne .

-- www.yourhattiesburg.com

electronut commented 7 years ago

Did you get a chance to try the examples?

Also, please try installing matplotlib from the website mentioned in Appendix A in my book.