#N canvas 519 23 547 457 12;
#X obj 142 227 cnv 40 150 102 empty empty Canvas 20 50 0 30 #a06888 #fcfcfc 0;
#X obj 19 8 cnv 15 100 60 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#N canvas 424 168 359 352 properties 0;
#N canvas 712 23 654 646 colors 0;
#X floatatom 82 251 3 0 29 0 - - - 0;
#X floatatom 187 256 3 0 29 0 - - - 0;
#X text 180 231 label;
#X obj 187 282 t b f;
#X msg 82 350 color \$1 \$2 \$3;
#X text 191 350 presets;
#X symbolatom 485 347 9 0 0 0 - - - 0;
#N canvas 976 148 390 482 label 0;
#X obj 102 80 vsl 15 128 0 255 0 0 empty empty empty 0 -9 0 10 #0800fc #fcfcfc #000000 0 1;
#X obj 109 225 t b f;
#X obj 81 80 vsl 15 128 0 255 0 0 empty empty empty 0 -9 0 10 #00fc00 #000000 #000000 0 1;
#X obj 80 341 pack s s s;
#X obj 61 80 vsl 15 128 0 255 0 0 empty empty empty 0 -9 0 10 #fc0000 #000000 #000000 0 1;
#X obj 81 250 t b f;
#X obj 147 257 makefilename %02x;
#X obj 113 284 makefilename %02x;
#X obj 74 311 makefilename %02x;
#X text 66 56 label;
#X obj 80 406 outlet;
#X msg 80 370 symbol #\$1\$2\$3;
#X obj 161 185 loadbang;
#X msg 161 217 0;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 1 6 0;
#X connect 2 0 5 0;
#X connect 3 0 11 0;
#X connect 4 0 8 0;
#X connect 5 0 4 0;
#X connect 5 1 7 0;
#X connect 6 0 3 2;
#X connect 7 0 3 1;
#X connect 8 0 3 0;
#X connect 11 0 10 0;
#X connect 12 0 13 0;
#X connect 13 0 6 0;
#X connect 13 0 7 0;
#X coords 0 -1 1 1 80 170 2 50 50;
#X restore 485 165 pd label;
#X symbolatom 345 346 9 0 0 0 - - - 0;
#N canvas 968 124 390 482 label 0;
#X obj 102 80 vsl 15 128 0 255 0 0 empty empty empty 0 -9 0 10 #0800fc #fcfcfc #000000 0 1;
#X obj 109 225 t b f;
#X obj 81 80 vsl 15 128 0 255 0 0 empty empty empty 0 -9 0 10 #00fc00 #000000 #000000 0 1;
#X obj 61 80 vsl 15 128 0 255 0 0 empty empty empty 0 -9 0 10 #fc0000 #000000 #000000 0 1;
#X obj 81 250 t b f;
#X obj 221 257 makefilename %02x;
#X obj 141 284 makefilename %02x;
#X obj 61 321 makefilename %02x;
#X obj 61 416 outlet;
#X text 52 56 background;
#X msg 61 380 symbol #\$1\$2\$3;
#X obj 176 59 loadbang;
#X obj 176 176 route set;
#X obj 61 351 pack symbol symbol symbol;
#X obj 277 71 cnv 15 100 60 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X msg 176 91 set 225;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 1 5 0;
#X connect 2 0 4 0;
#X connect 3 0 7 0;
#X connect 4 0 3 0;
#X connect 4 1 6 0;
#X connect 5 0 13 2;
#X connect 6 0 13 1;
#X connect 7 0 13 0;
#X connect 10 0 8 0;
#X connect 11 0 15 0;
#X connect 12 0 5 0;
#X connect 12 0 6 0;
#X connect 13 0 10 0;
#X connect 15 0 3 0;
#X connect 15 0 2 0;
#X connect 15 0 0 0;
#X connect 15 0 12 0;
#X coords 0 -1 1 1 80 170 2 50 50;
#X restore 345 165 pd label;
#X obj 485 377 t b s;
#X obj 267 231 loadbang;
#X obj 345 415 pack symbol symbol symbol;
#X msg 345 444 color \$1 \$2 \$3;
#X text 72 231 background;
#X text 454 445 RGB in hexadecimal;
#X text 356 140 Set RGB values in the sliders;
#X obj 193 540 cnv 15 200 60 empty \$0-colors Label 35 30 0 40 #e1e1e1 #000000 0;
#X obj 345 481 send \$0-colors;
#X msg 267 270 list #e1e1e1 #000000 #000000, f 7;
#X obj 82 313 pack 1 22 22, f 20;
#N canvas 548 128 818 419 old-behavior 0;
#X floatatom 395 117 3 0 29 0 - - - 0;
#X floatatom 500 122 3 0 29 0 - - - 0;
#X text 493 97 label;
#X obj 500 158 t b f;
#X msg 395 226 color \$1 \$2 \$3;
#X text 393 97 background;
#X obj 496 320 cnv 15 200 60 empty \$0-old-behavior Label 35 30 0 40 #e0e0e0 #000000 0;
#X obj 395 266 send \$0-old-behavior;
#X floatatom 600 116 3 0 29 0 - - - 0;
#X floatatom 705 121 3 0 29 0 - - - 0;
#X text 698 96 label;
#X obj 705 157 t b f;
#X text 590 96 background;
#X obj 600 265 send \$0-old-behavior;
#X obj 600 188 pack 1 22, f 20;
#X msg 600 225 color \$1 \$2;
#X text 48 302 Old "compatible" behavior, f 16;
#X text 215 306 New "correct" behavior;
#X msg 37 339 \; pd compatibility 0.46;
#X msg 219 339 \; pd compatibility 0.47;
#X text 22 110 Since Pd version 0.47 \, you cannot use the color message with only 2 values \, as the 2nd value just gets ignored. You need to have 3 values where the third sets the label color., f 46;
#X text 22 168 You can use the "pd compatibility" message to get the old behavior back., f 46;
#X text 22 201 Note that this is valid for all ways of using the color message (including the new way of using hexadecimal notation introduced in Pd 0.47) \, but in this example we're just using the "presets" option for convenience., f 46;
#X text 410 29 When the compatibility is set to 0.47 or higher \, the example below to the right doesn't work to set the label color., f 48;
#X text 22 37 Until Pd version 0.46 \, you could have a color message with only two values \, where the second value would set the label color. You could also have 3 values \, where the 2nd value was ignored and the 3rd value would set the color., f 46;
#X text 692 226 <= Pd 0.46 way;
#X obj 408 147 loadbang;
#X obj 395 189 pack 10 0 22, f 20;
#X connect 0 0 27 0;
#X connect 1 0 3 0;
#X connect 3 0 27 0;
#X connect 3 1 27 2;
#X connect 4 0 7 0;
#X connect 8 0 14 0;
#X connect 9 0 11 0;
#X connect 11 0 14 0;
#X connect 11 1 14 1;
#X connect 14 0 15 0;
#X connect 15 0 13 0;
#X connect 26 0 27 0;
#X connect 27 0 4 0;
#X restore 467 590 pd old-behavior;
#X text 435 523 COMPATIBILITY NOTE: The behavior changed in Pd 0.47! Check details and how to get it back:, f 23;
#N canvas 720 84 576 472 old_way 0;
#N canvas 1004 177 402 495 label 0;
#X obj 102 80 vsl 15 128 0 255 0 0 empty empty empty 0 -9 0 10 #0800fc #fcfcfc #000000 0 1;
#X obj 81 80 vsl 15 128 0 255 0 0 empty empty empty 0 -9 0 10 #00fc00 #000000 #000000 0 1;
#X obj 61 80 vsl 15 128 0 255 0 0 empty empty empty 0 -9 0 10 #fc0000 #000000 #000000 0 1;
#X text 66 56 label;
#X obj 59 361 expr -($f1 * 65536 + $f2 * 256 + $f3 + 1);
#X obj 311 319 t b f;
#X obj 169 319 t b f;
#X obj 59 413 outlet;
#X connect 0 0 5 0;
#X connect 1 0 6 0;
#X connect 2 0 4 0;
#X connect 4 0 7 0;
#X connect 5 0 4 0;
#X connect 5 1 4 2;
#X connect 6 0 4 0;
#X connect 6 1 4 1;
#X coords 0 -1 1 1 80 170 2 50 50;
#X restore 335 137 pd label;
#X text 228 112 Set RGB values in the sliders;
#N canvas 828 139 516 513 label 0;
#X obj 102 80 vsl 15 128 0 255 0 0 empty empty empty 0 -9 0 10 #0800fc #fcfcfc #000000 0 1;
#X obj 81 80 vsl 15 128 0 255 0 0 empty empty empty 0 -9 0 10 #00fc00 #000000 #000000 0 1;
#X obj 61 80 vsl 15 128 0 255 0 0 empty empty empty 0 -9 0 10 #fc0000 #000000 #000000 0 1;
#X obj 61 361 expr -($f1 * 65536 + $f2 * 256 + $f3 + 1);
#X obj 313 269 t b f;
#X obj 171 269 t b f;
#X obj 61 413 outlet;
#X text 52 56 background;
#X obj 180 83 loadbang;
#X msg 202 134 set 225;
#X msg 181 195 225 225 225;
#X connect 0 0 4 0;
#X connect 1 0 5 0;
#X connect 2 0 3 0;
#X connect 3 0 6 0;
#X connect 4 0 3 0;
#X connect 4 1 3 2;
#X connect 5 0 3 0;
#X connect 5 1 3 1;
#X connect 8 0 9 0;
#X connect 8 0 10 0;
#X connect 9 0 0 0;
#X connect 9 0 1 0;
#X connect 9 0 2 0;
#X connect 10 0 3 0;
#X coords 0 -1 1 1 80 170 2 50 50;
#X restore 243 137 pd label;
#X text 91 166 Open subpatches for the conversion ====>, f 20;
#X msg 282 374 color -1.48034e+07 -1 -1;
#N canvas 574 194 328 335 pack 0;
#X obj 73 47 inlet;
#X obj 206 47 inlet;
#X msg 73 152 color \$1 \$2 \$3;
#X obj 206 85 t b f;
#X obj 73 123 pack float -1 -1, f 24;
#X obj 73 187 list prepend set;
#X obj 73 213 list trim;
#X obj 73 246 t b a;
#X obj 73 283 outlet;
#X connect 0 0 4 0;
#X connect 1 0 3 0;
#X connect 2 0 5 0;
#X connect 3 0 4 0;
#X connect 3 1 4 2;
#X connect 4 0 2 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 7 1 8 0;
#X restore 282 338 pd pack;
#X f 8;
#X obj 46 355 cnv 15 200 60 empty \$0-colors-old-way Label 35 30 0 40 #e1e1e1 #000000 0;
#X obj 282 410 send \$0-colors-old-way;
#X text 93 22 The RGB color scheme can also be encoded \, for backwards compatibility \, as negative inetegers. For "R" (red) \, "G" (green) & "B" (blue) values from 0 to 255 \, the conversion formula is \; float = -(R * 65536 + G * 256 + B + 1)., f 47;
#X connect 0 0 5 1;
#X connect 2 0 5 0;
#X connect 4 0 7 0;
#X connect 5 0 4 0;
#X restore 64 542 pd old_way;
#X text 29 481 open subpatch below for the old way of encoding RGB values., f 20;
#X text 30 463 See also:;
#X text 58 18 The 'color' message takes a list of three values \, but only the first and the third are valid and set \, respectively \, background and label colors (as there's no "front" color \, the 2nd value is ignored)., f 76;
#X text 58 65 Integers from 0 to 29 represent the 30 preset colors found in the properties window \, values above are wrapped. Negative integers were used to encode RGB values (and that still works for backwards compatibility). But since Pd 0.47-0 \, you can set colors with hexadecimal RGB symbol values \, which are followed by "#"., f 76;
#X text 71 164 Open subpatches for the conversion from RGB to hexadecimal ------------->, f 38;
#X connect 0 0 20 0;
#X connect 1 0 3 0;
#X connect 3 0 20 0;
#X connect 3 1 20 2;
#X connect 4 0 18 0;
#X connect 6 0 10 0;
#X connect 7 0 6 0;
#X connect 8 0 12 0;
#X connect 9 0 8 0;
#X connect 10 0 12 0;
#X connect 10 1 12 2;
#X connect 11 0 19 0;
#X connect 12 0 13 0;
#X connect 13 0 18 0;
#X connect 19 0 12 0;
#X connect 20 0 4 0;
#X coords 0 0 1 1 85 60 0;
#X restore 182 216 pd colors;
#N canvas 925 42 425 489 size 0;
#X floatatom 158 241 3 18 100 0 - - - 0;
#X text 185 241 size;
#X msg 158 278 size \$1;
#X obj 158 361 cnv 18 18 18 empty \$0-size empty 20 12 0 14 #fc0400 #404040 0;
#X obj 158 315 send \$0-size;
#X text 25 18 The size message sets the object's size (not to be confused with the size of the visible rectangle). This is the actual object's area \, which is the selectable square area that gets highlighted with a light blue outline when you select it (as usual with any other object in Pd)., f 52;
#X text 25 104 Below \, the visible rectangular size is a square of 18 pixels. Increase the size of the object and note that the object's size is also visible if it is larger than the visible rectangle. The benefit from having a small object size is that canvases are usually used in the background of something else and this prevents you from right clicking on it when you want to interact with an object in front., f 52;
#X connect 0 0 2 0;
#X connect 2 0 4 0;
#X restore 196 104 pd size;
#N canvas 800 23 566 528 label 0;
#X msg 88 275 label \$1;
#X floatatom 239 168 4 0 3 0 - - - 0;
#X obj 281 195 t b f;
#X floatatom 281 168 5 5 50 0 - - - 0;
#X msg 239 265 label_font \$1 \$2;
#X text 201 167 type;
#X text 325 166 size;
#X obj 239 105 vradio 15 1 0 3 empty empty empty 0 -8 0 10 #fcfcfc #000000 #000000 0;
#X text 260 104 DejaVu Sans Mono;
#X text 260 120 Helvetica;
#X text 260 135 Times;
#X msg 100 243 symbol empty;
#X floatatom 393 184 4 -100 250 0 - - - 0;
#X obj 435 211 t b f;
#X floatatom 435 184 5 -150 150 0 - - - 0;
#X msg 393 281 label_pos \$1 \$2;
#X text 375 183 x;
#X text 479 182 y;
#X text 388 160 label offset:;
#X msg 68 178 symbol label;
#X msg 88 207 symbol my\ label;
#X text 78 29 The 'label' message sets the label symbol \, setting it to "empty" clears it. The 'label_font' message sets font type and size and 'label_pos' sets the x/y coordinates., f 64;
#X obj 155 407 cnv 15 300 100 empty \$0-label label 17 20 2 25 #e0e0e0 #404040 0;
#X obj 239 360 send \$0-label;
#X obj 393 239 pack 17 20, f 11;
#X obj 239 224 pack 0 25, f 11;
#X connect 0 0 23 0;
#X connect 1 0 25 0;
#X connect 2 0 25 0;
#X connect 2 1 25 1;
#X connect 3 0 2 0;
#X connect 4 0 23 0;
#X connect 7 0 1 0;
#X connect 11 0 0 0;
#X connect 12 0 24 0;
#X connect 13 0 24 0;
#X connect 13 1 24 1;
#X connect 14 0 13 0;
#X connect 15 0 23 0;
#X connect 19 0 0 0;
#X connect 20 0 0 0;
#X connect 24 0 15 0;
#X connect 25 0 4 0;
#X restore 189 188 pd label;
#N canvas 740 42 487 614 send-receive 0;
#X msg 97 203 receive empty;
#X text 65 28 The object can have a send and receive symbol. Since it has no inlet or outlet \, this is the only way it can receive and send messages., f 50;
#X obj 169 433 cnv 15 100 60 empty \$0-cnv_rcv1 empty 20 12 0 14 #e0e0e0 #404040 0;
#X msg 81 172 receive \\\$0-cnv_rcv2;
#X msg 268 203 receive empty;
#X msg 251 172 receive \\\$0-cnv_rcv1;
#X msg 122 347 receive empty;
#X obj 87 384 s \$0-cnv_rcv1;
#X obj 80 241 send \$0-cnv_rcv1;
#X obj 251 241 send \$0-cnv_rcv2;
#X msg 88 285 send \\\$0-cnv_snd2;
#X msg 103 318 send \\\$0-cnv_snd1;
#X msg 287 348 receive empty;
#X msg 253 286 send \\\$0-cnv_snd2;
#X msg 268 319 send \\\$0-cnv_snd1;
#X obj 252 385 s \$0-cnv_rcv2;
#X text 65 74 The 'send' and 'receive' messages take a symbol to set \, respectively \, the send and receive symbol. If you set these to "empty" \, the symbols are cleared (and can only be inserted back in the properties window)., f 50;
#X text 41 511 Note you need to escape dollar signs with backslashes to set something like "\$0-x". But the backslash is not needed if you set it directly via the properties window. Also note that like other iemguis \, we have feedback protection in the case both send and receive symbols are the same - though it is not that pertinent in this case., f 59;
#X connect 0 0 8 0;
#X connect 3 0 8 0;
#X connect 4 0 9 0;
#X connect 5 0 9 0;
#X connect 6 0 7 0;
#X connect 10 0 7 0;
#X connect 11 0 7 0;
#X connect 12 0 15 0;
#X connect 13 0 15 0;
#X connect 14 0 15 0;
#X restore 140 160 pd send-receive;
#N canvas 902 145 464 331 loading-args 0;
#X text 58 115 For instance \, below \, we have \$0 used in the label field \, which gets expanded to the patch ID number. Using something like "\$1" is useful if you're using the object in an abstraction \, then you can load a value passed as an argument into a parameter., f 49;
#X obj 158 231 cnv 15 150 60 empty empty \$0-label 20 18 0 14 #e0e0e0 #404040 0;
#X text 58 26 Note that all the parameters that you can set by inserting a number or symbol into a field in the properties window can also load dollar sign arguments (\$0 \, \$1 \, \$2 \, and so on). Namely \, these parameters are: size \, visible size \, send/receive symbols \, label \, label offset and font size., f 49;
#X restore 152 291 pd loading-args;
#X text 64 261 Loading arguments in properties:;
#N canvas 910 74 447 428 visible-rectangle 0;
#X obj 153 283 cnv 15 100 60 empty \$0-vis_size empty 20 12 0 14 #b8b8b8 #404040 0;
#X obj 156 164 pack 100 60;
#X obj 198 136 t b f;
#X floatatom 198 111 4 18 100 0 - - - 0;
#X floatatom 156 111 4 18 100 0 - - - 0;
#X obj 156 223 send \$0-vis_size;
#X msg 156 194 vis_size \$1 \$2;
#X text 78 110 horizontal;
#X text 233 110 vertical;
#X text 47 27 The 'vis_size' message sets the visible rectangle size. It takes two values that set \, respectively \, horizontal and vertical sizes in pixels., f 49;
#X connect 1 0 6 0;
#X connect 2 0 1 0;
#X connect 2 1 1 1;
#X connect 3 0 2 0;
#X connect 4 0 1 0;
#X connect 6 0 5 0;
#X restore 105 132 pd visible-rectangle;
#X text 46 23 All the parameters from the properties window can be set via messages as well. See examples and more details on each parameter in the subpatches below:, f 39;
#X restore 392 227 pd properties;
#X text 284 349 (c) musil@iem.kug.ac.at;
#X text 320 365 IEM KUG \, Graz \, Austria \, 2002, f 14;
#X text 10 425 see also:;
#X text 64 350 This object is part of the "iemguis" library \, natively included in Pd version 0.34., f 28;
#X text 337 425 updated for Pd version 0.51;
#N canvas 626 143 482 400 example-room 0;
#X obj 330 221 tgl 19 0 empty empty empty 20 8 0 10 #dfdfdf #000000 #000000 0 1;
#N canvas 899 89 383 386 room 0;
#X obj 2 3 cnv 40 376 376 empty empty empty 150 140 2 17 #606060 #14e814 0;
#X obj 1 2 cnv 378 1 1 empty empty empty 115 160 2 17 #fc0400 #14e814 0;
#X obj 17 15 cnv 25 25 25 \$0-from_K1 \$0-to_K K1 4 13 0 14 #e8b484 #900000 0;
#X obj 333 338 cnv 25 25 25 \$0-from_K2 \$0-to_K K2 4 13 2 14 #94dcd4 #004450 0;
#X restore 182 179 pd room;
#X obj 330 251 metro 5;
#X floatatom 60 340 4 0 0 0 - - - 0;
#X floatatom 113 340 4 0 0 0 - - - 0;
#X text 46 340 x;
#X text 144 339 y;
#X obj 60 308 unpack, f 8;
#N canvas 276 231 451 443 from_K1 0;
#X obj 124 136 t f f;
#X obj 110 201 ||;
#X obj 64 137 t f f;
#X obj 110 232 sel 1;
#X obj 155 288 list;
#X obj 64 73 trigger list list;
#X obj 64 107 unpack;
#X obj 128 170 !=;
#X obj 68 171 !=;
#X obj 155 371 outlet;
#X text 212 274 The list is output only if either of the values has changed, f 23;
#X obj 175 334 print K1;
#X obj 64 43 receive \$0-from_K1;
#X connect 0 0 7 1;
#X connect 0 1 7 0;
#X connect 1 0 3 0;
#X connect 2 0 8 1;
#X connect 2 1 8 0;
#X connect 3 0 4 0;
#X connect 4 0 9 0;
#X connect 4 0 11 0;
#X connect 5 0 6 0;
#X connect 5 1 4 1;
#X connect 6 0 2 0;
#X connect 6 1 0 0;
#X connect 7 0 1 1;
#X connect 8 0 1 0;
#X connect 12 0 5 0;
#X restore 60 276 pd from_K1;
#X floatatom 200 340 4 0 0 0 - - - 0;
#X floatatom 253 340 4 0 0 0 - - - 0;
#X text 186 339 x;
#X text 284 339 y;
#X obj 200 308 unpack, f 8;
#X text 46 24 In this example \, we drag canvases in a subpatch and get their position at a rate from a metro object (below to the right). The values are then received below to the left., f 52;
#X text 45 86 Open the subpatch below ([pd room]) and move the "K1" and "K2" canvases. Note that the subpatch needs to be in edit mode so the objects can be selected and dragged. Hence \, click to open it and then get into the edit mode to move them., f 52;
#N canvas 430 179 455 465 from_K2 0;
#X obj 124 136 t f f;
#X obj 110 201 ||;
#X obj 64 137 t f f;
#X obj 110 232 sel 1;
#X obj 155 288 list;
#X obj 64 73 trigger list list;
#X obj 64 107 unpack;
#X obj 128 170 !=;
#X obj 68 171 !=;
#X obj 155 381 outlet;
#X text 212 274 The list is output only if either of the values has changed, f 23;
#X obj 180 336 print K2;
#X obj 64 43 receive \$0-from_K2;
#X connect 0 0 7 1;
#X connect 0 1 7 0;
#X connect 1 0 3 0;
#X connect 2 0 8 1;
#X connect 2 1 8 0;
#X connect 3 0 4 0;
#X connect 4 0 9 0;
#X connect 4 0 11 0;
#X connect 5 0 6 0;
#X connect 5 1 4 1;
#X connect 6 0 2 0;
#X connect 6 1 0 0;
#X connect 7 0 1 1;
#X connect 8 0 1 0;
#X connect 12 0 5 0;
#X restore 200 276 pd from_K2;
#X text 110 180 click -->;
#X text 73 220 click to start getting position -->;
#X obj 330 313 s \$0-to_K;
#X msg 330 284 get_pos;
#X connect 0 0 2 0;
#X connect 2 0 20 0;
#X connect 7 0 3 0;
#X connect 7 1 4 0;
#X connect 8 0 7 0;
#X connect 13 0 9 0;
#X connect 13 1 10 0;
#X connect 16 0 13 0;
#X connect 20 0 19 0;
#X restore 378 283 pd example-room;
#N canvas 665 62 632 612 position 0;
#X floatatom 200 146 4 0 1000 0 - - - 0;
#X obj 249 173 t b f;
#X floatatom 249 146 5 0 500 0 - - - 0;
#X msg 200 233 pos \$1 \$2;
#X text 121 146 x-position;
#X text 293 145 y-position;
#X msg 327 236 delta 1 0;
#X text 400 235 increase x by 1;
#X msg 334 258 delta -1 0;
#X text 416 257 decrease x by 1;
#X msg 349 286 delta 0 1;
#X msg 353 308 delta 0 -1;
#X text 426 285 increase y by 1;
#X text 437 310 decrease y by 1;
#X msg 364 337 delta 1 1;
#X text 439 338 increase both by 1;
#X text 455 359 decrease both by -1;
#X msg 369 359 delta -1 -1;
#X text 318 24 The 'delta' message changes the position of the object by a difference amount. It takes a list of x/y delta in pixels., f 40;
#X text 27 75 The 'pos' message takes a list of x/y coordinates in pixels and sets the objects's position., f 36;
#X obj 265 450 cnv 50 50 50 \$0-get_pos \$0-position empty 20 12 0 14 #7c78ac #404040 0;
#X obj 309 401 send \$0-position;
#X msg 308 197 get_pos;
#X obj 64 304 receive \$0-get_pos;
#X floatatom 64 366 4 0 1000 0 - - - 0;
#X floatatom 187 366 5 0 500 0 - - - 0;
#X text 43 387 x-position;
#X text 168 385 y-position;
#X obj 64 334 unpack float float;
#X text 27 16 You can also set and change the position of the object in the patch. Moreover \, you can get the object's position., f 36;
#X text 318 83 The 'get_pos' message makes the object send its position., f 40;
#X text 369 196 <= get position;
#X text 64 280 receive position:;
#X obj 200 201 pack 265 450;
#X text 88 234 set position =>;
#X connect 0 0 33 0;
#X connect 1 0 33 0;
#X connect 1 1 33 1;
#X connect 2 0 1 0;
#X connect 3 0 21 0;
#X connect 6 0 21 0;
#X connect 8 0 21 0;
#X connect 10 0 21 0;
#X connect 11 0 21 0;
#X connect 14 0 21 0;
#X connect 17 0 21 0;
#X connect 22 0 21 0;
#X connect 23 0 28 0;
#X connect 28 0 24 0;
#X connect 28 1 25 0;
#X connect 33 0 3 0;
#X restore 406 255 pd position;
#X text 22 233 Right click ===> for properties., f 16;
#X text 10 159 Right click for properties (to set size \, colors \, labels \, etc). Note you need to right click on the selectable area (on the top left corner). When the object is selected \, this area is highlighted as light blue., f 71;
#N canvas 706 29 437 330 display-example 0;
#X obj 68 231 send \$0-display;
#X floatatom 68 141 5 1 100 0 - - - 0;
#X msg 68 202 label \$1;
#X obj 205 215 cnv 30 148 30 empty \$0-display File\ 001.wav 9 15 0 16 #000000 #fc6460 0;
#X text 64 27 Here we're using a canvas to display a symbol by using it to set the label., f 43;
#X text 64 64 The file name is set with a [makefilename] object below and you can click and drag on the number box to set the file name., f 43;
#X obj 68 173 makefilename File\ %03d.wav;
#X text 111 140 <-- click and drag;
#X connect 1 0 6 0;
#X connect 2 0 0 0;
#X connect 6 0 2 0;
#X restore 357 311 pd display-example;
#X text 10 98 Insert it from the Put menu (named as "Canvas") or its shortcut. Alternatively \, create it by typing "my_canvas" or "cnv" into an object box. This object has no inlet or outlet \, so it can only communicate via send and receive symbols set via the properties window., f 71;
#X obj 84 426 all_guis;
#X obj 2 416 cnv 1 535 1 empty empty empty 8 12 0 13 #000000 #000000 0;
#X obj 137 41 cnv 1 400 1 empty empty empty 8 12 0 13 #000000 #000000 0;
#X text 126 12 - [cnv]/[my_canvas]: GUI Canvas;
#N canvas 578 113 658 414 reference 0;
#X obj 8 52 cnv 5 640 5 empty empty INLETS/OUTLETS: 8 18 0 13 #202020 #000000 0;
#X obj 11 96 cnv 2 630 2 empty empty METHODS: 8 12 0 13 #202020 #000000 0;
#X text 136 107 size <float> - sets the size of selectable square., f 70;
#X text 59 126 vis_size <float \, float> - sets canvas' horizontal/vertical size., f 81;
#X text 122 145 label <symbol> - sets label symbol., f 72;
#X text 45 164 label_font <float \, float> -;
#X text 52 196 label_pos <float \, float> -;
#X text 241 196 sets label position., f 55;
#X obj 8 385 cnv 5 640 5 empty empty empty 8 18 0 13 #202020 #000000 0;
#X text 129 246 send <symbol> - sets send symbol., f 71;
#X text 101 265 receive <symbol> - sets receive symbol., f 75;
#X text 136 214 color <list> -;
#X text 241 214 first element sets background color and third sets font color (either floats or symbols in hexadecimal format).;
#X text 241 164 sets font type <0: DejaVu Sans Mono \, 1: Helvetica \, 2: Times> and font size., f 50;
#X text 94 284 pos <float \, float> - sets position in the patch canvas., f 76;
#X obj 37 16 cnv 15 100 20 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X text 80 302 delta <float \, float> -;
#X text 241 302 changes the position by a x/y delta in pixels., f 55;
#X text 171 320 get_pos - gets objects' position (sent to a receive name)., f 65;
#X text 159 66 NONE (input/output is via send/receive names).;
#X text 148 17 - GUI Canvas.;
#X obj 11 349 cnv 2 630 2 empty empty OUTPUT: 8 12 0 13 #202020 #000000 0;
#X text 192 358 list - <x \, y> position when receiving a 'get_pos' message.;
#X restore 372 10 pd reference;
#X text 463 10 <= click;
#X obj 6 81 cnv 1 130 1 empty empty empty 8 12 0 13 #000000 #000000 0;
#X obj 136 41 cnv 1 1 41 empty empty empty 8 12 0 13 #000000 #000000 0;
#X text 150 50 The canvas object is a simple GUI (Graphical User Interface) used as a background and/or to display a symbol. It can also send its position when queried., f 51;
