"Beat detection" with MSGEQ7

Wow that would be really cool. I think ill pick up one of those to play with.
But I'm actually surprised how well some simple code like this works.