[PD-cvs] doc/tutorials/intro 00.hello_world.pd, NONE, 1.1 04.connections.pd, NONE, 1.1 05.objects.pd, NONE, 1.1 06.make_your_first_patch.pd, NONE, 1.1 07.storage_objects.pd, NONE, 1.1 08.bang.pd, NONE, 1.1 0.all_just_data.pd, 1.1, 1.2 0.controlling_dsp_processing.pd, 1.1, 1.2 0.bang.pd, 1.1, NONE 0.connections.pd, 1.1, NONE 0.hello_world.pd, 1.3, NONE 0.storage_objects.pd, 1.1, NONE objects.pd, 1.1, NONE

Hans-Christoph Steiner eighthave at users.sourceforge.net
Tue Mar 28 07:18:19 CEST 2006


Update of /cvsroot/pure-data/doc/tutorials/intro
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14813

Modified Files:
	0.all_just_data.pd 0.controlling_dsp_processing.pd 
Added Files:
	00.hello_world.pd 04.connections.pd 05.objects.pd 
	06.make_your_first_patch.pd 07.storage_objects.pd 08.bang.pd 
Removed Files:
	0.bang.pd 0.connections.pd 0.hello_world.pd 
	0.storage_objects.pd objects.pd 
Log Message:
made the first series on intros, many left to add...

--- NEW FILE: 08.bang.pd ---
#N canvas 435 180 496 390 10;
#X text 164 19 bang;
#X text 27 47 In Pd \, "bang" means "do something". What that "something"
is depends on the object receiving the bang.;
#X obj 32 159 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 32 188 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1
;
#X msg 32 248 bang;
#X obj 32 273 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X text 54 157 <--bang button;
#X text 76 249 <--you can also send "bang" using a message box;
#X text 28 105 Here \, this toggle changes state when it receives a
bang:;
#X connect 2 0 3 0;
#X connect 4 0 5 0;

--- 0.storage_objects.pd DELETED ---

--- 0.connections.pd DELETED ---

--- 0.hello_world.pd DELETED ---

--- NEW FILE: 07.storage_objects.pd ---
#N canvas 315 88 628 510 12;
#X obj 179 89 symbol;
#X obj 120 89 bang;
#X obj 360 89 f;
#X obj 265 89 float;
#X text 325 89 aka;
#X text 98 58 A storage object stores a value.;
#X text 36 384 If a storage object receives a value on the left inlet
\, then it outputs that value immediately in addition to storing it.
;
#X text 35 254 If a storage object receives a value on the right inlet
\, then it stores that value.;
#X text 28 123 If you bang the left inlet of a storage object \, it
outputs its stored value.;
#X obj 187 165 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 187 188 float;
#X obj 176 297 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 190 328 float;
#X msg 203 297 123;
#X obj 190 451 float;
#X msg 236 425 123;
#X msg 190 426 432;
#X obj 169 427 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X msg 245 296 321;
#X floatatom 190 352 5 0 0 0 - - -;
#X floatatom 187 217 5 0 0 0 - - -;
#X floatatom 190 480 5 0 0 0 - - -;
#X obj 12 13 cnv 15 400 40 empty empty storage_objects 20 12 0 24 -228992
-66577 0;
#X connect 9 0 10 0;
#X connect 10 0 20 0;
#X connect 11 0 12 0;
#X connect 12 0 19 0;
#X connect 13 0 12 1;
#X connect 14 0 21 0;
#X connect 15 0 14 1;
#X connect 16 0 14 0;
#X connect 17 0 14 0;
#X connect 18 0 12 1;

--- 0.bang.pd DELETED ---

--- NEW FILE: 05.objects.pd ---
#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
object. Each object is itself like a tiny program that does a very
specific thing.;
#X text 11 124 These are all objects which store data:;
#X obj 96 151 symbol;
#X obj 174 151 list;
#X text 13 188 With most objects \, you can read the name of the object
in the object box:;
#X obj 16 230 moses;
#X obj 92 230 select;
#X obj 176 230 route;
#X obj 251 230 trigger;
#X text 11 264 GUI objects convert themselves into a GUI element \,
usually some kind of control. In the process \, they often hide the
text name of the object:;
#X obj 27 358 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-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];
#X obj 197 353 hsl 128 15 0 127 0 0 empty empty empty -2 -6 0 8 -262144
-1 -1 0 1;
#X obj 393 351 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X text 382 326 [tgl];
#X obj 8 10 cnv 15 400 40 empty empty objects 20 12 0 24 -228992 -66577
0;

