From 7d3731fb32ee97e4fb30a853e6aa9cbcf135e83c Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 18 Apr 2006 10:10:23 +0000 Subject: wrote script to reorder patches by first number in filename svn path=/trunk/; revision=4933 --- doc/tutorials/intro/22.inlets_and_outlets.pd | 64 ++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 doc/tutorials/intro/22.inlets_and_outlets.pd (limited to 'doc/tutorials/intro/22.inlets_and_outlets.pd') diff --git a/doc/tutorials/intro/22.inlets_and_outlets.pd b/doc/tutorials/intro/22.inlets_and_outlets.pd new file mode 100644 index 00000000..c503c356 --- /dev/null +++ b/doc/tutorials/intro/22.inlets_and_outlets.pd @@ -0,0 +1,64 @@ +#N canvas 10 40 624 464 12; +#X obj 10 10 cnv 15 400 40 empty empty inlets_and_outlets 20 12 0 24 +-228992 -66577 0; +#X text 14 72 When making your own objects and subpatchs \, you can +create inlets and outlets using [inlet] and [outlet].; +#N canvas 10 40 624 464 look 0; +#X obj 24 34 inlet; +#X obj 238 47 inlet; +#X obj 469 41 inlet; +#X obj 251 304 outlet; +#X msg 469 175 I am the third inlet; +#X msg 242 145 I am the second inlet; +#X msg 24 94 I am the first inlet; +#X connect 0 0 6 0; +#X connect 1 0 5 0; +#X connect 2 0 4 0; +#X connect 4 0 3 0; +#X connect 5 0 3 0; +#X connect 6 0 3 0; +#X restore 32 162 pd look inside me; +#X obj 31 202 pddp/print_long; +#X obj 32 129 bng 20 250 50 0 empty empty empty 0 -6 0 8 -24198 -1 +-1; +#X obj 114 129 bng 20 250 50 0 empty empty empty 0 -6 0 8 -24198 -1 +-1; +#X obj 197 129 bng 20 250 50 0 empty empty empty 0 -6 0 8 -24198 -1 +-1; +#N canvas 10 40 640 480 look 0; +#X obj 20 34 inlet; +#X obj 334 33 inlet; +#X obj 528 35 inlet; +#X obj 20 120 trigger bang anything; +#X obj 224 404 outlet; +#X obj 224 266 mapping/tolist; +#X connect 0 0 3 0; +#X connect 1 0 5 0; +#X connect 2 0 5 0; +#X connect 3 0 5 1; +#X connect 3 1 5 0; +#X connect 5 0 4 0; +#X restore 199 376 pd look inside me; +#X obj 198 416 pddp/print_long; +#X msg 200 327 smokin!; +#X msg 281 327 are; +#X msg 363 327 you; +#X text 17 259 The first inlet should be the hot inlet \, even in your +own patches. There are times when you need to make other inlets hot +\, but in general \, its a good rule to stick with.; +#X obj 332 126 cnv 15 220 120 empty empty empty 20 12 0 14 -233017 +-66577 0; +#X obj 347 132 inlet; +#X obj 348 218 outlet; +#X text 402 132 take in data; +#X text 361 173 do some stuff here; +#X text 418 217 output data; +#X connect 2 0 3 0; +#X connect 4 0 2 0; +#X connect 5 0 2 1; +#X connect 6 0 2 2; +#X connect 7 0 8 0; +#X connect 9 0 7 0; +#X connect 10 0 7 1; +#X connect 11 0 7 2; +#X connect 14 0 15 0; -- cgit v1.2.1