aboutsummaryrefslogtreecommitdiff
path: root/doc/pddp/select-help.pd
blob: 6c5af82355199b4132e4177c10256292d3fa24c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
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;