Two bangs check

U.FON's icon

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.

Luke Hall's icon

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

Max Patch
Copy patch and select New From Clipboard in Max.

Roman Thilenius's icon

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.