Forums > MaxMSP

Two bangs check

Jul 05 2009 | 7:39 am

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.

Jul 05 2009 | 9:04 am

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.


— Pasted Max Patch, click to expand. —
Jul 05 2009 | 7:21 pm

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.

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

Forums > MaxMSP