aboutsummaryrefslogtreecommitdiff
path: root/help/help-match.pd
blob: 8d2fbd73e2ea24de9aaecc2aaf8c04f4cc3399b7 (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
#N canvas 90 142 874 407 12;
#X obj 50 350 bng 24 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X msg 148 212 reset;
#X obj 50 95 random 5;
#X msg 50 5 0;
#X msg 65 32 1;
#X obj 50 65 metro 100;
#X text 203 212 reset internal data storage;
#X text 182 26 input values matches the creation;
#X text 183 42 arguments;
#X text 185 82 this can be changed in the sources !;
#X text 83 351 <-- 'bang' when input matches arguments;
#X obj 62 122 hdl 20 1 0 5 empty empty empty 0 -6 0 8 -262144 -1 -1
0;
#X floatatom 50 154 5 0 0;
#X text 228 229 -> forget all old values;
#X obj 50 243 match 3 4;
#X floatatom 81 325 5 0 0;
#X floatatom 156 324 5 0 0;
#X obj 81 294 unpack f f;
#X text 111 11 match :: outputs a list when a list of;
#X msg 93 178 1 3 4 7;
#X msg 160 178 1 2 4 5;
#X text 230 179 send a list of floats;
#X symbolatom 688 312 10 0 0;
#X symbolatom 616 336 10 0 0;
#X symbolatom 581 356 10 0 0;
#X obj 540 349 bng 24 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 540 244 match dog bytes 2 cats;
#X msg 553 186 dog bytes 2 cats;
#X msg 564 214 cat bytes 2 dogs;
#X text 384 114 same works for symbols and mixtures of floats and symbols:
;
#X obj 581 285 unpack s s f s;
#X floatatom 635 313 5 0 0;
#X text 89 271 sends out the list when a match is found;
#X msg 459 151 dog;
#X msg 494 143 cats;
#X msg 519 170 2;
#X msg 471 195 bytes;
#X text 183 68 a maximum of 16 arguments is allowed;
#X connect 1 0 14 0;
#X connect 2 0 12 0;
#X connect 3 0 5 0;
#X connect 4 0 5 0;
#X connect 5 0 2 0;
#X connect 11 0 12 0;
#X connect 12 0 14 0;
#X connect 14 0 0 0;
#X connect 14 0 17 0;
#X connect 17 0 15 0;
#X connect 17 1 16 0;
#X connect 19 0 14 0;
#X connect 20 0 14 0;
#X connect 26 0 25 0;
#X connect 26 0 30 0;
#X connect 27 0 26 0;
#X connect 28 0 26 0;
#X connect 30 0 24 0;
#X connect 30 1 23 0;
#X connect 30 2 31 0;
#X connect 30 3 22 0;
#X connect 33 0 26 0;
#X connect 34 0 26 0;
#X connect 35 0 26 0;
#X connect 36 0 26 0;