<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Not exactly sure what you meant by "stay the same".&nbsp; If, for example, you want to output a bang when there has <br></span></div><div><span>been no value sent to the input of "X" for one second, you could do this:</span></div>
<div><span><br></span></div><div><span>[int] &lt;- equivalent of X<br></span></div><div><span>|</span></div><div><span>[b]</span></div><div><span>|<br></span></div><div><span>[del 1000]</span></div><div><span>|<br></span></div><div><br><span></span></div>If, however, there is a continuous stream of numbers being sent to "X" and what you want is to send a bang when <br>"X" has been receiving the same value for one second, you could do this:<br><br>[int] &lt;- equivalent of X<br>|<br>[change]<br>|<br>[b]<br>|<br>[del 1000]<br>|<br><br>-Jonathan<br><div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><font face="Arial" size="2"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Sebastian Valenzuela
 &lt;svalenzuelamusic@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Pure Data Forum &lt;pd-list@iem.at&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Monday, November 14, 2011 7:57 PM<br><b><span style="font-weight: bold;">Subject:</span></b> [PD] Detect a stagnate number<br></font><br>
<div id="yiv652489480">Hi everyone,
<div><br></div><div>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".</div>
<div><br></div><div>Thank you for reading my question,</div><div>Sebastian</div>
</div><br>_______________________________________________<br><a ymailto="mailto:Pd-list@iem.at" href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br><br><br></div></div></blockquote></div></div></body></html>