On 08/16/2010 10:36 PM, Mathieu Bouchard wrote:
On Mon, 16 Aug 2010, Johnny Ferguson wrote:

I'm wondering if anyone knows of an object that will only pass on a
list if it changes. I'm sure I could whip something up, but I'd rather
not if it exists.

[t a a]
| |
| [list.==]
| |
[spigot]

using [list.==] from GridFlow™.


Awesome external. I've coded up an abstraction to filter out repeated lists. See attached.

-Johnny

_ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801

#N canvas 1 49 450 300 10;
#X obj 163 51 t a a;
#X obj 190 92 list.==;
#X obj 163 193 spigot;
#X obj 190 125 moses 1;
#X msg 190 149 1;
#X msg 229 149 0;
#X obj 182 229 s \$0-listLoop;
#X obj 229 55 r \$0-listLoop;
#X obj 163 264 outlet;
#X obj 163 15 inlet;
#X text 248 91 <-- requires gridflow externals;
#X text 100 -11 only passes out an input list if it changes;
#X connect 0 0 2 0;
#X connect 0 1 1 0;
#X connect 1 0 3 0;
#X connect 2 0 6 0;
#X connect 2 0 8 0;
#X connect 3 0 4 0;
#X connect 3 1 5 0;
#X connect 4 0 2 1;
#X connect 5 0 2 1;
#X connect 7 0 1 1;
#X connect 9 0 0 0;
_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to