#N canvas 770 110 527 451 12;
#X text 33 410 see also:;
#X obj 142 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 102 410 poly;
#X text 298 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 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 obj 161 321 bag;
#X text 35 61 The bag object adds a value to or removes it from a collection
of numbers depending on the flag. The left inlet takes the value and
the right inlet takes the flag. 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 obj 209 410 stripnote;
#X connect 2 0 18 0;
#X connect 3 0 18 0;
#X connect 4 0 18 0;
#X connect 5 0 18 0;
#X connect 7 0 18 0;
#X connect 9 0 18 0;
#X connect 18 0 17 0;
