how to get the frequency of bangs

Dec 14, 2011 at 1:39am

how to get the frequency of bangs

Hello.
I’m on a really simple thing I can’t solve.
I wanted to evaluate the frequency of an event, for instance , the space bar key presses.
This frequency would control the playback of a movie or a soundtrack.
So I tried to use a counter object but the result is not really efficient and playback is not smooth at all.
Do you have in mind any better solution to find the frequency of a bang?
Thanks

– Pasted Max Patch, click to expand. –
#60659
Dec 14, 2011 at 2:12am
– Pasted Max Patch, click to expand. –

maybe something like that will help you.

#218322
Dec 14, 2011 at 2:16am

Try using [timer]

#218323
Dec 14, 2011 at 2:22am
– Pasted Max Patch, click to expand. –
#218324
Dec 14, 2011 at 3:39pm

thanks everybody, I did not know about timer, which is pretty handy to get BPM (thanks chris)
I still have gliches in my playback, Tried to smooth it with a line object but it s a bit noisy.

– Pasted Max Patch, click to expand. –
#218325
Dec 14, 2011 at 4:36pm

You might also want to try averaging the last few values so that you’re not changing so abruptly each time you press the space bar, something like this might help:

– Pasted Max Patch, click to expand. –
#218326

You must be logged in to reply to this topic.