Block several bang, and just retain one of them
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 !
have a look at [onebang]
but you really should fix up the ‘bad residue’. have you tried using the debugger?
I think a combination of onebang and delay could be what you want:
----------begin_max5_patcher---------- 580.3ocyVtsiaBCDF9ZxSAhqYirMGRx9fr2TUUY.mDuhXGYb1j1U66dsGCTZ KAXinndiQ9P77OeYle38UdAYxarp.+m8+hum26q77fkrK3UO2K3D8VdIsBNV Pt7zIlPGD51Sytog0ynhC9xKsarWcHytAZMpdkyTc9Qt3v2TrbsKjDxNy19Q 6RsORI1QBdMx+q0+FdAb4xrWeBuo8pkBsfdhAa8BSUPEzl8DWNwEkLMHVbSj UrJiloZtTzWz2ZefpGZis4pL4Sycg5D7J9OffiMB1t5GqVYGBmADV4yEOBBw jMS.goOLBWbXbTVV7jb+d+qbQg75mhIQwacLIFdjfFDJwyccUDh3B+tkstBD XifcgP+8yLmnBBZEPeDCmrNokXjjlwdAVTuPAMRyVJpy+Ii.kF.2TbzWAwC. HA6pIA9qRMfGLEUY59RP2GfgiAwnc.D23J6P3gJ61LSshj4q94N3ofUdWlXs rFlItdABB5HiHV.cOj74cmHCV87uCIRACdeGdXvDNA.g2AtDjzZOiAMvSlIB MiEMtaMXzDr9c7CasD+.uCpqGQ6Ggrrtm0o3jbOICZdNtMX6GIzIEg3DTxE+ 4mxAZ0t9um2UxKp7lLqwR2+WxsfUo4BvAuygLsm931ybjWTvDc0dAuhlUxfT s+JooJmM+WoFxDUCZQTS5DTSxhwljInl3EiMjIxlGQMtdL54yuwTU0WIHDiK xqRkcZZHLkKbSgt2.E6Mdy4ifUnJi+g1XdbQ47uusM0zMahyGq9II8vGtA -----------end_max5_patcher-----------
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