From d2eec74a4d8c21aad495ba61539486b24d7ab8dc Mon Sep 17 00:00:00 2001 From: Guenter Geiger Date: Wed, 9 Oct 2002 10:19:04 +0000 Subject: moved from zexy/zexy to zexy svn path=/trunk/externals/zexy/; revision=169 --- examples/index.pd | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 examples/index.pd (limited to 'examples/index.pd') diff --git a/examples/index.pd b/examples/index.pd new file mode 100644 index 0000000..e7e1232 --- /dev/null +++ b/examples/index.pd @@ -0,0 +1,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 [ []]"; +#X text 290 517 in NON-AUTO mode \, only ADDED symbols (eg. "add ") 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; -- cgit v1.2.1