Two bangs check

Jul 5, 2009 at 7:39am

Two bangs check

I have very begginer question: how to send one bang, only when two bangs are simultaneously on. I tried to use ==, but its just for the numbers, not for bangs…
There is also one important question connected to this issue: how fast is the bang – how long the impulse lasts? And how can the complicated patch delay the bang impulse compared to the same bang, thats go directly to the comparator? I hope there is no delay…
Thanks a lot.

#44641
Jul 5, 2009 at 9:04am

The problem here is that bangs are not on or off, they don’t last any length of time and you can’t send two bangs at the same time. This means you can’t compare them like you would do with [==] or other logic operators.

You can however check to see if two have been received in a certain time period. See the patch below for an example. You might also want to look at the [onebang] object.

lh

– Pasted Max Patch, click to expand. –
#160650
Jul 5, 2009 at 7:21pm

it is almost certain that you need to know something
completely different from what you were asking for.

maybe you can attach you patch to the forum and get
a useful response.

#160651

You must be logged in to reply to this topic.