http://www.gamedev.net/reference/programming/features/beatdetection/