Hey Charlot,<br><br><br>Yes, that seems a good approach.<br><br>Will try in a few hours with a bit more time.<br><br>&quot;You did not sew it solid enough it seems:).&quot;<br><br>Definitely dropped a few stitches with this one:)  I try to re-attach.<br>
<br>(btw - what is up with gmail and attachments atm?)<br><br><br>All good wishes,<br><br>Julian<br><br><div class="gmail_quote">On 27 March 2011 02:07, Charles Goyard <span dir="ltr">&lt;<a href="mailto:cg@fsck.fr">cg@fsck.fr</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">J bz wrote:<br>
&gt;<br>
&gt; I have a sensor which is spitting out numbers between 1-180.<br>
&gt;<br>
&gt; Each number triggers an event that I only want to happen once but the sensor<br>
&gt; repeats numbers every so often.<br>
<br>
</div>You can use a table of 180 elements, each of which is initialized with<br>
zeros. When a sensor number occurs, check against the table. If it&#39;s 0,<br>
turn it to 1 and go on. If it&#39;s 1, do nothing and wait for a fresh<br>
number from the sensor. Or, if you don&#39;t want to wait, scan the<br>
table for the first zero. What appends when there&#39;s no zeros left is up<br>
to you.<br>
<br>
&gt; (patch attached)<br>
<br>
You did not sew it solid enough it seems:).<br>
<font color="#888888"><br>
--<br>
Charlot<br>
<br>
_______________________________________________<br>
<a 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>
</font></blockquote></div><br>