Re: [PD] in/out count

2009-06-05 Thread John Harrison
humph. Well here's one solution but there's probably something simpler. 
I'll be curious what other people come up with...


-John

potax flan wrote:

yo
this is doing my head in but i guess it's not rocket science...
trying to figure out a system to keep track of how many people are in 
a room at any given moment.
already have 2 sensors doing the physical work and sending bangs to 
pd, but then i get stuck...
ii have 2 bangs -- one for the left sensor, the other for the right, 
so that the left+right sequence means someone goes in and the 
right+left one means someone leaves the room.
i was trying to make it as elegant and simple as possible instead of 
having a crazy gate/select contraption.

ideas?


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


--
John Harrison
http://alumni.media.mit.edu/~harrison


#N canvas 290 97 523 522 10;
#X obj 86 -75 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 279 -72 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 222 162 spigot;
#X msg 86 -26 1;
#X msg 221 139 1;
#X msg 255 140 0;
#X obj 277 -50 t b b;
#X obj 86 21 t f f;
#X obj 84 64 spigot 1;
#X msg 281 -28 1;
#X obj 281 22 t f f;
#X obj 277 66 spigot 0;
#X obj 129 23 == 0;
#X obj 322 23 == 0;
#X msg 109 134 -1;
#X obj 85 -48 t b b;
#X obj 109 158 spigot;
#X msg 142 135 0;
#X obj 213 286 +;
#X floatatom 216 324 5 0 0 0 - - -;
#X obj 202 251 int;
#X obj 212 223 t b f;
#X connect 0 0 15 0;
#X connect 1 0 6 0;
#X connect 2 0 21 0;
#X connect 3 0 7 0;
#X connect 4 0 2 0;
#X connect 5 0 2 1;
#X connect 6 0 5 0;
#X connect 6 0 9 0;
#X connect 6 1 4 0;
#X connect 7 0 8 1;
#X connect 7 1 8 0;
#X connect 8 0 2 1;
#X connect 8 0 13 0;
#X connect 8 0 17 0;
#X connect 9 0 10 0;
#X connect 10 0 11 1;
#X connect 10 1 11 0;
#X connect 11 0 12 0;
#X connect 11 0 16 1;
#X connect 12 0 8 1;
#X connect 13 0 11 1;
#X connect 14 0 16 0;
#X connect 15 0 3 0;
#X connect 15 0 17 0;
#X connect 15 1 14 0;
#X connect 16 0 21 0;
#X connect 17 0 16 1;
#X connect 18 0 20 1;
#X connect 18 0 19 0;
#X connect 20 0 18 0;
#X connect 21 0 20 0;
#X connect 21 1 18 1;
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] in/out count

2009-06-05 Thread Martin Schied

potax flan wrote:

yo
this is doing my head in but i guess it's not rocket science...
trying to figure out a system to keep track of how many people are in 
a room at any given moment.
already have 2 sensors doing the physical work and sending bangs to 
pd, but then i get stuck...
ii have 2 bangs – one for the left sensor, the other for the right, so 
that the left+right sequence means someone goes in and the right+left 
one means someone leaves the room.
i was trying to make it as elegant and simple as possible instead of 
having a crazy gate/select contraption.

ideas?

this is what I figured out (attached)

Martin


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


[PD] in/out count

2009-06-04 Thread potax flan
yo
this is doing my head in but i guess it's not rocket science...
trying to figure out a system to keep track of how many people are in a room
at any given moment.
already have 2 sensors doing the physical work and sending bangs to pd, but
then i get stuck...
ii have 2 bangs – one for the left sensor, the other for the right, so that
the left+right sequence means someone goes in and the right+left one means
someone leaves the room.
i was trying to make it as elegant and simple as possible instead of having
a crazy gate/select contraption.
ideas?
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list