[PD] only one bang
Hans-Christoph Steiner
hans at eds.org
Fri Apr 29 21:59:18 CEST 2005
You could use a [oneshot] in combo with the [delay] to make it output
after a set delay, no matter how many bangs it received (see attached).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bang-limit.pd
Type: application/octet-stream
Size: 347 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20050429/806fcc5f/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oneshot.pd
Type: application/octet-stream
Size: 462 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20050429/806fcc5f/attachment-0001.obj>
-------------- next part --------------
.hc
On Apr 29, 2005, at 5:21 AM, IOhannes m zmoelnig wrote:
> geadsch wrote:
>>> hi
>>>
>>> i am having a special problem. i get two bang within a very short
>>> time and
>>
>> i want to "collect" them and send only one bang forward.
>>
>>> any ideas how i could do that?
>>
>>
>>
>> Hi!
>>
>> I would bang into a [toggle] and afterwards [select 0].
>> If I get you right..
>
> this will only work is you are absolutely sure, that you will get 2
> bangs instead of one.
> furthermore, i would not use a graphical object like [tgl], but rather
> build a toggle myself (a "% 2" counter )
>
> apart from that, what is wrong with using [del] ?
> drawback: [del] will only output a however short period _after_ the
> last
> (in your case: 2nd) bang. if you are getting a series of 1000s of
> bangs,
> the [del] will wait until the last one came in and afterwards send its
> bang.
> however, in most cases this behaviour is sufficient.
>
> mfg..adsr
> IOhannes
>
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
________________________________________________________________________
____
"The arc of history bends towards justice."
Dr.
Martin Luther King, Jr.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2353 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20050429/806fcc5f/attachment.bin>
More information about the Pd-list
mailing list