Animation reacting on sound

Hi, i’m trying to make an animation that reacts on sound-input (sort of like an equalizer), but i have no idea where to start. is it possible to have ‘live’-soundinput as a source for this animation? how can i process the different soundlevels of different frequencies of for example music coming in from the line-in?

thanks alot in advance!