arduino LED  music visualizer

the video (and the sketch i put on on the page) only maps the reading of the ADC to the blue LED. The green and the red are set to be scaled much lower. I later added more logic to cycle through the different colors as well as do various effects between each cycle. Unfortunately the video doesn't represent the visualization well.

here is the second program - http://jarv.org/blinkm-music.shtml#program2

Initially was thinking about creating a spectrum analyzer effect by doing ffts on the input but I think with just 4 LEDs (or 12 with the different colors) it probably isn't worth the effort.