aboutsummaryrefslogtreecommitdiff
path: root/indexer-help.pd
blob: 79a5c2bbc43e4e1cfbdc5321be10a3a1bd1f6f24 (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
#N canvas 1176 46 728 641 10;
#X obj 183 287 bng 15 250 50 0 empty empty clear 17 7 0 10 -262144
-1 -1;
#X obj 35 489 mtl/indexer;
#X obj 16 9 cnv 15 380 60 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 21 51 tags: data;
#X msg 183 311 symbol bananas;
#X msg 35 106 symbol apples;
#X msg 61 128 symbol raisins;
#X msg 77 153 symbol bananas;
#X text 21 11 description: Creates a symbol to integer map. Each symbol
is assigned a unique numerical index.;
#X text 250 285 Inlet 2: delete previous indexations;
#X text 246 361 Inlet 3: test for an indexation;
#X msg 250 381 symbol raisins;
#X obj 87 536 print TEST;
#X text 151 535 Outlet 3 bangs if no matching index was found during
a test.;
#X msg 250 403 2;
#X text 280 402 Test by index;
#X text 340 379 Test by symbol;
#X text 279 310 Delete a previous symbol;
#X text 34 83 Inlet 1: add or retreive;
#X msg 190 334 1;
#X obj 248 457 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X text 268 456 Inlet 4: dump the contents;
#X obj 110 515 print DUMP;
#X text 223 333 Delete a previous index number;
#X obj 36 587 print FOUND;
#X obj 62 560 print NEW;
#X msg 107 224 2 pineapple;
#X text 105 175 You can also attempt to force an index. The symbol
will only be added to that index if neither the symbol or index have
been stored.;
#X text 186 225 Attempt to force pineapple at index 2;
#X connect 0 0 1 1;
#X connect 1 0 24 0;
#X connect 1 1 25 0;
#X connect 1 2 12 0;
#X connect 1 3 22 0;
#X connect 4 0 1 1;
#X connect 5 0 1 0;
#X connect 6 0 1 0;
#X connect 7 0 1 0;
#X connect 11 0 1 2;
#X connect 14 0 1 2;
#X connect 19 0 1 1;
#X connect 20 0 1 3;
#X connect 26 0 1 0;