Open pyrbin opened 7 years ago
I can confirm this bug also on standard Java platform.
It seems that the bug is related to the for-loop inside onsetDetection method, row 148:
" for(int j = 0 ; j < power.length ; j++){ "
It's obviously trying to access dev1, theta1 and theta2 array indexes beyond their sizes. In my example (FFT size 512) this is what the situation during runtime is:
power.length: 512 dev1.length: 257 theta1.length: 257 theta2.length: 257
I'm not familiar enough with the algorithm to say what and where to fix.
This is my code:
This is my error:
Am I not using the Onset Detector correctly? I've tried the BeatRoot and Complex version both produces the same error. My audiofile is a standard mp3 mono stored on the sdcard (external storage)