From 7686b96d2119d2d70b329a02a8af52792ca2d9f1 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 27 May 2004 16:53:47 +0000 Subject: added a number of sketches for the help structure; most are not close to completion svn path=/trunk/; revision=1770 --- doc/pddp/select-help.pd | 83 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 doc/pddp/select-help.pd (limited to 'doc/pddp/select-help.pd') diff --git a/doc/pddp/select-help.pd b/doc/pddp/select-help.pd new file mode 100644 index 00000000..6c5af823 --- /dev/null +++ b/doc/pddp/select-help.pd @@ -0,0 +1,83 @@ +#N canvas 192 92 972 630 10; +#X floatatom 22 332 0 0 0 0 - - -; +#X msg 156 120 6; +#X msg 119 120 234; +#X floatatom 119 150 0 0 0 0 - - -; +#X msg 121 301 1; +#X msg 89 301 54; +#X obj 22 392 print x1; +#X obj 100 391 print x2; +#X msg 58 301 23; +#X msg 22 302 234; +#X msg 65 120 6; +#X obj 28 180 select 6; +#X msg 28 120 234; +#X obj 28 210 print x1; +#X obj 107 211 print x2; +#X obj 177 391 print x3; +#X obj 255 392 print x4; +#X floatatom 28 150 0 0 0 0 - - -; +#X obj 22 362 select 23 54 1; +#X text 54 31 abbreviation:; +#X obj 150 31 sel; +#X text 20 53 In its simplest form shown below \, Select checks its +input agains the constant "6". If they match \, the first outlet gives +"bang" and otherwise the input is copied to the second outlet. If Select +is used with a single argument \, a second inlet allows you to change +the test value.; +#X text 22 239 You can give several arguments. You get an outlet for +each test value and finally an outlet for values which match none of +them. In this case you don't get inlets to change the test values: +; +#X obj 32 566 print x1; +#X obj 114 567 print x2; +#X msg 34 451 symbol cort; +#X msg 46 476 symbol zack; +#X msg 178 476 symbol cort; +#X msg 184 501 symbol zack; +#X obj 34 539 select cort; +#X msg 308 462 symbol cort; +#X msg 415 462 symbol zack; +#X obj 308 551 print x1; +#X obj 385 551 print x2; +#X obj 308 521 select cort zack; +#X obj 462 551 print x3; +#X msg 413 487 symbol bill; +#X text 24 426 Select can also be used to sort symbols:; +#X text 81 601 see also:; +#X obj 173 603 route; +#X obj 32 10 select; +#X text 92 10 - compare numbers or symbols; +#X text 329 602 updated for Pd version 0.37; +#X obj 820 7 pddp; +#X text 614 589 Miller's help patch:; +#X obj 759 589 help-select; +#X connect 0 0 18 0; +#X connect 1 0 3 0; +#X connect 2 0 3 0; +#X connect 3 0 11 1; +#X connect 4 0 0 0; +#X connect 5 0 0 0; +#X connect 8 0 0 0; +#X connect 9 0 0 0; +#X connect 10 0 17 0; +#X connect 11 0 13 0; +#X connect 11 1 14 0; +#X connect 12 0 17 0; +#X connect 17 0 11 0; +#X connect 18 0 6 0; +#X connect 18 1 7 0; +#X connect 18 2 15 0; +#X connect 18 3 16 0; +#X connect 25 0 29 0; +#X connect 26 0 29 0; +#X connect 27 0 29 1; +#X connect 28 0 29 1; +#X connect 29 0 23 0; +#X connect 29 1 24 0; +#X connect 30 0 34 0; +#X connect 31 0 34 0; +#X connect 34 0 32 0; +#X connect 34 1 33 0; +#X connect 34 2 35 0; +#X connect 36 0 34 0; -- cgit v1.2.1