We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexDiscussionExhibition › Processing plus Arduino plus fish! :)
Page Index Toggle Pages: 1
Processing plus Arduino plus fish! :) (Read 1304 times)
Processing plus Arduino plus fish! :)
Apr 22nd, 2010, 11:32am
 
...

I'm trying to make an interface using an arduino, some photosensors and processing that makes different melodies as fish swim past a group of five sensors. (above is a prototype, using a contact mic though, and no arduino or processing...)

i have some code that i'm trying to mod but i think it might be old and have a few anomalies - either way, it's not working - can anybody help?? Smiley

this is what processing says is the problem...


processing.app.debug.RunnerException: NullPointerException
     at processing.app.Sketch.placeException(Sketch.java:1565)
     at processing.app.debug.Runner.findException(Runner.java:568)
     at processing.app.debug.Runner.reportException(Runner.java:543)
     at processing.app.debug.Runner.exception(Runner.java:498)
     at processing.app.debug.EventThread.exceptionEvent(EventThread.java:367)
     at processing.app.debug.EventThread.handleEvent(EventThread.java:255)
     at processing.app.debug.EventThread.run(EventThread.java:89)
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 naturepro.setup(naturepro.java:82)
     at processing.core.PApplet.handleDraw(PApplet.java:1571)
     at processing.core.PApplet.run(PApplet.java:1496)
     at java.lang.Thread.run(Thread.java:637)
Undecided   Cry
Re: Processing plus Arduino plus fish! :)
Reply #1 - Apr 22nd, 2010, 7:46pm
 
Well, post the code and then we have a look at it. Looks like something to do with the Minim sound library, perhaps not initialised properly?
Re: Processing plus Arduino plus fish! :)
Reply #2 - Apr 22nd, 2010, 9:54pm
 
Are you sure your sketch finds the sound file?
Page Index Toggle Pages: 1