--- NEW FILE: 04.connections.pd ---
#N canvas 250 153 666 425 12;
#X text 14 65 Pd patches are always running and changes take effect
immediately.;
#X floatatom 40 242 5 0 0 0 - - -;
#X floatatom 40 306 5 0 0 0 - - -;
#X obj 39 130 tgl 30 0 empty empty start 2 15 1 12 -24198 -1 -1 1 1
;
#X obj 39 174 metro 100;
#X obj 39 205 random 100;
#X text 85 134 <-- click here to start;
#X text 81 264 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 45 264 ^--;
#X text 87 346 Disconnect the cable by clicking on it to highlight
it \, then press the backspace key on your keyboard.;
#X text 50 25 comment;
#X obj 8 10 cnv 15 400 40 empty empty connections 20 12 0 24 -228992
-66577 0;
#X text 214 190 switch to edit mode;
#X connect 3 0 4 0;
#X connect 4 0 5 0;
#X connect 5 0 1 0;

--- NEW FILE: 00.hello_world.pd ---
#N canvas 228 159 624 436 12;
#X msg 235 167 Hello world!;
#X text 238 216 <-- connection \, aka "cord";
#X text 17 32 In Pd \, programming is done with boxes which are connected
together. The boxes have "inlets" and "outlets" \, where they are connected.
;
#X text 153 265 inlet-->;
#X text 154 158 inlet-->;
#X text 144 178 outlet-->;
#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 connect 0 0 6 0;

--- NEW FILE: 06.make_your_first_patch.pd ---
#N canvas 359 93 674 494 12;
#X obj 8 10 cnv 15 400 40 empty empty make_your_first_patch 20 12 0
24 -228992 -66577 0;
#X text 15 71 Its time to make your first patch. Follow the instructions
on the right:;
#X text 204 195 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 163 439 You are now a Pd patcher!;
#X text 204 159 1 make a message box \, in it \, type any word;

--- objects.pd DELETED ---

Index: 0.all_just_data.pd
===================================================================
RCS file: /cvsroot/pure-data/doc/tutorials/intro/0.all_just_data.pd,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** 0.all_just_data.pd	3 Feb 2006 21:37:03 -0000	1.1
--- 0.all_just_data.pd	28 Mar 2006 05:18:17 -0000	1.2
***************
*** 1,2 ****
! #N canvas 0 22 454 304 10;
! #X text 152 35 Its all just data.;
--- 1,92 ----
! #N canvas 585 87 498 434 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 276 240;
! #X obj 25 39 pddp/dsp;
! #N canvas 446 285 646 466 guts 0;
! #X obj 20 10 inlet;
! #X obj 275 14 inlet;
! #X obj 112 127 osc~;
! #X obj 112 156 *~;
! #X obj 149 98 / 200;
! #X obj 110 185 dac~;
! #X obj 444 54 receive pd;
! #X msg 340 154 create;
! #X msg 310 154 1;
! #X obj 482 215 gemwin;
! #X msg 564 154 0;
! #X msg 504 154 destroy;
! #X obj 517 132 t b b;
! #X obj 311 125 trigger bang bang bang;
! #X obj 444 94 select 1;
! #X obj 444 74 route dsp;
! #X obj 89 229 gemhead;
! #X obj 90 375 sphere 1 20;
! #X obj 91 344 translateXYZ;
! #X obj 93 287 colorRGB 1 1 1 1;
! #X obj 90 314 alpha;
! #X msg 289 192 lighting 1;
! #X obj 418 294 gemhead;
! #X obj 419 359 world_light -120;
! #X obj 228 292 / 25;
! #X obj 30 300 / 25;
! #X obj 228 269 - 100;
! #X obj 29 279 - 100;
! #X obj 181 251 / 200;
! #X obj 53 250 / 200;
! #X msg 394 154 dimen 200 200;
! #X obj 112 51 + 250;
! #X obj 149 137 line~;
! #X msg 149 117 \$1 5;
! #X connect 0 0 4 0;
! #X connect 0 0 27 0;
! #X connect 0 0 29 0;
! #X connect 1 0 26 0;
! #X connect 1 0 28 0;
! #X connect 1 0 31 0;
! #X connect 2 0 3 0;
! #X connect 3 0 5 0;
! #X connect 3 0 5 1;
! #X connect 4 0 33 0;
! #X connect 6 0 15 0;
! #X connect 7 0 9 0;
! #X connect 8 0 9 0;
! #X connect 10 0 9 0;
! #X connect 11 0 9 0;
! #X connect 12 0 11 0;
! #X connect 12 1 10 0;
! #X connect 13 0 8 0;
! #X connect 13 0 21 0;
! #X connect 13 1 7 0;
! #X connect 13 2 30 0;
! #X connect 14 0 13 0;
! #X connect 14 1 12 0;
! #X connect 15 0 14 0;
! #X connect 16 0 19 0;
! #X connect 18 0 17 0;
! #X connect 19 0 20 0;
! #X connect 20 0 18 0;
! #X connect 21 0 9 0;
! #X connect 22 0 23 0;
! #X connect 24 0 18 2;
! #X connect 25 0 18 1;
! #X connect 26 0 24 0;
! #X connect 27 0 25 0;
! #X connect 28 0 19 2;
! #X connect 29 0 19 1;
! #X connect 30 0 9 0;
! #X connect 31 0 2 0;
! #X connect 32 0 3 1;
! #X connect 33 0 32 0;
! #X restore 256 320 pd guts;
! #X text 102 9 Its all just data. Use it however you want!;
! #X text 28 61 ^-- click here to turn it on and off;
! #X obj 154 344 nbx 5 24 -1e+37 1e+37 0 0 empty empty X -15 12 1 18
! -166441 -1 -1 121 256;
! #X obj 348 343 nbx 5 24 -1e+37 1e+37 0 0 empty empty Y -15 12 1 18
! -166441 -1 -1 61 256;
! #X text 14 121 click and drag in;
! #X text 14 137 this box ------->;
! #X connect 1 0 3 0;
! #X connect 1 0 6 0;
! #X connect 1 1 3 1;
! #X connect 1 1 7 0;

