This sketch demonstrates how to use the BeatDetect object song SOUND_ENERGY mode.
You must call detect every frame and then you can use isOnset to track the beat of the music.

This sketch plays an entire song, so it may be a little slow to load.

For more information about Minim and additional features, visit http://code.compartmental.net/minim/

Source code: sketch6

Built with Processing