Ess array out of bounds error?
in
Contributed Library Questions
•
2 years ago
I've got an inconsistent error triggered, it seems, by Ess, every so often:
Exception in thread "Animation Thread" java.lang.ArrayIndexOutOfBoundsException: -46
at krister.Ess.FFT.getLevel(FFT.java:126)
at Performative_v25$VisualsB.render(Performative_v25.java:585)
at Performative_v25.draw(Performative_v25.java:165)
at processing.core.PApplet.handleDraw(PApplet.java:1631)
at processing.core.PApplet.run(PApplet.java:1530)
at java.lang.Thread.run(Thread.java:680)
This is the line of code that's always highlighted as the source of the error:
- float audioLevel = myFFT.getLevel(myInput);
I'm just using FFT to get the volume level of the audio input. myInput is an AudioInput object instantiated as:
- myInput = new AudioInput(512);
- myFFT = new FFT(512);
1