Index: 0.controlling_dsp_processing.pd
===================================================================
RCS file: /cvsroot/pure-data/doc/tutorials/intro/0.controlling_dsp_processing.pd,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** 0.controlling_dsp_processing.pd	3 Feb 2006 21:37:03 -0000	1.1
--- 0.controlling_dsp_processing.pd	28 Mar 2006 05:18:17 -0000	1.2
***************
*** 1,16 ****
! #N canvas 361 163 471 494 10;
  #X text 117 189 (screenshot of main Pd window);
! #X msg 26 288 \; pd dsp 1;
! #X msg 93 288 \; pd dsp 0;
  #X text 19 252 As with most programming languages \, in Pd "1" means
  on \, and "0" means off.;
! #X obj 210 283 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
  1;
- #X msg 209 308 \; pd dsp \$1;
  #X text 28 137 To see whether the DSP is on or off \, look at the checkbox
  on the main Pd window. You can also turn the DSP on and off using that
  checkbox.;
! #X obj 344 343 osc~ 250;
! #X obj 330 375 dac~;
  #X text 24 20 You can turn the processing of audio data on and off.
  In order for your patch to run \, you need to make sure that "compute
--- 1,15 ----
! #N canvas 361 163 475 498 10;
  #X text 117 189 (screenshot of main Pd window);
! #X msg 59 321 \; pd dsp 1;
! #X msg 126 321 \; pd dsp 0;
  #X text 19 252 As with most programming languages \, in Pd "1" means
  on \, and "0" means off.;
! #X obj 211 314 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
  1;
  #X text 28 137 To see whether the DSP is on or off \, look at the checkbox
  on the main Pd window. You can also turn the DSP on and off using that
  checkbox.;
! #X obj 370 372 osc~ 250;
! #X obj 356 404 dac~;
  #X text 24 20 You can turn the processing of audio data on and off.
  In order for your patch to run \, you need to make sure that "compute
***************
*** 24,28 ****
  #X text 48 440 on: Ctrl-/;
  #X text 73 84 - TODO: messages are always processed;
! #X connect 4 0 5 0;
! #X connect 7 0 8 0;
! #X connect 7 0 8 1;
--- 23,30 ----
  #X text 48 440 on: Ctrl-/;
  #X text 73 84 - TODO: messages are always processed;
! #X floatatom 211 339 5 0 0 0 - - -;
! #X obj 277 332 pddp/dsp;
! #X text 271 311 [pddp/dsp];
! #X connect 4 0 15 0;
! #X connect 6 0 7 0;
! #X connect 6 0 7 1;





More information about the Pd-cvs mailing list