This sketch demonstrates how to use the BeatDetect object in FREQ_ENERGY mode.
You must call detect every frame and then you can use isKick,
isSnare, isHat, isRange, and isOnset(int)
to track whatever kind of beats you are looking to track.
This sketch plays an entire song so it may be a little slow to load.
Source code: FrequencyEnergy
Built with Processing