Update of /cvsroot/pure-data/doc/tutorials/intro In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7867
Modified Files: 00.hello_world.pd 01.basic_elements.pd 02.getting_help.pd 03.edit_mode.pd 04.objects.pd 05.connections.pd 06.messages.pd 07.EXERCISE-make_your_first_patch.pd 08.bang.pd 09.event_driven_processing.pd 10.counters.pd 11.hot_and_cold_inlets.pd 12.right_to_left_order.pd 13.ordering_messages.pd 14.depth_first.pd 15.inlets_and_outlets.pd 15.storage_objects.pd 16.atoms.pd 17.atomic_messages.pd 18.selectors.pd 19.subpatches.pd 20.inlets_and_outlets.pd 21.outlet_order.pd 22.Example-all_just_data.pd 23.EXERCISE-hmmm.pd 24.turning_on_and_off.pd 25.properties.pd 26.sliders.pd 27.guis.pd 28.gui_objects.pd 29.nervous_guis.pd TODO Log Message: lots of formatting and minor tweaks
Index: 24.turning_on_and_off.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/24.turning_on_and_off.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 24.turning_on_and_off.pd 13 Apr 2006 23:48:34 -0000 1.1 --- 24.turning_on_and_off.pd 14 Apr 2006 14:53:42 -0000 1.2 *************** *** 1,12 **** ! #N canvas 100 227 628 453 12; #X obj 10 10 cnv 15 400 40 empty empty turning_on_and_off 20 12 0 24 -228992 -66577 0; ! #X obj 160 145 metro 1000; ! #X obj 160 122 tgl 20 0 empty empty empty 0 -6 0 8 -24198 -1 -1 0 1 ; #X text 183 122 <-- click here; #X obj 160 171 bng 20 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; - #X text 186 171 bangs once a second (1000ms); #X text 15 371 The object is called [tgl] or you can get it from the "Put" menu.; --- 1,10 ---- ! #N canvas 10 40 624 464 12; #X obj 10 10 cnv 15 400 40 empty empty turning_on_and_off 20 12 0 24 -228992 -66577 0; ! #X obj 160 122 tgl 20 0 empty empty empty 0 -6 0 8 -24198 -1 -1 1 1 ; #X text 183 122 <-- click here; #X obj 160 171 bng 20 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X text 15 371 The object is called [tgl] or you can get it from the "Put" menu.; *************** *** 15,23 **** #X text 11 217 By default , a toggle outputs 1 for on , but you can change that to any number by selecting the "Properties" dialog.; ! #X obj 33 290 tgl 20 0 empty empty empty 0 -6 0 8 -24198 -1 -1 0 1 ; #X floatatom 33 324 5 0 0 0 - - -; ! #X obj 103 290 tgl 20 0 empty empty empty 0 -6 0 8 -24198 -1 -1 0 100 ! ; #X floatatom 103 324 5 0 0 0 - - -; #X obj 173 290 tgl 20 0 empty empty empty 0 -6 0 8 -24198 -1 -1 0 9e-22 --- 13,21 ---- #X text 11 217 By default , a toggle outputs 1 for on , but you can change that to any number by selecting the "Properties" dialog.; ! #X obj 33 290 tgl 20 0 empty empty empty 0 -6 0 8 -24198 -1 -1 1 1 ; #X floatatom 33 324 5 0 0 0 - - -; ! #X obj 103 290 tgl 20 0 empty empty empty 0 -6 0 8 -24198 -1 -1 100 ! 100; #X floatatom 103 324 5 0 0 0 - - -; #X obj 173 290 tgl 20 0 empty empty empty 0 -6 0 8 -24198 -1 -1 0 9e-22 *************** *** 39,44 **** ; #X floatatom 523 324 5 0 0 0 - - -; ! #X connect 1 0 4 0; ! #X connect 2 0 1 0; #X connect 9 0 10 0; #X connect 11 0 12 0; --- 37,44 ---- ; #X floatatom 523 324 5 0 0 0 - - -; ! #X text 186 171 bangs once every second (1000ms); ! #X obj 160 145 metro 1000; ! #X connect 1 0 24 0; ! #X connect 7 0 8 0; #X connect 9 0 10 0; #X connect 11 0 12 0; *************** *** 48,50 **** #X connect 19 0 20 0; #X connect 21 0 22 0; ! #X connect 23 0 24 0; --- 48,50 ---- #X connect 19 0 20 0; #X connect 21 0 22 0; ! #X connect 24 0 3 0;
Index: 22.Example-all_just_data.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/22.Example-all_just_data.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 22.Example-all_just_data.pd 13 Apr 2006 05:04:52 -0000 1.1 --- 22.Example-all_just_data.pd 14 Apr 2006 14:53:42 -0000 1.2 *************** *** 1,7 **** ! #N canvas 585 87 502 438 10; ! #X obj 180 406 import unauthorized Gem; #X obj 154 102 grid grid1 200 0 199 200 0 199 1 1 1 10 10 113 347; #X obj 25 39 pddp/dsp; ! #N canvas 446 285 662 482 guts 0; #X obj 20 10 inlet; #X obj 275 14 inlet; --- 1,7 ---- ! #N canvas 10 40 624 464 10; ! #X obj 177 265 import unauthorized Gem; #X obj 154 102 grid grid1 200 0 199 200 0 199 1 1 1 10 10 113 347; #X obj 25 39 pddp/dsp; ! #N canvas 10 40 620 460 guts 0; #X obj 20 10 inlet; #X obj 275 14 inlet;
Index: 16.atoms.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/16.atoms.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 16.atoms.pd 13 Apr 2006 05:04:52 -0000 1.1 --- 16.atoms.pd 14 Apr 2006 14:53:42 -0000 1.2 *************** *** 1,3 **** ! #N canvas 546 135 614 464 12; #X obj 10 12 cnv 15 400 40 empty empty atoms 20 12 0 24 -228992 -66577 0; --- 1,3 ---- ! #N canvas 10 40 620 460 12; #X obj 10 12 cnv 15 400 40 empty empty atoms 20 12 0 24 -228992 -66577 0;
Index: 05.connections.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/05.connections.pd,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** 05.connections.pd 13 Apr 2006 05:04:52 -0000 1.2 --- 05.connections.pd 14 Apr 2006 14:53:42 -0000 1.3 *************** *** 1,3 **** ! #N canvas 576 160 660 453 12; #X text 12 132 Pd patches are always running and changes take effect immediately.; --- 1,3 ---- ! #N canvas 10 40 628 468 12; #X text 12 132 Pd patches are always running and changes take effect immediately.; *************** *** 9,18 **** #X obj 24 248 random 100; #X text 70 183 <-- click here to start; ! #X text 66 299 connect by clicking on the outlet of the top number box , then drag and drop on the inlet of the bottom number box; ! #X text 30 299 ^--; #X obj 8 10 cnv 15 400 40 empty empty connections 20 12 0 24 -228992 -66577 0; - #X text 195 238 next , make sure you are in edit mode; #X obj 39 418 pddp/pddplink http://crca.ucsd.edu/~msp/Pd_documentation/x2.htm#s2.6 ; --- 9,17 ---- #X obj 24 248 random 100; #X text 70 183 <-- click here to start; ! #X text 58 299 connect by clicking on the outlet of the top number box , then drag and drop on the inlet of the bottom number box; ! #X text 28 299 ^--; #X obj 8 10 cnv 15 400 40 empty empty connections 20 12 0 24 -228992 -66577 0; #X obj 39 418 pddp/pddplink http://crca.ucsd.edu/~msp/Pd_documentation/x2.htm#s2.6 ; *************** *** 22,25 **** --- 21,25 ---- , called cords or cables. Connections are always made from the inlet to the outlet since that is the direction data flows in Pd.; + #X text 195 238 next , make sure you are in edit mode!; #X connect 3 0 4 0; #X connect 4 0 5 0;
Index: 07.EXERCISE-make_your_first_patch.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/07.EXERCISE-make_your_first_patch.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 07.EXERCISE-make_your_first_patch.pd 13 Apr 2006 05:04:52 -0000 1.1 --- 07.EXERCISE-make_your_first_patch.pd 14 Apr 2006 14:53:42 -0000 1.2 *************** *** 1,11 **** ! #N canvas 359 93 686 506 12; #X obj 8 10 cnv 15 600 40 empty empty EXERCISE-make_your_first_patch 20 12 0 24 -262131 -66577 0; #X text 15 71 Its time to make your first patch. Follow the instructions on the right:; ! #X text 204 196 2- make a new object box , in it , type: symbol; ! #X text 204 235 3- make a new symbol box; ! #X text 204 275 4- connect the message box to the object box; ! #X text 204 315 5- connect the object box to the symbol box; ! #X text 203 353 6- click the message box , and viola!; ! #X text 204 159 1- make a message box , in it , type: servus; --- 1,11 ---- ! #N canvas 10 40 624 464 12; #X obj 8 10 cnv 15 600 40 empty empty EXERCISE-make_your_first_patch 20 12 0 24 -262131 -66577 0; #X text 15 71 Its time to make your first patch. Follow the instructions on the right:; ! #X text 166 196 2- make a new object box , in it , type: symbol; ! #X text 166 235 3- make a new symbol box; ! #X text 166 275 4- connect the message box to the object box; ! #X text 166 315 5- connect the object box to the symbol box; ! #X text 165 353 6- click the message box , and viola!; ! #X text 166 159 1- make a message box , in it , type: servus;
Index: 11.hot_and_cold_inlets.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/11.hot_and_cold_inlets.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 11.hot_and_cold_inlets.pd 13 Apr 2006 05:04:52 -0000 1.1 --- 11.hot_and_cold_inlets.pd 14 Apr 2006 14:53:42 -0000 1.2 *************** *** 1,14 **** ! #N canvas 205 66 683 545 12; ! #X obj 19 243 +; ! #X floatatom 19 272 5 0 0 0 - - -; ! #X msg 19 179 1; ! #X msg 36 215 5; ! #X text 11 56 For most objects in Pd , the leftmost inlet is the "hot" inlet. This means that it will output something whenever it receives data on the "hot" inlet.; ! #X text 12 116 All other inlets are generally "cold" inlets , which ! merely store the data they receive until input on the "hot" inlet causes ! the object to do its thing.; ! #X text 85 216 2) click this and there will be no new output; #X obj 181 412 +; #X floatatom 181 441 5 0 0 0 - - -; --- 1,11 ---- ! #N canvas 10 40 628 468 12; ! #X obj 19 252 +; ! #X floatatom 19 281 5 0 0 0 - - -; ! #X msg 19 188 1; ! #X msg 36 224 5; ! #X text 11 54 For most objects in Pd , the leftmost inlet is the "hot" inlet. This means that it will output something whenever it receives data on the "hot" inlet.; ! #X text 75 224 2) click this and there will be no new output; #X obj 181 412 +; #X floatatom 181 441 5 0 0 0 - - -; *************** *** 23,44 **** #X msg 274 337 5; #X msg 314 337 6; - #X text 85 248 3) now click the [1( message box , and you get a new - output; #X text 17 462 Notice that the number is stored in the "cold" inlet until you change it. For example , if you click [4( , then click [1( , [2( , and [3( , you will see that 1 , 2 , and 3 are all added to 4; ! #X text 85 184 1) click this first , and [+ ] immediately outputs a 1; #X obj 6 8 cnv 15 400 40 empty empty hot_and_cold_inlets 20 12 0 24 -228992 -66577 0; #X connect 0 0 1 0; #X connect 2 0 0 0; #X connect 3 0 0 1; ! #X connect 7 0 8 0; ! #X connect 9 0 7 0; ! #X connect 13 0 7 0; ! #X connect 14 0 7 0; ! #X connect 15 0 7 1; ! #X connect 16 0 7 1; ! #X connect 17 0 7 1; --- 20,44 ---- #X msg 274 337 5; #X msg 314 337 6; #X text 17 462 Notice that the number is stored in the "cold" inlet until you change it. For example , if you click [4( , then click [1( , [2( , and [3( , you will see that 1 , 2 , and 3 are all added to 4; ! #X text 75 192 1) click this first , and [+ ] immediately outputs a 1; #X obj 6 8 cnv 15 400 40 empty empty hot_and_cold_inlets 20 12 0 24 -228992 -66577 0; + #X text 10 111 All other inlets are generally "cold" inlets , which + just store the data. When the object receives input on the "hot" inlet + , the object with read the data from all the inlets and do its thing. + ; + #X text 75 256 3) now click the [1( message box; #X connect 0 0 1 0; #X connect 2 0 0 0; #X connect 3 0 0 1; ! #X connect 6 0 7 0; ! #X connect 8 0 6 0; ! #X connect 12 0 6 0; ! #X connect 13 0 6 0; ! #X connect 14 0 6 1; ! #X connect 15 0 6 1; ! #X connect 16 0 6 1;
Index: 18.selectors.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/18.selectors.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 18.selectors.pd 13 Apr 2006 05:04:52 -0000 1.1 --- 18.selectors.pd 14 Apr 2006 14:53:42 -0000 1.2 *************** *** 1,6 **** ! #N canvas 231 101 638 461 12; #X obj 8 -33 cnv 15 400 40 empty empty selectors 20 12 0 24 -228992 -66577 0; ! #N canvas 328 337 454 304 object 0; #X obj 79 36 inlet; #X obj 86 270 outlet; --- 1,6 ---- ! #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; ! #N canvas 10 40 620 460 object 0; #X obj 79 36 inlet; #X obj 86 270 outlet; *************** *** 10,27 **** #X connect 3 0 1 0; #X connect 3 1 2 0; ! #X restore 157 211 pd object; ! #X floatatom 157 264 5 0 0 0 - - -; ! #X floatatom 242 264 5 0 0 0 - - -; ! #X msg 189 165 output-right 309; ! #X msg 156 115 output-left 8675; #X text 9 24 Every message has a selector. The selector is the first element in the message. It tells the object which receives that message what to do with it. A selector is basically like a command or a function. ; ! #X text 23 304 Here's the technical definition:; ! #X text 23 335 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 connect 1 0 2 0; #X connect 1 1 3 0; --- 10,29 ---- #X connect 3 0 1 0; #X connect 3 1 2 0; ! #X restore 51 224 pd object; ! #X floatatom 51 277 5 0 0 0 - - -; ! #X floatatom 136 277 5 0 0 0 - - -; ! #X msg 83 178 output-right 309; ! #X msg 50 128 output-left 8675; #X text 9 24 Every message has a selector. The selector is the first element in the message. It tells the object which receives that message what to do with it. A selector is basically like a command or a function. ; ! #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;
Index: 26.sliders.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/26.sliders.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 26.sliders.pd 13 Apr 2006 23:48:34 -0000 1.1 --- 26.sliders.pd 14 Apr 2006 14:53:42 -0000 1.2 *************** *** 1,3 **** ! #N canvas 52 115 624 449 12; #X obj 10 10 cnv 15 400 40 empty empty sliders 20 12 0 24 -228992 -66577 0; --- 1,3 ---- ! #N canvas 10 40 624 464 12; #X obj 10 10 cnv 15 400 40 empty empty sliders 20 12 0 24 -228992 -66577 0; *************** *** 8,16 **** -1 -1 0 1; #X floatatom 338 248 5 0 0 0 - - -; ! #X floatatom 230 412 5 0 0 0 - - -; ! #X msg 333 349 1000; ! #X msg 248 349 100; ! #X msg 204 349 60; ! #X msg 290 349 127; #X text 9 61 Sliders are generally useful for controlling things over a range of numbers , like a color or loudness.; --- 8,16 ---- -1 -1 0 1; #X floatatom 338 248 5 0 0 0 - - -; ! #X floatatom 253 423 5 0 0 0 - - -; ! #X msg 356 360 1000; ! #X msg 271 360 100; ! #X msg 227 360 60; ! #X msg 313 360 127; #X text 9 61 Sliders are generally useful for controlling things over a range of numbers , like a color or loudness.; *************** *** 21,33 **** #X text 361 160 commonly used; #X text 361 181 range; ! #X obj 234 389 hsl 128 15 0 127 0 0 empty empty empty -2 -6 0 8 -262144 -1 -1 0 1; ! #X msg 162 349 0; ! #X msg 117 349 -23; #X text 16 276 They act very similarly to number boxes , except they show their value graphically rather that with numbers. One difference is that sliders always limit the range of numbers that can pass thru: ; ! #X obj 211 413 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X connect 1 0 2 0; --- 21,33 ---- #X text 361 160 commonly used; #X text 361 181 range; ! #X obj 257 400 hsl 128 15 0 127 0 0 empty empty empty -2 -6 0 8 -262144 -1 -1 0 1; ! #X msg 185 360 0; ! #X msg 140 360 -23; #X text 16 276 They act very similarly to number boxes , except they show their value graphically rather that with numbers. One difference is that sliders always limit the range of numbers that can pass thru: ; ! #X obj 234 424 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X connect 1 0 2 0;
Index: 23.EXERCISE-hmmm.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/23.EXERCISE-hmmm.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 23.EXERCISE-hmmm.pd 13 Apr 2006 05:04:52 -0000 1.1 --- 23.EXERCISE-hmmm.pd 14 Apr 2006 14:53:42 -0000 1.2 *************** *** 1,4 **** ! #N canvas 333 243 686 482 12; ! #N canvas 414 102 546 555 guts 0; #X msg 280 45 ; pd filename exercise-patch.pd /tmp ; #N canvas ; #X pop 1 ;; --- 1,4 ---- ! #N canvas 10 40 624 464 12; ! #N canvas 10 40 620 460 guts 0; #X msg 280 45 ; pd filename exercise-patch.pd /tmp ; #N canvas ; #X pop 1 ;; *************** *** 20,24 **** #X obj 21 187 delay 2000; #X obj 10 245 delay 2000; ! #N canvas 261 307 459 387 connection-effect 0; #X obj 186 312 dac~; #X obj 72 233 osc~ 1000; --- 20,24 ---- #X obj 21 187 delay 2000; #X obj 10 245 delay 2000; ! #N canvas 10 40 620 460 connection-effect 0; #X obj 186 312 dac~; #X obj 72 233 osc~ 1000; *************** *** 85,95 **** #X connect 21 0 22 0; #X connect 22 0 8 0; ! #X restore 233 269 pd guts; ! #X msg 233 242 solve; ! #X text 32 64 In the exercise patch , connect the existing objects so that you can control the frequency of the oscillator and hear the resulting sound.; ! #X text 35 131 If you want help , click the solve message below.; ! #X msg 298 242 try again; #X obj 11 10 cnv 15 600 40 empty empty EXERCISE-make_your_first_patch 20 12 0 24 -262131 -66577 0; --- 85,95 ---- #X connect 21 0 22 0; #X connect 22 0 8 0; ! #X restore 220 269 pd guts; ! #X msg 220 242 solve; ! #X text 19 64 In the exercise patch , connect the existing objects so that you can control the frequency of the oscillator and hear the resulting sound.; ! #X text 22 131 If you want help , click the solve message below.; ! #X msg 285 242 try again; #X obj 11 10 cnv 15 600 40 empty empty EXERCISE-make_your_first_patch 20 12 0 24 -262131 -66577 0;
Index: 21.outlet_order.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/21.outlet_order.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 21.outlet_order.pd 13 Apr 2006 05:04:52 -0000 1.1 --- 21.outlet_order.pd 14 Apr 2006 14:53:42 -0000 1.2 *************** *** 1,3 **** ! #N canvas 298 70 632 448 12; #X text 223 149 <-- click here ,; #X obj 8 10 cnv 15 400 40 empty empty outlet_order 20 12 0 24 -228992 --- 1,3 ---- ! #N canvas 10 40 620 460 12; #X text 223 149 <-- click here ,; #X obj 8 10 cnv 15 400 40 empty empty outlet_order 20 12 0 24 -228992 *************** *** 12,16 **** #X text 15 80 Just like the flow of programming in Pd , the data should be output from right to left.; ! #N canvas 0 22 454 304 spread 0; #X obj 68 2 inlet; #X obj 38 235 outlet; --- 12,16 ---- #X text 15 80 Just like the flow of programming in Pd , the data should be output from right to left.; ! #N canvas 10 40 620 460 spread 0; #X obj 68 2 inlet; #X obj 38 235 outlet;
Index: 29.nervous_guis.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/29.nervous_guis.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 29.nervous_guis.pd 13 Apr 2006 23:48:34 -0000 1.1 --- 29.nervous_guis.pd 14 Apr 2006 14:53:42 -0000 1.2 *************** *** 1,27 **** ! #N canvas 10 40 632 457 12; #X obj 10 10 cnv 15 400 40 empty empty nervous_guis 20 12 0 24 -228992 -66577 0; ! #X obj 486 20 tgl 20 1 empty start_nervously1 start_it 8 -8 0 10 -24198 -1 -250685 0 1; ! #X obj 138 200 bng 15 1200 50 0 empty nerv_bng bang 8 -8 0 10 -262144 ! -55405 -1; ! #X obj 132 385 hsl 127 15 0 127 0 0 empty nerv_hsl h-slider 8 -8 0 10 -262144 -1 -1 0 1; ! #X obj 364 184 tgl 15 1 empty nerv_tgl toggle 8 -8 0 10 -262144 -1 ! -1 1 1; ! #X obj 359 305 vsl 15 127 0 127 0 0 empty nerv_vsl v-slider 8 -8 0 10 -262144 -1 -1 0 1; ! #N canvas 135 99 386 473 control 0; #X obj 19 21 inlet; ! #X obj 19 50 t b f; ! #X obj 19 153 del 900; ! #X obj 19 212 del 900; ! #X obj 19 93 del 100; ! #X obj 19 283 del 900; ! #X obj 33 125 f; ! #X obj 33 180 f; ! #X obj 33 245 f; ! #X obj 33 309 f; ! #N canvas 280 166 794 432 bng 0; #X obj 114 260 - 0; #X obj 148 258 f; --- 1,18 ---- ! #N canvas 10 40 632 472 12; #X obj 10 10 cnv 15 400 40 empty empty nervous_guis 20 12 0 24 -228992 -66577 0; ! #X obj 23 146 tgl 20 1 empty start_nervously1 empty 8 -8 0 10 -24198 -1 -250685 0 1; ! #X obj 255 165 bng 15 1200 50 0 empty nerv_bng bang 8 -8 0 10 -262144 ! -1 -1; ! #X obj 250 343 hsl 127 15 0 127 0 0 empty nerv_hsl h-slider 8 -8 0 10 -262144 -1 -1 0 1; ! #X obj 443 164 tgl 15 1 empty nerv_tgl toggle 8 -8 0 10 -262144 -1 ! -1 0 1; ! #X obj 482 282 vsl 15 127 0 127 0 0 empty nerv_vsl v-slider 8 -8 0 10 -262144 -1 -1 0 1; ! #N canvas 13 42 258 427 control 0; #X obj 19 21 inlet; ! #N canvas 10 40 632 472 bng 0; #X obj 114 260 - 0; #X obj 148 258 f; *************** *** 35,39 **** #X obj 79 145 % 50; #X obj 64 289 pack 0 0; ! #X obj 85 53 t b b b; #X obj 234 368 pack 0 0 0; #X obj 250 29 metro 2000; --- 26,30 ---- #X obj 79 145 % 50; #X obj 64 289 pack 0 0; ! #X obj 84 60 t b b b; #X obj 234 368 pack 0 0 0; #X obj 250 29 metro 2000; *************** *** 41,45 **** #X obj 445 168 + 8; #X obj 445 145 % 120; ! #X obj 84 32 metro 100; #X obj 234 261 random 1.67772e+07; #X obj 266 283 random 1.67772e+07; --- 32,36 ---- #X obj 445 168 + 8; #X obj 445 145 % 120; ! #X obj 84 35 metro 100; #X obj 234 261 random 1.67772e+07; #X obj 266 283 random 1.67772e+07; *************** *** 88,93 **** #X connect 27 0 12 1; #X connect 28 0 12 2; ! #X restore 114 143 pd bng; ! #N canvas 139 89 794 432 tgl 0; #X obj 114 260 - 0; #X obj 148 258 f; --- 79,84 ---- #X connect 27 0 12 1; #X connect 28 0 12 2; ! #X restore 52 130 pd bng; ! #N canvas 10 40 620 460 tgl 0; #X obj 114 260 - 0; #X obj 148 258 f; *************** *** 154,159 **** #X connect 27 0 22 1; #X connect 28 0 22 2; ! #X restore 114 198 pd tgl; ! #N canvas 322 99 794 432 hsl 0; #X obj 114 260 - 0; #X obj 148 258 f; --- 145,150 ---- #X connect 27 0 22 1; #X connect 28 0 22 2; ! #X restore 33 217 pd tgl; ! #N canvas 10 40 620 460 hsl 0; #X obj 114 260 - 0; #X obj 148 258 f; *************** *** 234,239 **** #X connect 32 0 27 1; #X connect 33 0 27 2; ! #X restore 112 263 pd hsl; ! #N canvas 148 132 794 432 vsl 0; #X obj 114 260 - 0; #X obj 148 258 f; --- 225,230 ---- #X connect 32 0 27 1; #X connect 33 0 27 2; ! #X restore 33 312 pd hsl; ! #N canvas 10 40 620 460 vsl 0; #X obj 114 260 - 0; #X obj 148 258 f; *************** *** 314,337 **** #X connect 33 0 28 1; #X connect 34 0 28 2; ! #X restore 113 327 pd vsl; ! #X connect 0 0 1 0; ! #X connect 1 0 4 0; ! #X connect 1 1 6 1; ! #X connect 1 1 7 1; ! #X connect 1 1 8 1; ! #X connect 1 1 9 1; ! #X connect 2 0 3 0; ! #X connect 2 0 7 0; ! #X connect 3 0 5 0; ! #X connect 3 0 8 0; ! #X connect 4 0 2 0; ! #X connect 4 0 6 0; ! #X connect 5 0 9 0; #X connect 6 0 10 0; ! #X connect 7 0 11 0; #X connect 8 0 12 0; ! #X connect 9 0 13 0; ! #X restore 486 46 pd control; ! #X text 17 88 You can dynamically control just about everything about ! most GUI objects.; #X connect 1 0 6 0; --- 305,338 ---- #X connect 33 0 28 1; #X connect 34 0 28 2; ! #X restore 32 395 pd vsl; ! #X obj 19 80 delay 100; ! #X obj 19 163 delay 900; ! #X obj 19 252 delay 900; ! #X obj 19 343 delay 900; ! #X obj 33 285 float; ! #X obj 33 190 float; ! #X obj 52 107 float; ! #X obj 32 369 float; ! #X obj 19 50 trigger bang float; ! #X connect 0 0 13 0; ! #X connect 5 0 6 0; ! #X connect 5 0 11 0; ! #X connect 6 0 7 0; #X connect 6 0 10 0; ! #X connect 7 0 8 0; ! #X connect 7 0 9 0; #X connect 8 0 12 0; ! #X connect 9 0 3 0; ! #X connect 10 0 2 0; ! #X connect 11 0 1 0; ! #X connect 12 0 4 0; ! #X connect 13 0 5 0; ! #X connect 13 1 9 1; ! #X connect 13 1 10 1; ! #X connect 13 1 11 1; ! #X connect 13 1 12 1; ! #X restore 23 172 pd control; ! #X text 49 146 <-- start!; ! #X text 17 88 You can programmatically control just about every property ! and behavior of most GUI objects.; #X connect 1 0 6 0;
Index: 10.counters.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/10.counters.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 10.counters.pd 13 Apr 2006 05:04:52 -0000 1.1 --- 10.counters.pd 14 Apr 2006 14:53:42 -0000 1.2 *************** *** 1,6 **** ! #N canvas 400 118 624 449 12; #X obj 10 10 cnv 15 400 40 empty empty counters 20 12 0 24 -228992 -66577 0; ! #X obj 156 362 cnv 15 100 60 empty empty empty 20 12 0 14 -261681 -66577 0; #X obj 174 382 f; --- 1,6 ---- ! #N canvas 10 40 624 464 12; #X obj 10 10 cnv 15 400 40 empty empty counters 20 12 0 24 -228992 -66577 0; ! #X obj 156 362 cnv 15 100 60 empty empty empty 20 12 0 14 -261039 -66577 0; #X obj 174 382 f;
Index: 00.hello_world.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/00.hello_world.pd,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** 00.hello_world.pd 12 Apr 2006 14:20:34 -0000 1.3 --- 00.hello_world.pd 14 Apr 2006 14:53:42 -0000 1.4 *************** *** 1,3 **** ! #N canvas 228 159 632 444 12; #X msg 235 167 Hello world!; #X text 238 216 <-- connection , aka "cord"; --- 1,5 ---- ! #N canvas 10 40 628 468 12; ! #X obj 230 162 cnv 15 140 30 empty empty empty 20 12 0 14 -225271 -66577 ! 0; #X msg 235 167 Hello world!; #X text 238 216 <-- connection , aka "cord"; *************** *** 10,15 **** #X obj 234 265 print; #X text 289 266 <-- object box; ! #X text 89 357 Now look in the Pd window to see the result.; #X text 359 168 <-- message box; #X text 101 111 Click on the box with "Hello world!" in it:; ! #X connect 0 0 6 0; --- 12,21 ---- #X obj 234 265 print; #X text 289 266 <-- object box; ! #X text 73 319 Now look in the Pd window to see the result.; #X text 359 168 <-- message box; #X text 101 111 Click on the box with "Hello world!" in it:; ! #X text 16 363 Whenever you see the [print] box , that means that ! stuff will be printed to the Pd window.; ! #X obj 133 415 print; ! #X text 198 415 prints to the Pd window.; ! #X connect 1 0 7 0;
Index: 15.inlets_and_outlets.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/15.inlets_and_outlets.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 15.inlets_and_outlets.pd 7 Apr 2006 00:15:27 -0000 1.1 --- 15.inlets_and_outlets.pd 14 Apr 2006 14:53:42 -0000 1.2 *************** *** 1,4 **** ! #N canvas 520 22 615 396 12; ! #N canvas 0 22 470 320 object 0; #X obj 175 99 inlet; #X obj 174 206 outlet; --- 1,4 ---- ! #N canvas 10 40 620 460 12; ! #N canvas 10 40 620 460 object 0; #X obj 175 99 inlet; #X obj 174 206 outlet; *************** *** 6,10 **** #X connect 0 0 1 0; #X restore 366 208 pd object; ! #N canvas 0 22 618 378 another 0; #X obj 17 94 inlet; #X obj 431 320 outlet; --- 6,10 ---- #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;
Index: 06.messages.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/06.messages.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 06.messages.pd 13 Apr 2006 05:04:52 -0000 1.1 --- 06.messages.pd 14 Apr 2006 14:53:42 -0000 1.2 *************** *** 1,7 **** ! #N canvas 364 149 628 453 12; #X obj 10 10 cnv 15 400 40 empty empty messages 20 12 0 24 -228992 -66577 0; #X msg 354 162 say hello; ! #N canvas 0 22 466 316 myObject 0; #X obj 70 24 inlet; #X obj 68 243 outlet; --- 1,7 ---- ! #N canvas 10 40 624 464 12; #X obj 10 10 cnv 15 400 40 empty empty messages 20 12 0 24 -228992 -66577 0; #X msg 354 162 say hello; ! #N canvas 10 40 620 460 myObject 0; #X obj 70 24 inlet; #X obj 68 243 outlet; *************** *** 31,35 **** #X text 124 128 data; #X text 359 127 commands; - #X text 18 394 For more on messages:; #X text 19 341 All communication within Pd is in the form of messages , including when the user is controlling the program.; --- 31,34 ---- *************** *** 40,42 **** #X connect 5 0 4 0; #X connect 9 0 2 0; ! #X connect 16 0 4 0; --- 39,41 ---- #X connect 5 0 4 0; #X connect 9 0 2 0; ! #X connect 15 0 4 0;
Index: 19.subpatches.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/19.subpatches.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 19.subpatches.pd 13 Apr 2006 05:04:52 -0000 1.1 --- 19.subpatches.pd 14 Apr 2006 14:53:42 -0000 1.2 *************** *** 1,3 **** ! #N canvas 211 67 624 449 12; #X obj 10 10 cnv 15 400 40 empty empty subpatches 20 12 0 24 -228992 -66577 0; --- 1,3 ---- ! #N canvas 10 40 624 464 12; #X obj 10 10 cnv 15 400 40 empty empty subpatches 20 12 0 24 -228992 -66577 0; *************** *** 6,10 **** should make encapsulated your ideas. Subpatches are the easiest way to do this.; ! #N canvas 394 144 474 324 what's 0; #X obj 140 91 loadbang; #X obj 139 149 float; --- 6,10 ---- should make encapsulated your ideas. Subpatches are the easiest way to do this.; ! #N canvas 10 40 620 460 what's 0; #X obj 140 91 loadbang; #X obj 139 149 float; *************** *** 19,26 **** #X connect 2 0 1 1; #X connect 4 0 1 0; ! #X restore 192 193 pd what's in here?; #X text 19 271 To make a subpatch , create an object that started with the word "pd" , then type anything after that to identify it. ! ; ! #X text 17 325 A subpatch is part of the same file , its just a way ! of organizing the logic of a program.; --- 19,27 ---- #X connect 2 0 1 1; #X connect 4 0 1 0; ! #X restore 97 190 pd what's in here?; ! #X text 26 414 A subpatch is part of the same file , its just a way ! of organizing the logic of a program.; #X text 19 271 To make a subpatch , create an object that started with the word "pd" , then type anything after that to identify it. ! Try making one below:; ! #X text 179 214 ^-- right-click here and select "Open";
Index: 28.gui_objects.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/28.gui_objects.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 28.gui_objects.pd 13 Apr 2006 23:48:34 -0000 1.1 --- 28.gui_objects.pd 14 Apr 2006 14:53:42 -0000 1.2 *************** *** 1,48 **** ! #N canvas 312 62 750 592 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 0 1; ! #X obj 191 278 hsl 128 15 0 127 0 0 empty empty empty 20 8 0 8 -262144 -1 -1 0 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 495 419 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 500 71 grid grid1 200 0 199 200 0 199 1 1 1 10 10 570 188; ! #X text 474 51 [unauthorized/grid]; ! #X text 475 395 [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]; ! #X obj 555 305 gcanvas 80 80; ! #X text 483 294 [gcanvas]; --- 1,68 ---- ! #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 ! 0; ! #X obj 11 348 cnv 15 400 100 empty empty empty 20 12 0 14 -261696 -66577 ! 0; ! #X obj 11 57 cnv 15 400 300 empty empty empty 20 12 0 14 -241657 -66577 ! 0; ! #X obj 30 110 bng 15 250 50 0 $1 $1 empty 20 8 0 8 -262144 -1 -1 ! ; ! #X obj 30 142 tgl 15 1.04858e+06 empty $2 empty 20 8 0 8 -262144 -1 -1 0 1; ! #X obj 34 188 vsl 15 128 0 127 0 1.04858e+06 empty $3 empty 20 8 0 8 -262144 -1 -1 0 1; ! #X obj 191 318 hsl 128 15 0 127 0 0 empty empty empty 20 8 0 8 -262144 -1 -1 0 1; ! #X obj 201 289 hdl 15 1 2.6624e+06 8 $5 $5 empty 20 8 192 8 -262144 -1 -1 0; ! #X obj 254 127 vu 15 120 $6 empty 35 8 0 8 -66577 -1 1 0; ! #X obj 111 109 cnv 15 100 60 empty empty [canvas] 20 12 0 14 -233017 -66577 1.04858e+06; ! #X obj 126 189 vdl 15 1 4.79232e+06 8 $9 $9 empty 20 8 192 8 -262144 -1 -1 0; ! #X obj 341 116 nbx 5 14 -1e+37 1e+37 0 0 $5 $5 empty 45 7 0 10 -262144 -1 -1 0 256; ! #X text 17 66 Pd comes with a standard , built-in set of GUI elements , which you can select from the "Put" menu.; ! #X text 17 356 There are also some OS-native GUI elements available ; ! #X obj 49 404 button OK; ! #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]; ! #X text 250 107 [vu]; ! #X text 46 109 [bng]; ! #X text 46 141 [tgl]; ! #X text 21 320 [vslider]; ! #X text 325 288 [hradio]; ! #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; ! #X connect 35 1 40 0; ! #X connect 37 0 43 0; ! #X connect 37 1 42 0;
Index: 14.depth_first.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/14.depth_first.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 14.depth_first.pd 13 Apr 2006 05:04:52 -0000 1.1 --- 14.depth_first.pd 14 Apr 2006 14:53:42 -0000 1.2 *************** *** 1,31 **** ! #N canvas 21 40 627 443 12; ! #X obj -43 8 cnv 15 400 40 empty empty depth_first 20 12 0 24 -228992 -66577 0; ! #X obj 258 249 trigger bang bang; ! #X msg 208 358 add2 $1; ! #X msg 207 397 1 2 3 4; ! #X msg 77 254 set; ! #X text 11 254 reset:; ! #X msg 257 215 4; ! #X msg 258 282 3; ! #X msg 423 280 2; ! #X msg 423 315 1; ! #X text 8 398 see result here -->; ! #X obj 258 184 bng 25 250 50 0 empty empty empty 0 -6 0 8 -24198 -1 -1; ! #X text -39 66 Pd processes messages in "depth first". This means the bottom-most message in a chain runs first. Everything below a spot in a chain is run before. As you'll see from the example below , the [4( message actually runs last , since everything below it executed before it.; ! #X connect 1 0 7 0; ! #X connect 1 1 8 0; ! #X connect 2 0 3 0; ! #X connect 4 0 3 0; ! #X connect 6 0 1 0; #X connect 6 0 2 0; #X connect 7 0 2 0; - #X connect 8 0 9 0; #X connect 8 0 2 0; ! #X connect 9 0 2 0; ! #X connect 11 0 6 0; --- 1,33 ---- ! #N canvas 10 40 632 472 12; ! #X obj 10 10 cnv 15 400 40 empty empty depth_first 20 12 0 24 -228992 -66577 0; ! #X obj 265 229 trigger bang bang; ! #X msg 215 338 add2 $1; ! #X msg 84 234 set; ! #X text 18 234 reset:; ! #X msg 264 195 4; ! #X msg 265 262 3; ! #X msg 430 260 2; ! #X msg 430 295 1; ! #X text 15 378 see result here -->; ! #X obj 265 164 bng 25 250 50 0 empty empty empty 0 -6 0 8 -24198 -1 -1; ! #X text 12 66 Pd processes messages in "depth first". This means the bottom-most message in a chain runs first. Everything below a spot in a chain is run before. As you'll see from the example below , the [4( message actually runs last , since everything below it executed before it.; ! #X obj 33 430 pddp/pddplink http://crca.ucsd.edu/~msp/Pd_documentation/x2.htm#s3.2 ! ; ! #X msg 214 377; ! #X connect 1 0 6 0; ! #X connect 1 1 7 0; ! #X connect 2 0 13 0; ! #X connect 3 0 13 0; ! #X connect 5 0 1 0; ! #X connect 5 0 2 0; #X connect 6 0 2 0; + #X connect 7 0 8 0; #X connect 7 0 2 0; #X connect 8 0 2 0; ! #X connect 10 0 5 0;
Index: 15.storage_objects.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/15.storage_objects.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 15.storage_objects.pd 13 Apr 2006 05:04:52 -0000 1.1 --- 15.storage_objects.pd 14 Apr 2006 14:53:42 -0000 1.2 *************** *** 1,3 **** ! #N canvas 559 137 638 539 12; #X obj 122 89 symbol; #X obj 63 89 bang; --- 1,4 ---- ! #N canvas 10 40 624 464 12; ! #X obj 277 25 import iemlib; #X obj 122 89 symbol; #X obj 63 89 bang; *************** *** 39,56 **** #X obj 427 89 any; #X obj 477 89 pointer; ! #X connect 8 0 14 0; ! #X connect 9 0 8 1; ! #X connect 10 0 16 0; ! #X connect 11 0 10 1; ! #X connect 12 0 10 0; ! #X connect 13 0 8 1; ! #X connect 18 0 15 0; ! #X connect 21 0 22 0; ! #X connect 23 0 18 0; ! #X connect 24 0 21 0; ! #X connect 25 0 8 0; ! #X connect 26 0 27 0; ! #X connect 28 0 26 0; ! #X connect 29 0 10 0; ! #X connect 30 0 26 1; ! #X connect 31 0 26 1; --- 40,57 ---- #X obj 427 89 any; #X obj 477 89 pointer; ! #X connect 9 0 15 0; ! #X connect 10 0 9 1; ! #X connect 11 0 17 0; ! #X connect 12 0 11 1; ! #X connect 13 0 11 0; ! #X connect 14 0 9 1; ! #X connect 19 0 16 0; ! #X connect 22 0 23 0; ! #X connect 24 0 19 0; ! #X connect 25 0 22 0; ! #X connect 26 0 9 0; ! #X connect 27 0 28 0; ! #X connect 29 0 27 0; ! #X connect 30 0 11 0; ! #X connect 31 0 27 1; ! #X connect 32 0 27 1;
Index: 13.ordering_messages.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/13.ordering_messages.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 13.ordering_messages.pd 13 Apr 2006 05:04:52 -0000 1.1 --- 13.ordering_messages.pd 14 Apr 2006 14:53:42 -0000 1.2 *************** *** 1,5 **** ! #N canvas 542 117 623 439 12; #X obj 10 10 cnv 15 400 40 empty empty ordering_messages 20 12 0 24 -228992 -66577 0; #X msg 395 249 now; #X msg 316 250 this; --- 1,15 ---- ! #N canvas 10 40 628 468 12; #X obj 10 10 cnv 15 400 40 empty empty ordering_messages 20 12 0 24 -228992 -66577 0; + #X text 10 393 look here for the result -->; + #X text 10 62 Officially , the execution order in Pd is undefined. + ; + #X text 10 88 The [trigger] object allows you to specify the order + of messages are sent. If you need to make sure that one thing runs + before another , use [trigger]:; + #X obj 3 174 cnv 15 80 25 empty empty empty 20 12 0 14 -225271 -66577 + 0; + #X obj 142 149 cnv 15 80 25 empty empty empty 20 12 0 14 -225271 -66577 + 0; #X msg 395 249 now; #X msg 316 250 this; *************** *** 7,42 **** #X msg 158 250 sense; #X msg 80 250 !; - #X msg 276 391 sense now this; #X obj 157 292 symbol; #X msg 159 151 bang; ! #X msg 10 177 bang; #X msg 157 316 add2 $1; #X msg 478 248 set; #X obj 160 178 trigger bang bang bang bang bang bang; ! #X text 10 393 look here for the result -->; ! #X text 10 62 Officially , the execution order in Pd is undefined. ! ; ! #X text 10 88 The [trigger] object allows you to specify the order ! of messages are sent. If you need to make sure that one thing runs ! before another , use [trigger]:; ! #X connect 1 0 7 0; ! #X connect 2 0 7 0; ! #X connect 3 0 7 0; ! #X connect 4 0 7 0; ! #X connect 5 0 7 0; ! #X connect 7 0 10 0; ! #X connect 8 0 12 0; ! #X connect 9 0 3 0; ! #X connect 9 0 5 0; #X connect 9 0 11 0; ! #X connect 9 0 4 0; ! #X connect 9 0 1 0; ! #X connect 9 0 2 0; ! #X connect 10 0 6 0; ! #X connect 11 0 6 0; ! #X connect 12 0 5 0; ! #X connect 12 1 4 0; ! #X connect 12 2 3 0; ! #X connect 12 3 2 0; ! #X connect 12 4 1 0; ! #X connect 12 5 11 0; --- 17,46 ---- #X msg 158 250 sense; #X msg 80 250 !; #X obj 157 292 symbol; #X msg 159 151 bang; ! #X msg 19 177 bang; #X msg 157 316 add2 $1; #X msg 478 248 set; #X obj 160 178 trigger bang bang bang bang bang bang; ! #X msg 296 391; ! #X connect 6 0 11 0; ! #X connect 7 0 11 0; ! #X connect 8 0 11 0; #X connect 9 0 11 0; ! #X connect 10 0 11 0; ! #X connect 11 0 14 0; ! #X connect 12 0 16 0; ! #X connect 13 0 8 0; ! #X connect 13 0 10 0; ! #X connect 13 0 15 0; ! #X connect 13 0 9 0; ! #X connect 13 0 6 0; ! #X connect 13 0 7 0; ! #X connect 14 0 17 0; ! #X connect 15 0 17 0; ! #X connect 16 0 10 0; ! #X connect 16 1 9 0; ! #X connect 16 2 8 0; ! #X connect 16 3 7 0; ! #X connect 16 4 6 0; ! #X connect 16 5 15 0;
Index: 09.event_driven_processing.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/09.event_driven_processing.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 09.event_driven_processing.pd 13 Apr 2006 05:04:52 -0000 1.1 --- 09.event_driven_processing.pd 14 Apr 2006 14:53:42 -0000 1.2 *************** *** 1,3 **** ! #N canvas 352 165 632 457 12; #X obj 10 10 cnv 15 400 40 empty empty event_driven_processing 20 12 0 24 -228992 -66577 0; --- 1,3 ---- ! #N canvas 10 40 628 468 12; #X obj 10 10 cnv 15 400 40 empty empty event_driven_processing 20 12 0 24 -228992 -66577 0; *************** *** 6,10 **** until you click on the messages (the bangs at the bottom illustrate that):; ! #X obj 113 324 tgl 20 0 empty empty empty 0 -6 0 8 -24198 -1 -1 0 1 ; #X obj 113 372 float; --- 6,10 ---- until you click on the messages (the bangs at the bottom illustrate that):; ! #X obj 113 324 tgl 20 0 empty empty empty 0 -6 0 8 -24198 -1 -1 1 1 ; #X obj 113 372 float; *************** *** 14,20 **** -1; #X obj 113 348 metro 1000; - #X text 18 265 Pd is always ready to process messages , you don't - need to tell it to run. You can keep things running by sending a stream - of events:; #X obj 384 316 bng 20 250 50 0 empty empty empty 0 -6 0 8 -24198 -1 -1; --- 14,17 ---- *************** *** 28,37 **** #X obj 236 140 cnv 15 80 30 empty empty empty 20 12 0 14 -225271 -66577 0; ! #X obj 399 132 cnv 15 80 30 empty empty empty 20 12 0 14 -225271 -66577 0; #X obj 72 181 + 1; #X floatatom 72 207 5 0 0 0 - - -; #X msg 72 149 1; ! #X msg 237 147 convert; #X obj 237 178 symbol; #X symbolatom 237 206 10 0 0 0 - - -; --- 25,34 ---- #X obj 236 140 cnv 15 80 30 empty empty empty 20 12 0 14 -225271 -66577 0; ! #X obj 404 139 cnv 15 80 30 empty empty empty 20 12 0 14 -225271 -66577 0; #X obj 72 181 + 1; #X floatatom 72 207 5 0 0 0 - - -; #X msg 72 149 1; ! #X msg 237 145 convert; #X obj 237 178 symbol; #X symbolatom 237 206 10 0 0 0 - - -; *************** *** 40,51 **** #X obj 237 233 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; ! #X obj 421 168 until; ! #X msg 421 137 100; ! #X obj 421 198 float; ! #X obj 478 198 + 1; ! #X floatatom 421 226 5 0 0 0 - - -; ! #X obj 421 247 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 277 364 delay 1000; #X connect 2 0 7 0; #X connect 3 0 4 0; --- 37,50 ---- #X obj 237 233 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; ! #X obj 421 176 float; ! #X obj 478 176 + 1; ! #X floatatom 421 204 5 0 0 0 - - -; ! #X obj 421 229 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 277 364 delay 1000; + #X msg 421 144 bang; + #X text 18 265 Pd is always ready to process messages , you don't + need to tell it to run. You can keep things moving by sending a stream + of events:; #X connect 2 0 7 0; #X connect 3 0 4 0; *************** *** 54,74 **** #X connect 5 0 6 0; #X connect 7 0 3 0; #X connect 9 0 10 0; ! #X connect 10 0 11 0; ! #X connect 10 0 12 0; ! #X connect 11 0 10 1; ! #X connect 12 0 13 0; ! #X connect 13 0 31 0; ! #X connect 17 0 18 0; ! #X connect 18 0 23 0; ! #X connect 19 0 17 0; #X connect 20 0 21 0; ! #X connect 21 0 22 0; ! #X connect 22 0 24 0; ! #X connect 25 0 27 0; ! #X connect 26 0 25 0; ! #X connect 27 0 28 0; ! #X connect 27 0 29 0; ! #X connect 28 0 27 1; ! #X connect 29 0 30 0; ! #X connect 31 0 10 0; --- 53,72 ---- #X connect 5 0 6 0; #X connect 7 0 3 0; + #X connect 8 0 9 0; #X connect 9 0 10 0; ! #X connect 9 0 11 0; ! #X connect 10 0 9 1; ! #X connect 11 0 12 0; ! #X connect 12 0 28 0; ! #X connect 16 0 17 0; ! #X connect 17 0 22 0; ! #X connect 18 0 16 0; ! #X connect 19 0 20 0; #X connect 20 0 21 0; ! #X connect 21 0 23 0; ! #X connect 24 0 25 0; ! #X connect 24 0 26 0; ! #X connect 25 0 24 1; ! #X connect 26 0 27 0; ! #X connect 28 0 9 0; ! #X connect 29 0 24 0;
Index: 25.properties.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/25.properties.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 25.properties.pd 13 Apr 2006 23:48:34 -0000 1.1 --- 25.properties.pd 14 Apr 2006 14:53:42 -0000 1.2 *************** *** 1,3 **** ! #N canvas 418 177 624 449 12; #X obj 10 10 cnv 15 400 40 empty empty properties 20 12 0 24 -228992 -66577 0; --- 1,3 ---- ! #N canvas 10 40 620 460 12; #X obj 10 10 cnv 15 400 40 empty empty properties 20 12 0 24 -228992 -66577 0;
Index: 27.guis.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/27.guis.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 27.guis.pd 13 Apr 2006 23:48:34 -0000 1.1 --- 27.guis.pd 14 Apr 2006 14:53:42 -0000 1.2 *************** *** 1,813 **** ! #N canvas 153 19 568 572 10; ! #X obj -4 -4 cnv 15 600 700 empty empty gui-INTRO 237 20 2 14 -261819 ! -143491 0; ! #X text 101 4 bng; ! #X obj 456 313 vsl 15 128 0 127 0 0 empty empty default_15x128 8 -8 ! 0 8 -262144 -1 -1 0 1; ! #X obj 354 42 tgl 100 1 empty empty 100_pix 8 -8 0 8 -250685 -24198 ! -42246 1 1; ! #X obj 57 251 hsl 128 15 0 127 0 0 empty empty default_128x15 8 -8 ! 0 8 -262144 -1 -1 0 1; [...1597 lines suppressed...] ! #X text 279 100 peak; ! #X text 289 63 % cpu; ! #X text 283 305 my_canvas = cnv; ! #X text 312 172 radiobutton = rdb; ! #X text 271 350 R; ! #X text 270 370 E; ! #X text 270 389 A; ! #X text 270 409 D; ! #X text 270 428 M; ! #X text 269 447 E; ! #X connect 17 0 26 0; ! #X connect 21 0 18 0; ! #X connect 21 0 16 0; ! #X connect 21 1 34 0; ! #X connect 21 2 19 0; ! #X connect 22 0 21 0; ! #X connect 27 0 29 0; ! #X connect 54 0 55 0; ! #X connect 55 0 38 0; ! #X connect 55 1 53 0;
Index: TODO =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/TODO,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** TODO 13 Apr 2006 23:48:34 -0000 1.5 --- TODO 14 Apr 2006 14:53:42 -0000 1.6 *************** *** 1,7 ****
! - make object which outputs previous and next files
! - make patch close itself, otherwise: ! - upon [loadbang], wait, then close previous patch
- in pure_data_files.pd, make the patch create [pd clone] dynamically, --- 1,8 ----
! - finish up content in 16.atoms.pd
! - finish up 17.atomic_messages.pd ! ! - make new exercise in 23.EXERCISE.hmmmm
- in pure_data_files.pd, make the patch create [pd clone] dynamically,
Index: 08.bang.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/08.bang.pd,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** 08.bang.pd 13 Apr 2006 05:04:52 -0000 1.3 --- 08.bang.pd 14 Apr 2006 14:53:42 -0000 1.4 *************** *** 1,12 **** ! #N canvas 208 184 605 391 12; ! #X text 13 79 In Pd , "bang" means "do something". What that "something" ! is depends on the object receiving the bang.; #X obj 18 191 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; - #X obj 18 220 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 - ; #X msg 18 269 bang; - #X obj 18 294 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 - ; #X text 40 189 <--bang button; #X text 62 270 <--you can also send "bang" using a message box; --- 1,6 ---- ! #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; #X msg 18 269 bang; #X text 40 189 <--bang button; #X text 62 270 <--you can also send "bang" using a message box; *************** *** 15,18 **** #X obj 8 10 cnv 15 400 40 empty empty bang 20 12 0 24 -228992 -66577 0; ! #X connect 1 0 2 0; ! #X connect 3 0 4 0; --- 9,34 ---- #X obj 8 10 cnv 15 400 40 empty empty bang 20 12 0 24 -228992 -66577 0; ! #X text 13 79 In Pd , "bang" means "do it". What that "it" is depends ! on the object receiving the bang.; ! #X msg 73 349 bang; ! #X obj 73 387 print word; ! #X obj 132 352 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 ! -1; ! #X obj 18 299 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 ! -1; ! #X obj 18 221 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 ! -1; ! #X msg 279 324 bang; ! #X obj 289 398 pddp/print_long; ! #X msg 279 350 send me!; ! #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; ! #X connect 7 0 8 0; ! #X connect 9 0 8 0; ! #X connect 12 0 14 0; ! #X connect 14 0 13 0; ! #X connect 15 0 16 0; ! #X connect 16 0 13 0;
Index: 02.getting_help.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/02.getting_help.pd,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** 02.getting_help.pd 13 Apr 2006 05:04:52 -0000 1.3 --- 02.getting_help.pd 14 Apr 2006 14:53:42 -0000 1.4 *************** *** 1,3 **** ! #N canvas 111 50 654 399 12; #X msg 179 150; #X obj 61 150 trigger; --- 1,3 ---- ! #N canvas 10 40 620 460 12; #X msg 179 150; #X obj 61 150 trigger;
Index: 04.objects.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/04.objects.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 04.objects.pd 7 Apr 2006 00:15:27 -0000 1.1 --- 04.objects.pd 14 Apr 2006 14:53:42 -0000 1.2 *************** *** 1,3 **** ! #N canvas 359 93 607 497 12; #X obj 28 151 float; #X text 10 61 The fundamental building block of a Pd program is the --- 1,3 ---- ! #N canvas 10 40 624 464 12; #X obj 28 151 float; #X text 10 61 The fundamental building block of a Pd program is the *************** *** 19,24 **** -1; #X text 15 329 [bng]; ! #X obj 108 355 vsl 15 128 0 127 0 0 empty empty empty 0 -8 0 8 -262144 ! -1 -1 10000 1; #X text 85 329 [vslider]; #X text 227 331 [hslider]; --- 19,24 ---- -1; #X text 15 329 [bng]; ! #X obj 108 355 vsl 15 80 0 127 0 0 empty empty empty 0 -8 0 8 -262144 ! -1 -1 0 1; #X text 85 329 [vslider]; #X text 227 331 [hslider];
Index: 03.edit_mode.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/03.edit_mode.pd,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** 03.edit_mode.pd 6 Apr 2006 23:56:54 -0000 1.2 --- 03.edit_mode.pd 14 Apr 2006 14:53:42 -0000 1.3 *************** *** 1,3 **** ! #N canvas 307 122 640 467 12; #X obj 8 10 cnv 15 400 40 empty empty edit_mode 20 12 0 24 -228992 -66577 0; --- 1,3 ---- ! #N canvas 10 40 620 460 12; #X obj 8 10 cnv 15 400 40 empty empty edit_mode 20 12 0 24 -228992 -66577 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.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 12.right_to_left_order.pd 13 Apr 2006 05:04:52 -0000 1.1 --- 12.right_to_left_order.pd 14 Apr 2006 14:53:42 -0000 1.2 *************** *** 1,21 **** ! #N canvas 406 232 624 424 12; ! #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 361 then check the Pd window to see the order.; ! #X obj 43 386 pddp/pddplink http://crca.ucsd.edu/~msp/Pd_documentation/x2.htm#s3.3 ; ! #X text 10 110 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 connect 0 0 1 0; #X connect 1 0 4 0; --- 1,21 ---- ! #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; ! #X obj 165 225 trigger bang bang bang; ! #X msg 381 264 1; ! #X msg 273 264 2; ! #X msg 165 264 3; ! #X obj 273 340 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 188 <-- 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 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;
Index: 17.atomic_messages.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/17.atomic_messages.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 17.atomic_messages.pd 13 Apr 2006 05:04:52 -0000 1.1 --- 17.atomic_messages.pd 14 Apr 2006 14:53:42 -0000 1.2 *************** *** 1,3 **** ! #N canvas 384 167 602 456 12; #X obj 10 12 cnv 15 400 40 empty empty atomic_messages 20 12 0 24 -228992 -66577 0; --- 1,3 ---- ! #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;
Index: 01.basic_elements.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/01.basic_elements.pd,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** 01.basic_elements.pd 6 Apr 2006 23:56:54 -0000 1.3 --- 01.basic_elements.pd 14 Apr 2006 14:53:42 -0000 1.4 *************** *** 1,3 **** ! #N canvas 513 86 571 407 12; #X obj 36 141; #X obj 34 91 float; --- 1,3 ---- ! #N canvas 10 40 620 460 12; #X obj 36 141; #X obj 34 91 float;
Index: 20.inlets_and_outlets.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/intro/20.inlets_and_outlets.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 20.inlets_and_outlets.pd 13 Apr 2006 05:04:52 -0000 1.1 --- 20.inlets_and_outlets.pd 14 Apr 2006 14:53:42 -0000 1.2 *************** *** 1,8 **** ! #N canvas 82 134 632 457 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 0 22 707 378 look 0; #X obj 24 34 inlet; #X obj 238 47 inlet; --- 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; *************** *** 26,30 **** #X obj 197 129 bng 20 250 50 0 empty empty empty 0 -6 0 8 -24198 -1 -1; ! #N canvas 120 60 711 382 look 0; #X obj 24 34 inlet; #X obj 334 33 inlet; --- 26,30 ---- #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;