Forums > MaxMSP

buffer~ sample position of max value

January 29, 2013 | 10:40 pm

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!


January 29, 2013 | 11:31 pm

one way is to use peek~ and uzi:

– Pasted Max Patch, click to expand. –
January 30, 2013 | 7:21 am

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


Viewing 3 posts - 1 through 3 (of 3 total)