Block several bang, and just retain one of them

Encelade's icon

Hello,

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 !

Floating Point's icon

have a look at [onebang]

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

Chris Muir's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

Encelade's icon

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