
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?? 

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) 
 
   