<html><head><base href="x-msg://9/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">As it is coming from the arduino firmata, the only way I know is that the signal inputs a bang.<div>So I'll have 2 bangs being hit with a delay between them. this delay depends on the speed of the body crossing the sensors and its size!</div><div>calling them bang1 and bang2, if the order is bang1 then bang2 = coming in, if it is bang2 then bang1 it means coming out.</div><div>the thing is I think I have to pair the hits to set an order and I just don't know how to pair them and read it to then bang an "in" or an "out".<br><div><br></div><div><br></div><div><br></div><div><br><div><div>On 17 Aug 2010, at 14:29, Andrew Faraday wrote:</div><br class="Apple-interchange-newline"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="hmmessage" style="font-size: 10pt; font-family: Tahoma; ">what form is this coming into pd in?<span class="Apple-converted-space">&nbsp;</span><br><br>If it's a list (such as (door_crossing in) or (door_crossing out))<br><br>then you could parse it down with routes<br><br>e.g.<span class="Apple-converted-space">&nbsp;</span><br>[route door_crossing] (removes the first item in the list, if it's door_crossing)<br>|<br>[sel in out] (the first two inlets will be a bang if it's in or out respectively)<br><br>Not sure how else you might be getting the data into pd<br><br>&gt; From:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:jbvidigal@gmail.com">jbvidigal@gmail.com</a><br>&gt; Date: Tue, 17 Aug 2010 13:45:53 +0100<br>&gt; To:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:pd-list@iem.at">pd-list@iem.at</a><br>&gt; Subject: [PD] Bang order entry<br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; Hi again.<br>&gt; Here goes another problem!<br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; Ok. So I'm working with Arduino firmata here...<span class="Apple-converted-space">&nbsp;</span><br>&gt; To expose to problem in a simple way, I have 2 sensors that are detecting a door crossing.<br>&gt; The 2 detectors give an order to the door crossing: coming in or going out.<br>&gt; Now I just don't know how I can translate that to bang 2 different [bang( depending on if someone's comming in or going out!<br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; Can you help me with that!?<br>&gt; Thanks<br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; Joao Vidigal<br>&gt; _______________________________________________<br>&gt;<span class="Apple-converted-space">&nbsp;</span><a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a><span class="Apple-converted-space">&nbsp;</span>mailing list<br>&gt; UNSUBSCRIBE and account-management -&gt;<span class="Apple-converted-space">&nbsp;</span><a href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><br></div></span></div><br></div></div></body></html>