[PD] Detect a stagnate number

2011-11-14 Thread Sebastian Valenzuela
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@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Detect a stagnate number

2011-11-14 Thread Jonathan Wilkes
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 svalenzuelamu...@gmail.com
To: Pure Data Forum pd-list@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@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list