example on how to use processPeaks()

Hi, I'm trying to do a visualisation and wanted to detect beats using processPeaks(). The idea would be to have P5sound.currentTime() tested to the values of the array that is the result of processPeaks() but from the moment I try to do sound.processPeaks(); the sketch stops working in the browser. I've preloaded a .ogg file of about 5minutes

Does any have a working example on how to use processPeaks()?

Sign In or Register to comment.