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
you can build the binary case easily as an abstraction, and then connect them up in a binary tree to deal with more inputs.
pix.
On Sat, 26 Apr 2003 04:52:34 -0500 Michael McGonagle fndsnd@rcnchicago.com wrote:
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
Thanks, pix,
This is exactly what I was looking for. I do wonder just how much faster an external would be as compared to a string of your andgate objects...
I wonder if I should go back and actually rewrite some of the externals that I have done, only in PD...
Mike
pix wrote:
you can build the binary case easily as an abstraction, and then connect them up in a binary tree to deal with more inputs.
pix.
On Sat, 26 Apr 2003 04:52:34 -0500 Michael McGonagle fndsnd@rcnchicago.com wrote:
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
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;
hi,
this is just the ages old buddy...
...k
Michael McGonagle wrote:
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