aboutsummaryrefslogtreecommitdiff
path: root/doc/tutorials/intro/0.hot_and_cold_inlets.pd
diff options
context:
space:
mode:
Diffstat (limited to 'doc/tutorials/intro/0.hot_and_cold_inlets.pd')
-rw-r--r--doc/tutorials/intro/0.hot_and_cold_inlets.pd43
1 files changed, 43 insertions, 0 deletions
diff --git a/doc/tutorials/intro/0.hot_and_cold_inlets.pd b/doc/tutorials/intro/0.hot_and_cold_inlets.pd
new file mode 100644
index 00000000..bb8a674c
--- /dev/null
+++ b/doc/tutorials/intro/0.hot_and_cold_inlets.pd
@@ -0,0 +1,43 @@
+#N canvas 631 161 491 539 10;
+#X text 123 18 "hot" and "cold" inlets;
+#X obj 28 222 +;
+#X floatatom 28 251 5 0 0 0 - - -;
+#X msg 28 158 1;
+#X msg 45 194 5;
+#X text 23 50 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 24 99 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 74 195 2) click this and there will be no new output;
+#X text 74 157 1) click this first \, and [+ ] immediately ouptputs
+a 1;
+#X obj 190 396 +;
+#X floatatom 190 425 5 0 0 0 - - -;
+#X msg 113 331 1;
+#X text 28 304 Try a number of different combinations to see for yourself:
+;
+#X text 223 390 <-- "cold" inlet;
+#X text 72 390 "hot" inlet -->;
+#X msg 143 331 2;
+#X msg 173 331 3;
+#X msg 253 331 4;
+#X msg 283 331 5;
+#X msg 313 331 6;
+#X text 74 227 3) now click the [1( message box \, and you get a new
+output;
+#X text 31 458 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 connect 1 0 2 0;
+#X connect 3 0 1 0;
+#X connect 4 0 1 1;
+#X connect 9 0 10 0;
+#X connect 11 0 9 0;
+#X connect 15 0 9 0;
+#X connect 16 0 9 0;
+#X connect 17 0 9 1;
+#X connect 18 0 9 1;
+#X connect 19 0 9 1;