Update of /cvsroot/pure-data/doc/tutorials/intro In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21755
Modified Files: 08.bang.pd 12.right_to_left_order.pd 15.inlets_and_outlets.pd 17.atomic_messages.pd 18.selectors.pd 20.inlets_and_outlets.pd 28.gui_objects.pd TODO Log Message: small fixes and tweaks based on Carl-Johann's feedback
Index: 08.bang.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/08.bang.pd,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** 08.bang.pd 14 Apr 2006 14:53:42 -0000 1.4 --- 08.bang.pd 18 Apr 2006 09:55:17 -0000 1.5 *************** *** 1,3 **** ! #N canvas 10 40 632 472 12; #X obj 18 191 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; --- 1,3 ---- ! #N canvas 10 40 636 476 12; #X obj 18 191 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; *************** *** 24,28 **** #X obj 395 320 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; ! #X floatatom 395 352 5 0 0 0 - - -; #X connect 0 0 11 0; #X connect 1 0 10 0; --- 24,28 ---- #X obj 395 320 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; ! #X msg 394 349 234; #X connect 0 0 11 0; #X connect 1 0 10 0;
Index: 28.gui_objects.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/28.gui_objects.pd,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** 28.gui_objects.pd 14 Apr 2006 14:53:42 -0000 1.2 --- 28.gui_objects.pd 18 Apr 2006 09:55:18 -0000 1.3 *************** *** 1,3 **** ! #N canvas 10 40 640 480 10; #X obj 420 33 import cyclone unauthorized; #X obj 11 57 cnv 15 600 650 empty empty empty 20 12 0 14 -262131 -66577 --- 1,3 ---- ! #N canvas 10 40 644 484 10; #X obj 420 33 import cyclone unauthorized; #X obj 11 57 cnv 15 600 650 empty empty empty 20 12 0 14 -262131 -66577 *************** *** 31,41 **** #X obj 147 408 popup 124 25 #ffffff popup option; #X obj 333 404 ticker ; ! #X obj 397 510 envgen 200 140 1 0 ; ! #X obj 286 544 knob 32 32 0 127 0 0 empty empty empty 0 -8 32 8 -262144 -1 -1 0 1; ! #X text 280 518 [knob]; #X text 316 381 [ticker]; ! #X text 463 486 [envgen]; ! #X text 449 124 [cyclone/Scope~]; #X text 40 380 [button]; #X text 134 382 [popup]; --- 31,41 ---- #X obj 147 408 popup 124 25 #ffffff popup option; #X obj 333 404 ticker ; ! #X obj 324 529 envgen 200 140 1 0 ; ! #X obj 491 454 knob 32 32 0 127 0 0 empty empty empty 0 -8 32 8 -262144 -1 -1 0 1; ! #X text 485 428 [knob]; #X text 316 381 [ticker]; ! #X text 390 505 [envgen]; ! #X text 449 90 [cyclone/Scope~]; #X text 40 380 [button]; #X text 134 382 [popup]; *************** *** 47,65 **** #X text 325 318 [hslider]; #X text 107 317 [vradio]; ! #X obj 441 146 Scope~ 130 130 256 3 128 -1 1 0 0 0 0 102 255 51 135 135 135 0; #X text 337 98 [nbx]; ! #X obj 461 333 gcanvas 80 80; ! #X text 472 308 [gcanvas]; ! #X obj 21 472 grid grid1 200 0 199 200 0 199 1 1 1 10 10 103 520; ! #X text 41 453 [unauthorized/grid]; ! #X floatatom 462 420 5 0 0 0 - - -; ! #X floatatom 534 421 5 0 0 0 - - -; #X obj 10 10 cnv 15 400 40 empty empty gui_objects 20 12 0 24 -228992 -66577 0; ! #X floatatom 214 680 5 0 0 0 - - -; ! #X floatatom 21 679 5 0 0 0 - - -; ! #X floatatom 286 582 5 0 0 0 - - -; ! #X text 422 101 And various others:; #X connect 19 0 44 0; #X connect 35 0 39 0; --- 47,65 ---- #X text 325 318 [hslider]; #X text 107 317 [vradio]; ! #X obj 441 112 Scope~ 130 130 256 3 128 -1 1 0 0 0 0 102 255 51 135 135 135 0; #X text 337 98 [nbx]; ! #X obj 461 299 gcanvas 80 80; ! #X text 472 274 [gcanvas]; ! #X obj 51 472 grid grid1 200 0 199 200 0 199 1 1 1 10 10 133 520; ! #X text 71 453 [unauthorized/grid]; ! #X floatatom 462 386 5 0 0 0 - - -; ! #X floatatom 534 387 5 0 0 0 - - -; #X obj 10 10 cnv 15 400 40 empty empty gui_objects 20 12 0 24 -228992 -66577 0; ! #X floatatom 244 680 5 0 0 0 - - -; ! #X floatatom 51 679 5 0 0 0 - - -; ! #X floatatom 491 492 5 0 0 0 - - -; ! #X text 422 67 And various others:; #X connect 19 0 44 0; #X connect 35 0 39 0;
Index: TODO =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/TODO,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** TODO 14 Apr 2006 14:53:42 -0000 1.6 --- TODO 18 Apr 2006 09:55:18 -0000 1.7 *************** *** 1,5 ****
- - finish up content in 16.atoms.pd - - finish up 17.atomic_messages.pd
--- 1,3 ---- *************** *** 14,17 **** --- 12,18 ---- - make looping sequence
+ - 20.inlets_and_outlets: explain the message building, prepend, add2, set, + etc. probalby, I should make a patch or two before that about message + buildling
Index: 15.inlets_and_outlets.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/15.inlets_and_outlets.pd,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** 15.inlets_and_outlets.pd 14 Apr 2006 14:53:42 -0000 1.2 --- 15.inlets_and_outlets.pd 18 Apr 2006 09:55:18 -0000 1.3 *************** *** 1,3 **** ! #N canvas 10 40 620 460 12; #N canvas 10 40 620 460 object 0; #X obj 175 99 inlet; --- 1,3 ---- ! #N canvas 14 57 624 464 12; #N canvas 10 40 620 460 object 0; #X obj 175 99 inlet; *************** *** 6,21 **** #X connect 0 0 1 0; #X restore 366 208 pd object; ! #N canvas 10 40 620 460 another 0; #X obj 17 94 inlet; ! #X obj 431 320 outlet; ! #X obj 16 324 print; ! #X text 9 28 this object says hello in the Pd window , then passes ! the data thru; #X obj 16 182 trigger bang anything; ! #X msg 16 292 hi from inside [pd another object]!; #X connect 0 0 4 0; ! #X connect 4 0 5 0; #X connect 4 1 1 0; - #X connect 5 0 2 0; #X restore 365 254 pd another object; #X obj 12 13 cnv 15 400 40 empty empty inlets_and_outlets 20 12 0 24 --- 6,21 ---- #X connect 0 0 1 0; #X restore 366 208 pd object; ! #N canvas 10 40 628 468 another 0; #X obj 17 94 inlet; ! #X obj 471 382 outlet; ! #X obj 16 386 print; ! #X msg 16 354 hi from inside [pd another object]!; #X obj 16 182 trigger bang anything; ! #X text 9 28 This object first passes the data thru , then says hi ! in the Pd window.; #X connect 0 0 4 0; ! #X connect 3 0 2 0; ! #X connect 4 0 3 0; #X connect 4 1 1 0; #X restore 365 254 pd another object; #X obj 12 13 cnv 15 400 40 empty empty inlets_and_outlets 20 12 0 24
Index: 17.atomic_messages.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/17.atomic_messages.pd,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** 17.atomic_messages.pd 14 Apr 2006 14:53:42 -0000 1.2 --- 17.atomic_messages.pd 18 Apr 2006 09:55:18 -0000 1.3 *************** *** 1,6 **** ! #N canvas 10 40 620 460 12; #X obj 10 12 cnv 15 400 40 empty empty atomic_messages 20 12 0 24 -228992 -66577 0; ! #X msg 27 81 bang; ! #X msg 27 197 symbol atom; ! #X msg 29 300 float 1.234; --- 1,24 ---- ! #N canvas 10 40 624 464 12; #X obj 10 12 cnv 15 400 40 empty empty atomic_messages 20 12 0 24 -228992 -66577 0; ! #X msg 69 191 symbol atom; ! #X msg 47 343 float 1.234; ! #X text 15 76 To send one piece of data to an object , send an atomic ! message. There are atomic message to match each of the atom types. ! ; ! #X symbolatom 61 233 10 0 0 0 - - -; ! #X msg 54 165 atom; ! #X text 172 232 <-- the symbol box expects a symbol message; ! #X text 106 165 <-- this gives an error (check the Pd window); ! #X text 196 190 <-- this works; ! #X text 14 134 When using symbolic atoms , the symbol message is essential: ! ; ! #X floatatom 74 410 5 0 0 0 - - -; ! #X msg 84 374 362; ! #X text 17 273 When using numeric atoms , the float message is optional. ! This is because the float message is automatically implied when sending ! a numeric atom:; ! #X connect 1 0 4 0; ! #X connect 2 0 10 0; ! #X connect 5 0 4 0; ! #X connect 11 0 10 0;
Index: 18.selectors.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/18.selectors.pd,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** 18.selectors.pd 14 Apr 2006 14:53:42 -0000 1.2 --- 18.selectors.pd 18 Apr 2006 09:55:18 -0000 1.3 *************** *** 1,3 **** ! #N canvas 10 40 624 464 12; #X obj 8 -33 cnv 15 400 40 empty empty selectors 20 12 0 24 -228992 -66577 0; --- 1,3 ---- ! #N canvas 10 40 628 468 12; #X obj 8 -33 cnv 15 400 40 empty empty selectors 20 12 0 24 -228992 -66577 0; *************** *** 20,29 **** ; #X text 22 319 Here's the technical definition:; - #X text 22 350 The selector is a symbolic atom , which is a non-numeric - string with no white space , semicolons , or commas. In the case - of messages whose first element is a numeric atom , the selector is - implied.; #X text 220 129 <-- "output-left" is the selector; #X text 250 179 <-- "output-right" is the selector; #X connect 1 0 2 0; #X connect 1 1 3 0; --- 20,29 ---- ; #X text 22 319 Here's the technical definition:; #X text 220 129 <-- "output-left" is the selector; #X text 250 179 <-- "output-right" is the selector; + #X text 22 350 The selector is a symbolic atom , which is a non-numeric + string with no white space , semicolons , or commas. In the case + of messages whose first element is a numeric atom , the "float" selector + is implied.; #X connect 1 0 2 0; #X connect 1 1 3 0;
Index: 12.right_to_left_order.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/12.right_to_left_order.pd,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** 12.right_to_left_order.pd 14 Apr 2006 14:53:42 -0000 1.2 --- 12.right_to_left_order.pd 18 Apr 2006 09:55:18 -0000 1.3 *************** *** 1,3 **** ! #N canvas 10 40 624 464 12; #X obj 165 185 bng 25 250 50 0 empty empty empty -2 -8 1 10 -24198 -1 -1; --- 1,3 ---- ! #N canvas 10 40 628 468 12; #X obj 165 185 bng 25 250 50 0 empty empty empty -2 -8 1 10 -24198 -1 -1; *************** *** 14,21 **** #X obj 32 412 pddp/pddplink http://crca.ucsd.edu/~msp/Pd_documentation/x2.htm#s3.3 ; - #X text 10 118 The [trigger] object is used to enforce execution order. - If you need things to run in a certain sequence , then you use a [trigger]. - ; #X text 97 369 then check the Pd window to see the order; #X connect 0 0 1 0; #X connect 1 0 4 0; --- 14,21 ---- #X obj 32 412 pddp/pddplink http://crca.ucsd.edu/~msp/Pd_documentation/x2.htm#s3.3 ; #X text 97 369 then check the Pd window to see the order; + #X text 11 119 The [trigger] object is used to enforce execution order. + If you need things to run in a certain sequence , then use a [trigger]. + ; #X connect 0 0 1 0; #X connect 1 0 4 0;
Index: 20.inlets_and_outlets.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/20.inlets_and_outlets.pd,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** 20.inlets_and_outlets.pd 14 Apr 2006 14:53:42 -0000 1.2 --- 20.inlets_and_outlets.pd 18 Apr 2006 09:55:18 -0000 1.3 *************** *** 1,8 **** ! #N canvas 10 40 620 460 12; #X obj 10 10 cnv 15 400 40 empty empty inlets_and_outlets 20 12 0 24 -228992 -66577 0; #X text 14 72 When making your own objects and subpatchs , you can create inlets and outlets using [inlet] and [outlet].; ! #N canvas 10 40 620 460 look 0; #X obj 24 34 inlet; #X obj 238 47 inlet; --- 1,8 ---- ! #N canvas 10 40 624 464 12; #X obj 10 10 cnv 15 400 40 empty empty inlets_and_outlets 20 12 0 24 -228992 -66577 0; #X text 14 72 When making your own objects and subpatchs , you can create inlets and outlets using [inlet] and [outlet].; ! #N canvas 10 40 624 464 look 0; #X obj 24 34 inlet; #X obj 238 47 inlet; *************** *** 26,47 **** #X obj 197 129 bng 20 250 50 0 empty empty empty 0 -6 0 8 -24198 -1 -1; ! #N canvas 10 40 620 460 look 0; ! #X obj 24 34 inlet; #X obj 334 33 inlet; #X obj 528 35 inlet; ! #X obj 253 309 outlet; ! #X msg 45 170 set; ! #X obj 286 179 prepend add2; ! #X msg 251 263; ! #X obj 21 120 trigger bang bang anything; ! #X connect 0 0 7 0; #X connect 1 0 5 0; #X connect 2 0 5 0; ! #X connect 4 0 6 0; ! #X connect 5 0 6 0; ! #X connect 6 0 3 0; ! #X connect 7 0 4 0; ! #X connect 7 1 6 0; ! #X connect 7 2 5 0; #X restore 199 376 pd look inside me; #X obj 198 416 pddp/print_long; --- 26,42 ---- #X obj 197 129 bng 20 250 50 0 empty empty empty 0 -6 0 8 -24198 -1 -1; ! #N canvas 10 40 640 480 look 0; ! #X obj 20 34 inlet; #X obj 334 33 inlet; #X obj 528 35 inlet; ! #X obj 20 120 trigger bang anything; ! #X obj 224 404 outlet; ! #X obj 224 266 mapping/tolist; ! #X connect 0 0 3 0; #X connect 1 0 5 0; #X connect 2 0 5 0; ! #X connect 3 0 5 1; ! #X connect 3 1 5 0; ! #X connect 5 0 4 0; #X restore 199 376 pd look inside me; #X obj 198 416 pddp/print_long;