[PD] Detect a stagnate number

Jonathan Wilkes jancsika at yahoo.com
Tue Nov 15 02:26:03 CET 2011


Not exactly sure what you meant by "stay the same".  If, for example, you want to output a bang when there has 

been no value sent to the input of "X" for one second, you could do this:


[int] <- equivalent of X

|
[b]
|

[del 1000]
|

If, however, there is a continuous stream of numbers being sent to "X" and what you want is to send a bang when 
"X" has been receiving the same value for one second, you could do this:

[int] <- equivalent of X
|
[change]
|
[b]
|
[del 1000]
|

-Jonathan


>________________________________
>From: Sebastian Valenzuela <svalenzuelamusic at gmail.com>
>To: Pure Data Forum <pd-list at iem.at>
>Sent: Monday, November 14, 2011 7:57 PM
>Subject: [PD] Detect a stagnate number
>
>
>Hi everyone, 
>
>
>When I was learning ChucK I remember being able to do this with boolean logic: "Receive values from integer X. If X stays the same for a period of at least 1 second..." (to end this sentence in Pure Data) I'd like to send a single "bang". So I'd like to build something or find some object that "watches" a constantly changing number box and when it becomes stagnate (doesn't move from one number to the next) for a period of 1 second, I'd like to send a single "bang".
>
>
>Thank you for reading my question,
>Sebastian
>_______________________________________________
>Pd-list at iem.at mailing list
>UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20111114/e9947cb9/attachment-0001.htm>


More information about the Pd-list mailing list