aboutsummaryrefslogtreecommitdiff
path: root/desiredata/doc/5.reference/select-help.pd
blob: 6bc17ad710d6ae8d4ca802fe7ef9946a561770d0 (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
#N canvas 47 29 618 662 12;
#X floatatom 22 332 0 0 0;
#X msg 156 120 6;
#X msg 119 120 234;
#X floatatom 119 150 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;
#X obj 22 362 select 23 54 1;
#X text 45 609 abbreviation:;
#X obj 169 610 sel;
#X text 20 37 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 83 637 see also:;
#X obj 175 639 route;
#X obj 32 10 select;
#X text 92 10 - compare numbers or symbols;
#X text 370 629 updated for Pd version 0.33;
#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;