Hi,
using 'plus' from maxlib it's quite easy to build an abstraction that does what you need. See attached Pd patch... But to change the number of inputs you have to edit the abstraction by hand.
Olaf
Michael McGonagle schrieb:
Hi all,
I was hoping that someone might know if there is a big "AND" gate that has the following:
(1) Any number of inputs, accepting any type (treated as a flag, incoming data makes flag 'true')
(2) Once all objects has received an input, an output bang is generated, and the "AND" gate is reset, to await the next collection of inputs
Thanks,
Mike
PD-list mailing list PD-list@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
#N canvas 192 53 832 659 12; #X msg 187 50 bang; #X msg 283 44 bang; #X msg 189 132 1; #X msg 283 130 1; #X msg 368 131 1; #X text 54 82 ----------------------------------------------------------- ; #X msg 361 44 bang; #X msg 267 435 0; #X obj 247 251 r $0-reset; #X obj 267 462 s $0-reset; #X obj 248 520 print AND; #X floatatom 191 380 5 0 0 0 - - -; #X obj 343 251 t b f; #X obj 248 339 plus 0 0 0 0; #X obj 248 406 select 4; #X msg 428 138 1; #X obj 406 251 t b f; #X msg 433 45 bang; #X connect 0 0 2 0; #X connect 1 0 3 0; #X connect 2 0 13 0; #X connect 3 0 13 1; #X connect 4 0 12 0; #X connect 6 0 4 0; #X connect 7 0 9 0; #X connect 8 0 13 0; #X connect 8 0 13 1; #X connect 8 0 13 2; #X connect 8 0 13 3; #X connect 12 0 13 0; #X connect 12 1 13 2; #X connect 13 0 11 0; #X connect 13 0 14 0; #X connect 14 0 7 0; #X connect 14 0 10 0; #X connect 15 0 16 0; #X connect 16 0 13 0; #X connect 16 1 13 3; #X connect 17 0 15 0;