If you mean some sort of stop-motion animation as a really odd-but-fun visualisation, I guess there are two general approaches:- sprite-based: cut out all the objects separately and update them to the music.- create a large set of photographs with all possible on/off combinations. Every object added to the photo will obviously double the amount of required photos.
A consideration: A pie cannot be unbaked, and music cannot be unmixed to instruments. Writing software that can partially recognize instruments from timbre/pitch/tone/whathaveyou is not an easy thing. There may be something like that out there, but connecting it to a visualisation of the kind you want is another beast altogether.What may be a lot "easier", is photographing a row of stacks of coloured blocks, which update as a sort of physical spectrum visualiser. It's completely doable in 3D (and has been done many times before. Have a look at the bandcamp visualisers), but using photographs might have its own charm.