From e8dde1eab901369921ea8d56f0dc7fd51b008dad Mon Sep 17 00:00:00 2001 From: Luke Iannini Date: Thu, 22 Jan 2009 22:20:37 +0000 Subject: added a couple more list-abs - list-change is [change] for lists, list-toggle-pairs is mostly like [bag] svn path=/trunk/abstractions/sfruit/; revision=10601 --- sfruit/list-toggle-pairs-help.pd | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 sfruit/list-toggle-pairs-help.pd (limited to 'sfruit/list-toggle-pairs-help.pd') diff --git a/sfruit/list-toggle-pairs-help.pd b/sfruit/list-toggle-pairs-help.pd new file mode 100644 index 0000000..5a82d7a --- /dev/null +++ b/sfruit/list-toggle-pairs-help.pd @@ -0,0 +1,35 @@ +#N canvas 531 385 435 422 10; +#X msg 126 141 10 0; +#X msg 126 121 10 1; +#X msg 166 121 20 1; +#X msg 166 141 20 0; +#X msg 206 121 30 1; +#X msg 206 141 30 0; +#X obj 133 175 t a; +#X obj 169 349 bag; +#X text 45 348 somewhat similar to; +#X text 310 392 2009 Luke Iannini; +#X text 36 294 I use this to learn which keys are currently being held +down on a controller - holding down buttons 60 \, 62 and 68 outputs +the list 60 62 68; +#X text 45 368 but only outputs unique items and can take symbols or +floats; +#X msg 246 121 a 1; +#X msg 246 141 a 0; +#X obj 133 233 print active-items; +#X obj 133 202 list-toggle-pairs; +#X text 7 15 [list-toggle-pairs] - an object for turning a stream of +flagged items into a list. If a float or symbol is followed by a 1 +\, it is added to the list \, and if followed by a 0 \, it is removed. +Each item will only exist once in the list \, even if sent with a "1" +flag multiple times.; +#X connect 0 0 6 0; +#X connect 1 0 6 0; +#X connect 2 0 6 0; +#X connect 3 0 6 0; +#X connect 4 0 6 0; +#X connect 5 0 6 0; +#X connect 6 0 15 0; +#X connect 12 0 6 0; +#X connect 13 0 6 0; +#X connect 15 0 14 0; -- cgit v1.2.1