buffer~ sample position of max value

Jan 29, 2013 at 10:40pm

buffer~ sample position of max value

Hey all. I think I’m missing something easy, but I’m trying to find the sample position of the largest peak value in a buffer~. Specifically, I’m looking for the sample position of an impulse. I’m doing some localization by using time delay between mics and am looking for time differences between impulses. It seems like this should be relatively easy, but I’m missing something. Anyone have any ideas? Thanks so much!

Jeff

#66283
Jan 29, 2013 at 11:31pm

one way is to use peek~ and uzi:

– Pasted Max Patch, click to expand. –
#238586
Jan 30, 2013 at 7:21am

Wow! Thanks Terry. Works like a charm! I’ve never really worked with peek~. Very cool and very clever. Thanks so much!

Jeff

#238587

You must be logged in to reply to this topic.