Forums > MaxMSP

send bang according to amplitude of sound input

August 25, 2010 | 2:58 pm

hi
i’m a total beginner although i have done most of the max tutorials i can find and some jitter/msp ones.
however, i still can’t seem to figure out how to make something that sends a bang every time an audio signal goes above a specific amplitude.
please could someone point me in the right direction?

thanks,

Alex


August 25, 2010 | 3:17 pm

Well, peakamp~ puts out an amplitude as a floating point number, and there are objects that will tell you if a number is greater than some value, so perhaps you could perhaps combine those objects….


August 26, 2010 | 2:38 pm

thanks, peakamp works…

i can make max return a value of 0 or 1 depending on whether the measured value is above a specific threshold. i am still eluded by a way to make it trigger a bang when the value changes from 0 to 1 however…

Alex


August 26, 2010 | 7:07 pm

see the edge~ object and its helpfile, this is why the max(and especially the msp) tutorials are pretty lacking for many people(at least everyone i’ve ever spoken to about it, it’s strange because supercollider devs do not get paid at all, but even they come up with better docs)… you end up learning much more from the ‘examples’ folder(c74 staff probably just don’t have the proper amount of time to make quality tutorials nor give people direct answers for such a huge environment… at least, i hope it’s that and not some stupid point of elitist pride over something as average as Max…)


August 26, 2010 | 7:49 pm

[if $f1>=0.5 then bang]


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