diff options
Diffstat (limited to 'doc/additional')
-rw-r--r-- | doc/additional/pd-msg/1.msg_and_patch/6.relocate_windows.pd | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/doc/additional/pd-msg/1.msg_and_patch/6.relocate_windows.pd b/doc/additional/pd-msg/1.msg_and_patch/6.relocate_windows.pd new file mode 100644 index 00000000..ac18bb6b --- /dev/null +++ b/doc/additional/pd-msg/1.msg_and_patch/6.relocate_windows.pd @@ -0,0 +1,86 @@ +#N canvas 466 22 554 615 10; +#X text 21 35 1 create a new subpatch; +#X msg 36 89 \; pd-6.relocate_windows.pd obj 400 20 pd my_subpatch +; +#X text 22 143 2 send new subpatch relocation messages; +#X text 42 180 The subpatch needs to be closed in order for this to +take effect \, so the message closes the patch first \, then reopens +it after the "relocate" message has been sent.; +#X obj 48 252 hsl 128 15 0 1700 0 0 \$0-width empty width 12 8 0 10 +-203904 -1 -1 0 0; +#N canvas 322 162 480 510 pack 0; +#X obj 20 457 outlet; +#X obj 23 9 inlet; +#X obj 70 9 inlet; +#X obj 70 98 trigger bang float; +#X obj 200 9 inlet; +#X obj 320 9 inlet; +#X obj 320 98 trigger bang float; +#X obj 200 58 int; +#X obj 320 58 int; +#X obj 70 58 int; +#X obj 20 58 int; +#X obj 21 220 pack 200 200; +#X obj 20 352 pack symbol symbol; +#X obj 217 292 trigger bang symbol; +#X obj 217 220 pack 100 100; +#X obj 21 263 zexy/makesymbol %sx%s+0+0; +#X obj 217 263 zexy/makesymbol 0x0+%s+%s; +#X connect 1 0 10 0; +#X connect 2 0 9 0; +#X connect 3 0 11 0; +#X connect 3 1 11 1; +#X connect 4 0 7 0; +#X connect 5 0 8 0; +#X connect 6 0 14 0; +#X connect 6 1 14 1; +#X connect 7 0 14 0; +#X connect 8 0 6 0; +#X connect 9 0 3 0; +#X connect 10 0 11 0; +#X connect 11 0 15 0; +#X connect 12 0 0 0; +#X connect 13 0 12 0; +#X connect 13 1 12 1; +#X connect 14 0 16 0; +#X connect 15 0 12 0; +#X connect 16 0 13 0; +#X restore 27 331 pd pack + bang; +#X obj 68 272 hsl 128 15 0 1200 0 0 \$0-height empty height 12 8 0 +10 -232576 -1 -1 0 0; +#X obj 88 292 hsl 128 15 0 1600 0 0 \$0-x empty x 12 8 0 10 -4160 -1 +-1 0 0; +#X obj 108 312 hsl 128 15 8 1200 0 0 \$0-y empty y 12 8 0 10 -159808 +-1 -1 0 0; +#X floatatom 203 272 5 0 0 0 - #0-height -; +#X floatatom 188 253 5 0 0 0 - #0-width -; +#X floatatom 224 292 5 0 0 0 - #0-x -; +#X floatatom 244 312 5 0 0 0 - #0-y -; +#X obj 26 387 delay 200; +#X msg 97 517 \; pd-my_subpatch menuclose \; pd-my_subpatch relocate +200x200+1+1 1x1+100+100 \; pd-my_subpatch vis 1; +#X text 109 492 reset:; +#X obj 36 61 loadbang; +#X obj 26 471 pddp/print; +#X obj 26 364 trigger bang anything bang; +#X obj 147 445 send pd-my_subpatch; +#X msg 227 411 menuclose; +#X msg 101 411 relocate \$1 \$2; +#X msg 26 411 vis 1; +#X obj 227 387 purepd/once; +#X connect 4 0 5 0; +#X connect 5 0 18 0; +#X connect 6 0 5 1; +#X connect 7 0 5 2; +#X connect 8 0 5 3; +#X connect 13 0 22 0; +#X connect 13 0 23 1; +#X connect 16 0 1 0; +#X connect 18 0 13 0; +#X connect 18 1 21 0; +#X connect 18 2 23 0; +#X connect 20 0 19 0; +#X connect 21 0 19 0; +#X connect 21 0 17 0; +#X connect 22 0 19 0; +#X connect 23 0 20 0; |