#N canvas 0 0 555 619 10; #X obj 0 595 cnv 15 550 21 empty \$0-pddp.cnv.footer empty 20 12 0 14 -228856 -66577 0; #X obj 0 0 cnv 15 550 40 empty \$0-pddp.cnv.header bag 3 12 0 18 -204280 -1 0; #X obj -1 287 cnv 3 550 3 empty \$0-pddp.cnv.inlets inlets 15 12 0 13 -228856 -1 0; #N canvas 46 242 494 344 META 0; #X text 12 65 TEMPLATE template-help.pd v0.1; #X text 12 85 PLATFORM windows macosx gnulinux; #X text 12 125 LIBRARY internal; #X text 12 165 WEBSITE http://crca.ucsd.edu/~msp/; #X text 12 205 RELEASE_VERSION 0.41.4; #X text 12 185 RELEASE_DATE 2009-06-12; #X text 12 45 LICENSE SIBSD; #X text 12 145 AUTHOR Miller Puckette; #X text 12 105 DATATYPE float list; #X text 12 225 HELP_PATCH_AUTHORS Updated for Pd v0.41. Revised by Jonathan Wilkes to conform to the PDDP template for Pd version 0.42. ; #X text 12 5 GENRE control; #X text 12 25 KEYWORDS storage lists; #X restore 500 597 pd META; #X obj -1 495 cnv 3 550 3 empty \$0-pddp.cnv.outlets outlets 15 12 0 13 -228856 -1 0; #X obj -1 538 cnv 3 550 3 empty \$0-pddp.cnv.argument arguments 15 12 0 13 -228856 -1 0; #X obj -1 566 cnv 3 550 3 empty \$0-pddp.cnv.more_info more_info 15 12 0 13 -228856 -1 0; #X text 98 542 (none); #N canvas 54 478 428 109 Related_objects 0; #X obj 61 42 makenote; #X obj 21 42 poly; #X obj 122 42 list; #X obj 1 1 cnv 15 425 20 empty \$0-pddp.cnv.header empty 3 12 0 14 -204280 -1 0; #X text 7 1 [bag] Related Objects; #X restore 102 598 pd Related_objects; #X obj 78 296 cnv 17 3 125 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856 -162280 0; #X text 98 295 float; #X text 98 352 list; #X text 98 503 float; #X obj 78 504 cnv 17 3 30 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856 -162280 0; #X obj 78 440 cnv 17 3 45 empty \$0-pddp.cnv.let.1 1 5 9 0 16 -228856 -162280 0; #X text 98 439 float; #X text 98 383 flush; #X text 98 413 clear; #X text 148 383 - output all values one by one \, in the order they were received \, and clear the collection.; #X text 148 503 - upon sending the "flush" message to the left inlet \, [bag] will output each value in the order it was received.; #X text 99 570 You can use [bag] to mimic a sustain pedal \, for example. ; #X msg 162 88 60 64; #X msg 213 88 60 0; #X msg 257 88 62 64; #X msg 304 88 62 0; #X obj 162 215 print; #X text 207 216 Output is in the printout window.; #X msg 304 134 clear; #X msg 303 111 flush; #X obj 162 185 bag; #X text 148 352 - a (value \, flag) pair is distributed to the two inlets. Lists with more than two elements will be truncated.; #X text 11 23 collection of numbers; #X obj 493 3 bag; #X obj 465 20 pddp/pddplink http://wiki.puredata.info/en/bag -text pdpedia: bag; #X text 148 413 - clear the collection.; #X text 147 439 - a float to the right inlet sets the "flag": if zero \, values to the left inlet will not be added to the collection. If nonzero \, values to the right inlet will be added to the collection. ; #X text 148 295 - a float to the left inlet will be added to the collection if the last value the right inlet received was nonzero. If the last value the right inlet received was zero \, the float sent to the right inlet will be removed from the collection.; #X connect 21 0 29 0; #X connect 22 0 29 0; #X connect 23 0 29 0; #X connect 24 0 29 0; #X connect 27 0 29 0; #X connect 28 0 29 0; #X connect 29 0 25 0;