Loading...
Logo
Processing Forum
I am using the Processing code found here http://remotedevice.net/project/sonar-tonebank/ with Processing 1.5.1. The error I am getting is






Exception in thread "Animation Thread" java.lang.NullPointerException
    at ddf.minim.javasound.JSMinim.getAudioInputStream(JSMinim.java:604)
    at ddf.minim.javasound.JSMinim.getAudioSample(JSMinim.java:309)
    at ddf.minim.Minim.loadSample(Minim.java:305)
    at tonebank_processing.setup(tonebank_processing.java:68)
    at processing.core.PApplet.handleDraw(Unknown Source)
    at processing.core.PApplet.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:662)


I'd like to also point out that I haven't the faintest idea what I'm doing. So uh, when I want to run this, should I first upload the Arduino code found on the site, then present the Processing code and hope it works? What's the protocol here?
/huge noob sorry

(don't kill the noob)

Replies(4)

It's trying to load a sound file and can't find it.  You need the wav files, such as "F#3.wav" in your data directory.
It's just using the Minim sound library though. Why can't it load the files and where might I find them?

(don't kill the noob)
Those sound files are not part of Minim.  Minim is a library for reading and playing sound files, but you have to provide your own sounds.  As for those particular sounds, the author of the article states "Any set of samples could be used (for this version, I’m using 16 different short sound textures generated with Reason)". It does not appear that he provides a link for downloading them.
Ah, and here I was thinking Minim was a sound library! That's what I get for not doing my research, hehe.
Thanks for your help, I got a set of tones from freesounds.org and my theremin is almost up and running. Almost. Don't be surprised if you see a few more questions from this particular noob...

(don't kill the noob)