Update of /cvsroot/pure-data/doc/tutorials/intro In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22330
Modified Files: 0.right_to_left_order.pd Added Files: audio_execution_order.pd build_a_patch.pd gui_objects.pd outlet_order.pd subpatches.pd Removed Files: 0.execution_order.pd Log Message: some more sketches, including some from Max Neupert's workshop files
Index: 0.right_to_left_order.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/0.right_to_left_order.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 0.right_to_left_order.pd 3 Feb 2006 21:37:03 -0000 1.1 --- 0.right_to_left_order.pd 28 Mar 2006 05:35:22 -0000 1.2 *************** *** 1,24 **** ! #N canvas 427 300 455 442 10; ! #X text 19 12 In Pd , you read a patch from right to left , from ! top to bottom.; ! #X text 18 47 The [trigger] object is used to enforce execution order. If you need things to run in a certain order , then you use a [trigger]. ; ! #X obj 74 117 bng 25 250 50 0 empty empty empty -2 -8 1 10 -24198 -1 ! -1; ! #X obj 74 151 trigger bang bang bang; ! #X obj 85 257 +; ! #X obj 136 233 +; ! #X msg 197 198 1; ! #X msg 127 197 2; ! #X msg 78 196 3; ! #X floatatom 86 280 5 0 0 0 - - -; ! #X connect 2 0 3 0; ! #X connect 3 0 8 0; ! #X connect 3 1 7 0; ! #X connect 3 2 6 0; ! #X connect 4 0 9 0; ! #X connect 5 0 4 1; ! #X connect 6 0 5 1; ! #X connect 7 0 5 0; ! #X connect 8 0 4 0; --- 1,24 ---- ! #N canvas 406 232 616 416 12; ! #X text 10 110 The [trigger] object is used to enforce execution order. If you need things to run in a certain order , then you use a [trigger]. ; ! #X obj 165 177 bng 25 250 50 0 empty empty empty -2 -8 1 10 -24198 ! -1 -1; ! #X obj 165 217 trigger bang bang bang; ! #X msg 381 256 1; ! #X msg 273 256 2; ! #X msg 165 256 3; ! #X obj 273 332 print ORDER; ! #X obj 8 10 cnv 15 400 40 empty empty right_to_left_order 20 12 0 24 ! -228992 -66577 0; ! #X text 212 180 <-- click here ,; ! #X text 10 65 In Pd , you read a patch from right to left , from ! top to bottom. Objects also output from right to left; ! #X text 89 380 then check the Pd window to see the order.; ! #X connect 1 0 2 0; ! #X connect 2 0 5 0; ! #X connect 2 1 4 0; ! #X connect 2 2 3 0; ! #X connect 3 0 6 0; ! #X connect 4 0 6 0; ! #X connect 5 0 6 0;
--- NEW FILE: build_a_patch.pd --- #N canvas 476 37 643 580 12; #X msg 134 443 menuclose; #X obj 36 530 s pd-mon-nouveau-patch.pd; #X obj 22 136 cnv 15 5 5 empty empty 1 5 0 0 20 -262144 -258699 0; #X obj 23 210 cnv 15 5 5 empty empty 2 5 0 0 20 -262144 -258699 0; #X obj 20 262 cnv 15 5 5 empty empty 3 5 0 0 20 -262144 -258699 0; #X msg 60 105 ; pd filename mon-nouveau-patch.pd /tmp ; #N canvas ; #X pop 1 ;; #X text 14 16 Keeping true to the name "Pure Data" , you can send messages to Pd itself.; #X text 13 69 Click these messages starting from the top:; #X msg 76 251 symbolatom 20 100 0 0 0 0; #X msg 92 317 connect 0 0 1 0; #X msg 60 199 msg 20 27 symbol Hello_World!; #X text 131 364 click on [symbol Hello_World!( in the new window; #X text 243 442 now close the new window; #X obj 20 327 cnv 15 5 5 empty empty 4 5 0 0 20 -262144 -258699 0; #X obj 19 378 cnv 15 5 5 empty empty 5 5 0 0 20 -262144 -258699 0; #X obj 18 453 cnv 15 5 5 empty empty 6 5 0 0 20 -262144 -258699 0; #X connect 0 0 1 0; #X connect 8 0 1 0; #X connect 9 0 1 0; #X connect 10 0 1 0;
--- 0.execution_order.pd DELETED ---
--- NEW FILE: subpatches.pd --- #N canvas 0 22 454 304 12;
--- NEW FILE: gui_objects.pd --- #N canvas 293 91 746 588 10; #X obj 504 24 import cyclone unauthorized; #X obj 30 70 bng 15 250 50 0 $1 $1 empty 20 8 0 8 -262144 -1 -1; #X obj 30 102 tgl 15 1.04858e+06 empty $2 empty 20 8 0 8 -262144 -1 -1 0 1; #X obj 34 148 vsl 15 128 0 127 0 1.04858e+06 empty $3 empty 20 8 0 8 -262144 -1 -1 12700 1; #X obj 191 278 hsl 128 15 0 127 0 0 empty empty empty 20 8 0 8 -262144 -1 -1 2700 1; #X obj 201 249 hdl 15 1 2.6624e+06 8 $5 $5 empty 20 8 192 8 -262144 -1 -1 0; #X obj 254 87 vu 15 120 $6 empty 35 8 0 8 -66577 -1 1 0; #X obj 111 69 cnv 15 100 60 empty empty [canvas] 20 12 0 14 -233017 -66577 1.04858e+06; #X obj 126 149 vdl 15 1 4.79232e+06 8 $9 $9 empty 20 8 192 8 -262144 -1 -1 0; #X obj 341 136 nbx 5 14 -1e+37 1e+37 0 0 $5 $5 empty 45 7 0 10 -262144 -1 -1 0 256; #X text 8 22 Pd comes with a standard , built-in set of GUI elements , which you can select from the "Put" menu.; #X text 16 323 There are also some OS-native GUI elements available ; #X obj 44 363 button OK; #X obj 142 367 popup 124 25 #ffffff popup option; #X obj 298 363 ticker ; #X obj 503 415 envgen 200 140 1 0 ; #X obj 366 499 knob 32 32 0 127 0 0 empty empty empty 0 -8 32 8 -262144 -1 -1 3100 1; #X text 360 473 [knob]; #X text 281 340 [ticker]; #X obj 492 96 grid grid1 200 0 199 200 0 199 1 1 1 10 10 19 11; #X text 500 73 [unauthorized/grid]; #X text 483 391 [envgen]; #X text 112 405 [cyclone/Scope~]; #X text 23 339 [button]; #X text 129 341 [popup]; #X text 250 67 [vu]; #X text 46 69 [bng]; #X text 46 101 [tgl]; #X text 21 280 [vslider]; #X text 325 248 [hradio]; #X text 325 278 [hslider]; #X text 107 277 [vradio]; #X obj 105 432 Scope~ 130 130 256 3 128 -1 1 0 0 0 0 102 255 51 135 135 135 0; #X text 337 118 [nbx];
--- NEW FILE: outlet_order.pd --- #N canvas 0 22 454 304 12; #X text 151 112 <-- click here ,; #X obj 81 151 unpack float float float; #X msg 81 112 1 2 3; #X obj 8 10 cnv 15 400 40 empty empty outlet_order 20 12 0 24 -228992 -66577 0; #X obj 315 193 print first; #X obj 197 193 print first; #X obj 81 193 print first; #X connect 1 0 6 0; #X connect 1 1 5 0; #X connect 1 2 4 0; #X connect 2 0 1 0;
--- NEW FILE: audio_execution_order.pd --- #N canvas 0 22 458 308 10; #X text 150 11 execution order; #X obj 77 78 trigger b f a; #X text 58 140 audio is simultaneous; #X obj 69 186 osc~ 500; #X obj 91 229 *~; #X obj 78 255 dac~; #X obj 108 208 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X text 63 33 execution order is "undefined".; #X text 41 54 If you need to specify execution order , using [trigger]: ; #X connect 3 0 4 0; #X connect 4 0 5 1; #X connect 4 0 5 0; #X connect 6 0 4 1;