#N canvas;
#X text 276 476 this file was last updated for release 0.10.;
#X atom 59 380 0;
#X atom 172 381 0;
#X atom 110 288 0;
#X atom 474 159 0;
#X atom 511 159 0;
#X obj 474 133 +;
#X atom 474 103 0;
#X obj 511 133 +;
#X text 129 22 In Pd \, most objects carry out their functions when they get messages in their rightmost inlets \, and their other inlets are for storing values that can modify the next action. Here \, the "+" object does its thing only when the left-hand input changes.;
#X atom 26 109 0;
#X atom 26 17 0;
#X atom 43 39 0;
#X obj 26 85 +;
#X text 3 64 hot;
#X text 48 64 cold;
#X text 227 102 Here's the downside: drag this--->;
#X text 472 178 good;
#X text 512 178 bad;
#X text 17 147 In Pd you must sometimes think about what order an object is going to get its messages in. If an outlet is connected to more than one inlet it's undefined which inlet will get the cookie first. I've rigged the example above so that the left-hand side box gets its iputs in the good \, right-to-left order \, so that the hot inlet gets hit when all the data are good. The "bad adder" happens to receive its inputs in the wrong order and is perpetually doing its addition before all the data are in. There's an object that exists solely to allow you to control message order explicitly:;
#X obj 59 359 *;
#X obj 172 360 -;
#X text 97 380 square;
#X text 202 381 first difference;
#X obj 110 311 trigger int int;
#X text 21 403 Trigger takes any number of "bang \, " \, "int \, " and "float" arguments and copies its input to its outlets \, in the requested forms \, in right-to-left order. Hook it to two inputs without crossing the wires and you get the expected result. Cross the wires and you get memory.;
#X connect 3 0 24 0;
#X connect 6 0 4 0;
#X connect 7 0 8 0;
#X connect 7 0 8 1;
#X connect 7 0 6 1;
#X connect 7 0 6 0;
#X connect 8 0 5 0;
#X connect 11 0 13 0;
#X connect 12 0 13 1;
#X connect 13 0 10 0;
#X connect 20 0 1 0;
#X connect 21 0 2 0;
#X connect 24 0 20 0;
#X connect 24 0 21 1;
#X connect 24 1 20 1;
#X connect 24 1 21 0;
