It uses a little bit of python, but the main idea behind the synching is found in the animation curves section. If you select "keys", there's an option called "bake sound to F-Curves".
There's a little more involved, such as getting it to spiral, and the details of specific frequencies and such. But that's the gist behind it.