aboutsummaryrefslogtreecommitdiff
path: root/examples/index.pd
blob: e7e1232a7fa2856d37412544a3ee49c1491c29b3 (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
84
85
86
87
#N canvas 240 25 854 550 10;
#X msg 117 288 reset;
#X msg 216 288 auto 0;
#X msg 354 287 help;
#X floatatom 441 288;
#X floatatom 192 439;
#X obj 117 419 index 128 3;
#X text 224 441 index;
#X msg 216 313 auto 1;
#X msg 128 85 add alias;
#X msg 128 103 add bind;
#X msg 128 121 add break;
#X msg 128 140 add built-in;
#X msg 128 159 add case;
#X msg 384 103 delete bind;
#X msg 384 121 delete break;
#X msg 384 140 delete built-in;
#X msg 384 159 delete case;
#X obj 231 179 symbol;
#X msg 250 159 case;
#X msg 250 140 built-in;
#X msg 250 121 break;
#X msg 250 103 bind;
#X msg 250 85 alias;
#X obj 231 197 send 2index;
#X obj 117 372 receive 2index;
#X obj 372 197 send 2index;
#X obj 114 197 send 2index;
#X text 239 48 get item index;
#X text 233 62 (evt. add new item);
#X text 106 269 clear map;
#X text 68 48 add new item to map;
#X text 382 46 delete item from map;
#X text 190 269 set/reset AUTO-adding;
#X text 353 271 help;
#X text 440 272 debug: which item has index #;
#X text 61 9 index: create a symbol->int map;
#X text 349 402 creation : "index [<n> [<auto>]]";
#X text 290 517 in NON-AUTO mode \, only ADDED symbols (eg. "add <symbol>") are added to the map;
#X text 289 495 in AUTO mode \, unknown symbols are automatically added to the map \;;
#X msg 384 85 delete alias;
#N canvas 601 96 333 308 print2screen 0;
#X obj 114 58 inlet;
#X obj 157 59 inlet;
#X obj 114 231 pack 0 s;
#X msg 114 252 \$2 -> \$1;
#X obj 114 271 print mapped;
#X obj 157 192 route add symbol delete;
#X obj 157 212 symbol;
#X obj 246 173 loadbang;
#X connect 0 0 2 0;
#X connect 1 0 5 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 5 0 6 0;
#X connect 5 1 6 0;
#X connect 5 2 6 0;
#X connect 6 0 2 1;
#X connect 7 0 6 0;
#X restore 117 488 pd print2screen;
#X text 387 420 n :: max. number of elements in list (defaults to 128);
#X text 369 429 auto :: 1_sets auto ON \, 0_sets auto OFF (default off);
#X connect 0 0 5 0;
#X connect 1 0 5 0;
#X connect 2 0 5 0;
#X connect 3 0 5 0;
#X connect 5 0 4 0;
#X connect 5 0 40 0;
#X connect 7 0 5 0;
#X connect 8 0 26 0;
#X connect 9 0 26 0;
#X connect 10 0 26 0;
#X connect 11 0 26 0;
#X connect 12 0 26 0;
#X connect 13 0 25 0;
#X connect 14 0 25 0;
#X connect 15 0 25 0;
#X connect 16 0 25 0;
#X connect 17 0 23 0;
#X connect 18 0 17 0;
#X connect 19 0 17 0;
#X connect 20 0 17 0;
#X connect 21 0 17 0;
#X connect 22 0 17 0;
#X connect 24 0 40 1;
#X connect 24 0 5 0;
#X connect 39 0 25 0;