From ab6aa980586e7494b631feb0cfdb868b144aff0e Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 10 Apr 2006 18:54:51 +0000 Subject: some more core concepts that need to be ordered svn path=/trunk/; revision=4864 --- doc/tutorials/intro/TEMPLATE.pd | 3 +++ doc/tutorials/intro/depth_first.pd | 31 ++++++++++++++++++++++++++++++ doc/tutorials/intro/multiple_messages.pd | 18 +++++++++++++++++ doc/tutorials/intro/right_to_left_order.pd | 17 ++++++++++++++++ 4 files changed, 69 insertions(+) create mode 100644 doc/tutorials/intro/TEMPLATE.pd create mode 100644 doc/tutorials/intro/depth_first.pd create mode 100644 doc/tutorials/intro/multiple_messages.pd create mode 100644 doc/tutorials/intro/right_to_left_order.pd (limited to 'doc/tutorials/intro') diff --git a/doc/tutorials/intro/TEMPLATE.pd b/doc/tutorials/intro/TEMPLATE.pd new file mode 100644 index 00000000..6d07173b --- /dev/null +++ b/doc/tutorials/intro/TEMPLATE.pd @@ -0,0 +1,3 @@ +#N canvas 21 40 631 447 12; +#X obj -54 8 cnv 15 400 40 empty empty TEMPLATE 20 12 0 24 -228992 +-66577 0; diff --git a/doc/tutorials/intro/depth_first.pd b/doc/tutorials/intro/depth_first.pd new file mode 100644 index 00000000..14bb4062 --- /dev/null +++ b/doc/tutorials/intro/depth_first.pd @@ -0,0 +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; diff --git a/doc/tutorials/intro/multiple_messages.pd b/doc/tutorials/intro/multiple_messages.pd new file mode 100644 index 00000000..2374ad54 --- /dev/null +++ b/doc/tutorials/intro/multiple_messages.pd @@ -0,0 +1,18 @@ +#N canvas 517 97 631 447 12; +#X obj -49 6 cnv 15 400 40 empty empty multiple_messages 20 12 0 24 +-228992 -66577 0; +#X text -42 70 You can send multiple messages in one message box by +separating them with commas:; +#X msg 7 161 1 \, 2 \, 3; +#X text 102 175 these each print on a new line; +#X msg 7 263 first 1 \, second 2 \, third 3; +#X obj 7 308 route first second third; +#X floatatom 7 335 5 0 0 0 - - -; +#X floatatom 85 335 5 0 0 0 - - -; +#X floatatom 163 335 5 0 0 0 - - -; +#X obj 7 195 print; +#X connect 2 0 9 0; +#X connect 4 0 5 0; +#X connect 5 0 6 0; +#X connect 5 1 7 0; +#X connect 5 2 8 0; diff --git a/doc/tutorials/intro/right_to_left_order.pd b/doc/tutorials/intro/right_to_left_order.pd new file mode 100644 index 00000000..bd2522f2 --- /dev/null +++ b/doc/tutorials/intro/right_to_left_order.pd @@ -0,0 +1,17 @@ +#N canvas 298 70 636 452 12; +#X text 196 193 <-- click here \,; +#X obj 126 242 unpack float float float; +#X obj 8 10 cnv 15 400 40 empty empty right_to_left_order 20 12 0 24 +-228992 -66577 0; +#X msg 126 193 3 2 1; +#X text 14 94 Objects in Pd output there data in right-to-left order. +In general \, the flow of data is from top to bottom \, from right +to left.; +#X text 100 356 now look in the Pd window for the output; +#X obj 227 306 print nächste; +#X obj 87 307 print último; +#X obj 378 306 print first; +#X connect 1 0 7 0; +#X connect 1 1 6 0; +#X connect 1 2 8 0; +#X connect 3 0 1 0; -- cgit v1.2.1