visually sync filtergraph~ with spectrum analysis

mattyo's icon

Hi all,

I'm trying to make a GUI for filtergraph~ that will show accurately a spectrum analysis of an incoming signal in such a way that the frequencies of the filtergraph~ accurately line up with the displayed analysis, similar to say the EQ plugin in Logic. I've been attempting this with both plot~ and spectroscope~, and neither of them seem to be able to quite line up their scaling correctly. This seems like the kind of thing people would want to do, and it shouldn't be this hard -- has anyone come up with a solution?

Thanks,

\M

mattyo's icon

Please ignore -- I screwed up the domain sizes. Works fine, I pulled the trigger too fast....

Nepo's icon

Hey Mattyo,

could you maybe tell me how you did it?
All my values are matching but it still doesn't line up....

Greets,
Nepo

mattyo's icon

I think the main thing was changing the filtergraph frequency display to linear, but it was a while ago. Attached is the relevant code...

Enjoy!

\M

Max Patch
Copy patch and select New From Clipboard in Max.