Beat recognition

Hi!

I am writing a program in with the jmonkey engine which is supposed to change the objects on the screen till the beats in the background music.
I believe it would work if only I could get the energy of the song at different times but I have no idea how to do this.
Is there anyone who has done something like this before who could share some knowledge? It would be massively appreciated!

//Simon Nilsson