#N canvas 770 110 527 451 12;
#X text 46 410 see also:;
#X obj 159 410 makenote;
#X msg 68 234 60 64;
#X msg 117 234 60 0;
#X msg 161 234 62 64;
#X msg 209 234 62 0;
#X text 236 352 Output is in the printout window.;
#X msg 224 284 clear;
#X obj 56 21 bag;
#X msg 217 259 flush;
#X obj 115 410 poly;
#X obj 161 321 bag;
#X text 288 407 updated for Pd version 0.33;
#X text 269 284 <= start over;
#X text 261 259 <= output them;
#X text 247 234 <= add or delete elements;
#X text 89 20 - Collection of numbers;
#X text 35 75 The bag object takes (value \, flag). Value at left inlet
and flag at right inlet. If the flag is true (nonzero) \, the value
is added to the collection and removed otherwise. The example here
takes a list input \, which gets spread at inlets (as is common in
Pd)., f 63;
#X text 35 153 The collection may have many copies of the same value.
You can output the collection (and empty it) with a "flush" message
\, or just empty it with "clear." You can use this to mimic a sustain
pedal \, for example., f 63;
#X obj 161 351 print bag;
#X connect 2 0 11 0;
#X connect 3 0 11 0;
#X connect 4 0 11 0;
#X connect 5 0 11 0;
#X connect 7 0 11 0;
#X connect 9 0 11 0;
#X connect 11 0 19 0;
