send bang according to amplitude of sound input

Aug 25, 2010 at 2:58pm

send bang according to amplitude of sound input

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

#51979
Aug 25, 2010 at 3:17pm

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….

#186570
Aug 26, 2010 at 2:38pm

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

#186571
Aug 26, 2010 at 7:07pm

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…)

#186572
Aug 26, 2010 at 7:49pm

[if $f1>=0.5 then bang]

#186573

You must be logged in to reply to this topic.