File: select.pd

package info (click to toggle)
pd 0.32p1-5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,704 kB
  • ctags: 5,418
  • sloc: ansic: 38,382; tcl: 1,036; makefile: 612; sh: 265
file content (70 lines) | stat: -rw-r--r-- 2,152 bytes parent folder | download | duplicates (2)
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
#N canvas 545 -10 555 775 8;
#X floatatom 27 381;
#X msg 164 165 6;
#X msg 125 165 234;
#X floatatom 125 196;
#X msg 128 350 1;
#X msg 94 350 54;
#X obj 27 443 print x1;
#X obj 90 443 print x2;
#X msg 61 350 23;
#X msg 27 350 234;
#X msg 69 161 6;
#X obj 30 223 select 6;
#X msg 30 161 234;
#X obj 30 254 print x1;
#X obj 97 254 print x2;
#X obj 150 443 print x3;
#X obj 213 443 print x4;
#X floatatom 30 192;
#X obj 27 412 select 23 54 1;
#X text 39 701 abbreviation:;
#X obj 137 702 sel;
#X text 108 18 select -- compare numbers or symbols;
#X text 22 75 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 24 285 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 36 629 print x1;
#X obj 108 629 print x2;
#X text 26 481 Select can also be used to check symbols:;
#X msg 36 510 symbol cort;
#X msg 117 511 symbol zack;
#X msg 107 558 symbol cort;
#X msg 188 559 symbol zack;
#X obj 36 598 select cort;
#X msg 323 518 symbol cort;
#X msg 404 519 symbol zack;
#X obj 322 610 print x1;
#X obj 385 611 print x2;
#X obj 322 579 select cort zack;
#X obj 447 612 print x3;
#X msg 414 542 symbol bill;
#X text 344 750 updated for Pd version 0.24;
#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 27 0 31 0;
#X connect 28 0 31 0;
#X connect 29 0 31 1;
#X connect 30 0 31 1;
#X connect 31 0 24 0;
#X connect 31 1 25 0;
#X connect 32 0 36 0;
#X connect 33 0 36 0;
#X connect 36 0 34 0;
#X connect 36 1 35 0;
#X connect 36 2 37 0;
#X connect 38 0 36 0;