I don't really have much time to look at this right now, but does Iain's instrument work Ok? So basically, what you are looking for is a tuner that also displays some kind of spectrum? If so, then you may want to use a combination of a pitch-tracker opcode and some other pvs stuff. You could use
pvspitchin the same way Iain does to get the main pitch, and then you could write the contents of each frequency bin to a function table. I do this in one of my Unity experiments. I use
pvsanal to analyse some incoming data, and then I write the contents of each band to a function table. You could then draw the contents of the function table using a
Check out what I'm doing here:
I write data to a function table and then use the data to position objects around a game.