Frequency analysis

Jul 23, 2013 at 5:41am

Frequency analysis

Hi guys,

I’m still pretty new at MAX/MSP and I was wanting to make something that would detect the peak frequency of incoming audio and feed that into a biquad so you can simply get rid of crazy resonances with just a detect button and a dial in Live.

Only hurdle I have is the detecting peak frequency. I believe I could probably pull this off using some fft stuff in pfft~ but sadly every time I’ve tried to read into it my brain shuts down and I have to rewatch an entire season of Airwolf to reboot my brain.

Does anyone have any ideas on how to do this or has done something similar with frequency detection and would be happy to share?

It would be immensely appreciated.

Thanks

Keef

#256875
Jul 23, 2013 at 8:15am

I feel like I posted this for somebody else in the last month or so:

<code>

– Pasted Max Patch, click to expand. –

</code>

That finds the hottest bin using fft~ and gen. For many cases, the hottest bin will be near the fundamental. fzero~ might also be a good object to look at.

#256906
Jul 23, 2013 at 8:33am

the popular, Miller Puckettet’s object fiddle~’s first purpose is to detect the fundamental frequency, did you have a look at it ?
@mzed : is the first outlet of the gen~ the subpatch the main frequency output ? in that case it seems to work not very well, it cycles through 150 and 250 approximately…

#256908
Jul 23, 2013 at 3:27pm

It’s the bin number. Here’s a better example:

<code>

– Pasted Max Patch, click to expand. –

</code>

PS Try fzero~

#256966
Jul 24, 2013 at 3:10am

thanks a lot.

#256991
Jul 24, 2013 at 4:15am

Chaps, you are legends for this! Thanks very much!

#256997

You must be logged in to reply to this topic.