Forums > MaxMSP

Block several bang, and just retain one of them

Oct 27 2013 | 3:42 am


I have an object sending bangs in one outlet, not as a list but one-by-one (this "randomly number of bangs" is triggered when I want. It’s a "bad residue" of something, but I can’t find where so I would like to block data flow here). It’s not possible to know how many bangs will be send next time : I can only see 1, sometimes 2, sometimes 3… bangs. I can only know it when all bangs are received.

I need to send only ONE bang when these bang are received. Then if I receive 1, 2 or 5 bangs, I would only like to send one.

Thus I would like to have something like a reverse uzi objects (take lot of bang and send only one), knowing that I would only have one inlet in that object (one cord, in which all bangs are transmitted).

Thanks a lot !

Oct 27 2013 | 3:49 am

have a look at [onebang]

but you really should fix up the ‘bad residue’. have you tried using the debugger?

Oct 27 2013 | 1:00 pm

I think a combination of onebang and delay could be what you want:

-- Pasted Max Patch, click to expand. --


Oct 28 2013 | 12:19 am

Thanks to both of you, that’s perfect ! :)

And Floating_Point, you’re right, I should fix this "bad residue". I will try using the debugger yes.

Have a nice day, bye

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

Forums > MaxMSP