From 54d61372a2c35f43df7ac398da1a5d7bd37da857 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 13 Apr 2006 05:04:52 +0000 Subject: got the start of a good intro tutorial, but its lacking some good, simple exercises svn path=/trunk/; revision=4897 --- doc/tutorials/intro/11.hot_and_cold_inlets.pd | 44 +++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 doc/tutorials/intro/11.hot_and_cold_inlets.pd (limited to 'doc/tutorials/intro/11.hot_and_cold_inlets.pd') diff --git a/doc/tutorials/intro/11.hot_and_cold_inlets.pd b/doc/tutorials/intro/11.hot_and_cold_inlets.pd new file mode 100644 index 00000000..9f58000b --- /dev/null +++ b/doc/tutorials/intro/11.hot_and_cold_inlets.pd @@ -0,0 +1,44 @@ +#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 - - -; +#X msg 84 337 1; +#X text 15 305 Try a number of different combinations to see for yourself: +; +#X text 215 405 <-- "cold" inlet; +#X text 29 405 "hot" inlet -->; +#X msg 124 337 2; +#X msg 164 337 3; +#X msg 234 337 4; +#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; -- cgit v1.2.1