[PD] control reference pd patch

J. Scott Hildebrand jshildebrand at ucdavis.edu
Wed Jul 31 03:54:46 CEST 2002



      i made this as sort of an aid for myself to teach other people some
functionality of pd (so i wouldn't have to fumble through the demo
patches). i haven't used it for that purpose, but it has come
in handy to do a quick look up of a certain control internal. it's
basically most of the graphics out of the built-in tutorial, and i think i
may have added one or two things and also some comments for slightly
ambiguous things. anyway for me it's come in handy more than a couple of
times, i sometimes just have it up in the background when i'm building a
patch.

                               scott

p.s. i did make it a while ago so there's some updating that could be
done, but i'll leave that up to whoever might actually make use of it.
-------------- next part --------------
#N canvas 7 0 1242 887 10;
#X msg 109 312 hello world;
#X obj 109 385 print;
#X text 120 328 message;
#X text 224 329 atom;
#X text 106 403 object;
#X floatatom 319 396 0 0 0;
#X floatatom 319 304 0 0 0;
#X floatatom 341 328 0 0 0;
#X obj 319 372 +;
#X text 296 351 hot;
#X text 346 353 cold;
#X floatatom 443 374 0 0 0;
#X floatatom 489 375 0 0 0;
#X obj 443 348 +;
#X floatatom 443 318 0 0 0;
#X obj 489 349 +;
#X text 441 393 good;
#X text 490 394 bad;
#X floatatom 117 558 0 0 0;
#X floatatom 230 559 0 0 0;
#X floatatom 117 465 0 0 0;
#X obj 117 534 *;
#X obj 230 535 -;
#X text 61 558 square;
#X text 270 560 first difference;
#X obj 117 488 trigger float float;
#X floatatom 256 703 0 0 0;
#X floatatom 215 702 0 0 0;
#X msg 215 649 5 6;
#X floatatom 163 701 0 0 0;
#X floatatom 95 698 0 0 0;
#X msg 95 648 5;
#X obj 95 673 + 9;
#X obj 163 676 +;
#X obj 215 677 unpack;
#X msg 319 648 5;
#X obj 319 700 print;
#X obj 319 674 pack 34 78;
#X msg 163 648 5 6;
#X text 101 613 messages (usually numbers or short lists of numbers)
;
#X obj 625 313 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1
-1;
#X msg 670 311 bang;
#X obj 633 356 f;
#X floatatom 660 399 5 0 0;
#X obj 689 356 + 1;
#X text 148 85 New Object Ctrl+1;
#X text 148 117 New Number Ctrl+3;
#X text 148 101 New Message Ctrl+2;
#X text 307 116 (more in the "Put" menu);
#X text 147 134 Edit mode/Perform mode toggle Ctrl+e;
#X text 148 151 Duplicate Ctrl+d;
#X text 148 167 Standard Windows/Linux editing commands Ctrl+ c \,
v \, x \, a;
#X text 149 58 Useful shortcuts to know:;
#X text 278 363 inlet;
#X text 348 366 inlet;
#X text 273 385 outlet;
#X floatatom 465 492 0 0 0;
#X floatatom 421 540 0 0 0;
#X msg 421 491 bang;
#X obj 421 516 float;
#X floatatom 806 390 0 0 0;
#X msg 752 310 bang;
#X obj 806 365 + 1;
#X obj 752 339 metro 500;
#X msg 798 310 stop;
#X obj 752 365 float;
#X text 939 357 twice a second);
#X text 830 341 Metronome (bangs every 500 milliseconds \;;
#X text 104 19 CONDENSED CONTROL DOCUMENTATION AND EXAMPLES (cheat
sheet);
#X text 702 269 Timers and Counters;
#X text 222 270 Basics;
#X floatatom 703 583 0 0 0;
#X obj 703 557 + 1;
#X msg 703 453 bang;
#X obj 703 505 metro 500;
#X msg 612 511 stop;
#X obj 703 531 float;
#X obj 703 479 trigger bang bang;
#X msg 817 511 0;
#X obj 612 485 select 10;
#X text 861 508 first set value to zero;
#X text 860 479 initialization is in two steps;
#X text 861 527 (before starting the metronome);
#X text 565 534 conditionally;
#X text 565 551 stop the;
#X text 566 565 metronome;
#X text 740 452 <--- click here to start;
#X floatatom 577 626 0 0 0;
#X obj 577 652 >= 0;
#X obj 577 678 select 0 1;
#X obj 577 730 float;
#X floatatom 631 757 0 0 0;
#X msg 611 704 bang;
#X obj 631 731 + 1;
#X msg 577 704 -1;
#X text 623 650 <-- are we nonnegative? (1 if true \, 0 if false);
#X text 672 677 <-- selectively bang the first or second outlet;
#X text 659 700 <-- as a result either clear or increment the counter
;
#X text 660 724 (-1 because we want output to equal 0 if input is negative)
;
#X obj 624 873 print;
#X msg 624 815 bang;
#X msg 670 817 stop;
#X obj 624 845 delay 2000;
#X msg 754 818 bang;
#X obj 754 865 timer;
#X obj 784 840 delay 123.45;
#X floatatom 754 890 0 0 0;
#X obj 922 842 pipe 2000;
#X floatatom 922 815 0 0 0;
#X floatatom 922 868 0 0 0;
#X text 996 841 (allocates memory dynamically);
#X text 161 788 Conditional Statements;
#X obj 100 869 select 1 2;
#X floatatom 100 841 0 0 0;
#X obj 100 935 print select-1;
#X obj 132 915 print select-2;
#X obj 165 892 print select-3;
#X floatatom 326 843 0 0 0;
#X obj 326 876 pack;
#X obj 326 903 route 1 2;
#X obj 366 852 t b f;
#X floatatom 366 828 0 0 0;
#X obj 384 931 unpack;
#X floatatom 326 931 0 0 0;
#X floatatom 355 931 0 0 0;
#X floatatom 384 954 0 0 0;
#X floatatom 422 955 0 0 0;
#X text 704 58 Abbreviations:;
#X text 706 118 f - float;
#X text 706 81 t - trigger;
#X text 707 134 s - send;
#X text 707 150 r - receive;
#X floatatom 101 995 0 0 0;
#X obj 101 1020 spigot;
#X floatatom 138 995 0 0 0;
#X floatatom 101 1044 0 0 0;
#X text 168 996 <-- nonzero to open;
#X text 133 1044 if open \, messages coming in at left are sent to
output.;
#X floatatom 101 1082 0 0 0;
#X floatatom 101 1132 0 0 0;
#X obj 101 1108 moses 5;
#X floatatom 145 1132 0 0 0;
#X text 414 852 (we need the b here;
#X text 406 869 to "bang" the hot inlet \,;
#X text 406 885 because input to the cold;
#X text 405 902 inlet only stores values);
#X text 707 100 b - bang;
#X text 789 978 Depth First;
#X msg 658 1027 1;
#X obj 683 1126 + 1;
#X obj 803 1163 print x1;
#X obj 658 1185 print x3;
#X obj 708 1098 print x2;
#X obj 803 1076 + 1;
#X obj 803 1105 + 1;
#X obj 803 1134 + 1;
#X obj 658 1056 t f f f f;
#X obj 683 1155 print x2;
#X text 698 1027 <-- click here;
#X msg 918 1032 1;
#X text 958 1032 <-- maybe you shouldn't click here;
#X obj 957 1062 + 1;
#X obj 918 1061 f;
#X floatatom 918 1093 0 0 0;
#X msg 919 1128 1;
#X obj 958 1158 + 1;
#X obj 919 1157 f;
#X floatatom 919 1189 0 0 0;
#X text 959 1128 <-- better;
#X text 189 1204 Send/Receive;
#X floatatom 78 1351 0 0 0;
#X obj 78 1324 receive crackers;
#X floatatom 238 1356 0 0 0;
#X obj 238 1329 receive pickles;
#X obj 78 1297 send crackers;
#X obj 240 1291 send pickles;
#X floatatom 382 1355 0 0 0;
#X floatatom 78 1270 0 0 0;
#X floatatom 240 1264 0 0 0;
#X floatatom 379 1263 0 0 0;
#X msg 77 1403 \; pickles 99 \; crackers 56;
#X obj 382 1328 r pickles;
#X obj 379 1290 s pickles;
#X msg 85 1512 3 \, 4 \, 5;
#X msg 77 1485 3 4 5;
#X floatatom 365 1602 4 0 0;
#X floatatom 219 1605 4 0 0;
#X obj 219 1578 receive number9;
#X obj 365 1578 receive 9bis;
#X obj 77 1601 print;
#X msg 98 1539 3 \; number9 5 \; 9bis 45;
#X text 159 1512 <-- three separate messages;
#X text 142 1481 <-- one message: the list \, "3 4 5".;
#X text 200 1537 <-- three separate messages \, with three destinations.
;
#X text 795 1263 Variables;
#X obj 793 1384 print;
#X msg 639 1356 3 \$1 5;
#X floatatom 639 1330 4 0 0;
#X msg 793 1358 \$2 \$1 5;
#X msg 793 1333 45 67;
#X msg 871 1333 45 67;
#X msg 871 1358 \; number9 \$1 \; 9bis \$2;
#X obj 639 1382 print;
#X text 633 1308 one variable:;
#X text 798 1306 two variables:;
#X floatatom 635 1434 4 0 0;
#X floatatom 683 1434 4 0 0;
#X obj 635 1516 print;
#X obj 635 1464 pack 0 0 0;
#X floatatom 731 1434 4 0 0;
#X msg 635 1490 cis \$1 \, boom \$2 \, bah \$3;
#X text 731 1464 <-- creation arguments to "pack" set the number of
inlets.;
#X text 706 183 \; - send (useful for whole lists of sends);
#X text 706 167 sel - select;
#X text 639 1599 Subpatch Basics;
#X msg 509 1637 bang;
#X floatatom 912 1660 0 0 0;
#X msg 706 1633 bang;
#X floatatom 999 1660 0 0 0;
#X obj 912 1633 r cookies;
#X obj 999 1633 r pretzels;
#X obj 707 1661 sendnumber 67 pretzels;
#X obj 509 1661 sendnumber 45 cookies;
#X obj 112 1796 random 5;
#X msg 112 1770 bang;
#X floatatom 112 1822 0 0 0;
#X text 146 1822 outputs from 0 to 4;
#X msg 316 1765 bang;
#X floatatom 315 1843 0 0 0;
#X obj 318 1792 random 1000;
#X obj 315 1819 / 1000;
#X text 349 1843 from 0 to 0.999;
#X text 205 1713 Random;
#X text 109 1869 it is also possible to "seed" random number creation
with the timer \, so that you can avoid repeatable behavior.;
#X connect 0 0 1 0;
#X connect 6 0 8 0;
#X connect 7 0 8 1;
#X connect 8 0 5 0;
#X connect 13 0 11 0;
#X connect 14 0 15 0;
#X connect 14 0 15 1;
#X connect 14 0 13 1;
#X connect 14 0 13 0;
#X connect 15 0 12 0;
#X connect 20 0 25 0;
#X connect 21 0 18 0;
#X connect 22 0 19 0;
#X connect 25 0 21 0;
#X connect 25 0 22 1;
#X connect 25 1 21 1;
#X connect 25 1 22 0;
#X connect 28 0 34 0;
#X connect 31 0 32 0;
#X connect 32 0 30 0;
#X connect 33 0 29 0;
#X connect 34 0 27 0;
#X connect 34 1 26 0;
#X connect 35 0 37 0;
#X connect 37 0 36 0;
#X connect 38 0 33 0;
#X connect 40 0 42 0;
#X connect 41 0 42 0;
#X connect 42 0 44 0;
#X connect 44 0 42 1;
#X connect 44 0 43 0;
#X connect 56 0 59 1;
#X connect 58 0 59 0;
#X connect 59 0 57 0;
#X connect 61 0 63 0;
#X connect 62 0 60 0;
#X connect 62 0 65 1;
#X connect 63 0 65 0;
#X connect 64 0 63 0;
#X connect 64 0 63 0;
#X connect 65 0 62 0;
#X connect 72 0 71 0;
#X connect 72 0 76 1;
#X connect 72 0 79 0;
#X connect 73 0 77 0;
#X connect 74 0 76 0;
#X connect 75 0 74 0;
#X connect 76 0 72 0;
#X connect 77 0 74 0;
#X connect 77 1 78 0;
#X connect 78 0 76 1;
#X connect 79 0 75 0;
#X connect 87 0 88 0;
#X connect 88 0 89 0;
#X connect 89 0 94 0;
#X connect 89 1 92 0;
#X connect 90 0 93 0;
#X connect 92 0 90 0;
#X connect 93 0 90 1;
#X connect 93 0 91 0;
#X connect 94 0 90 0;
#X connect 100 0 102 0;
#X connect 101 0 102 0;
#X connect 102 0 99 0;
#X connect 103 0 104 0;
#X connect 103 0 105 0;
#X connect 104 0 106 0;
#X connect 105 0 104 1;
#X connect 107 0 109 0;
#X connect 108 0 107 0;
#X connect 112 0 114 0;
#X connect 112 1 115 0;
#X connect 112 2 116 0;
#X connect 113 0 112 0;
#X connect 117 0 118 0;
#X connect 118 0 119 0;
#X connect 119 0 123 0;
#X connect 119 1 124 0;
#X connect 119 2 122 0;
#X connect 120 0 118 0;
#X connect 120 1 118 1;
#X connect 121 0 120 0;
#X connect 122 0 125 0;
#X connect 122 1 126 0;
#X connect 132 0 133 0;
#X connect 133 0 135 0;
#X connect 134 0 133 1;
#X connect 138 0 140 0;
#X connect 140 0 139 0;
#X connect 140 1 141 0;
#X connect 148 0 156 0;
#X connect 149 0 157 0;
#X connect 153 0 154 0;
#X connect 154 0 155 0;
#X connect 155 0 150 0;
#X connect 156 0 151 0;
#X connect 156 1 149 0;
#X connect 156 2 152 0;
#X connect 156 3 153 0;
#X connect 159 0 162 0;
#X connect 161 0 162 0;
#X connect 162 0 163 0;
#X connect 162 0 161 0;
#X connect 164 0 166 0;
#X connect 165 0 166 1;
#X connect 166 0 167 0;
#X connect 166 0 165 0;
#X connect 171 0 170 0;
#X connect 173 0 172 0;
#X connect 177 0 174 0;
#X connect 178 0 175 0;
#X connect 179 0 182 0;
#X connect 181 0 176 0;
#X connect 183 0 189 0;
#X connect 184 0 189 0;
#X connect 187 0 186 0;
#X connect 188 0 185 0;
#X connect 190 0 189 0;
#X connect 196 0 202 0;
#X connect 197 0 196 0;
#X connect 198 0 195 0;
#X connect 199 0 198 0;
#X connect 200 0 201 0;
#X connect 205 0 208 0;
#X connect 206 0 208 1;
#X connect 208 0 210 0;
#X connect 209 0 208 2;
#X connect 210 0 207 0;
#X connect 215 0 222 0;
#X connect 217 0 221 0;
#X connect 219 0 216 0;
#X connect 220 0 218 0;
#X connect 223 0 225 0;
#X connect 224 0 223 0;
#X connect 227 0 229 0;
#X connect 229 0 230 0;
#X connect 230 0 228 0;


More information about the Pd-list mailing list