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.
Source code: SoundEnergy
Built with Processing