Check out Music Is Math video.
This is incredible. An Irish musician/video artist named Glenn Marshall created a program that "listens" to music and generates visuals based on what it hears. He describes the process on his blog, http://glennmarshall.wordpress.com/.