From f18d063d9312c95e25294e0777bc135ee9a3fd8a Mon Sep 17 00:00:00 2001 From: Thomas O Fredericks Date: Sun, 25 Oct 2009 00:39:13 +0000 Subject: Adding mtl svn path=/trunk/abstractions/mtl/; revision=12667 --- indexer-help.pd | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 indexer-help.pd (limited to 'indexer-help.pd') diff --git a/indexer-help.pd b/indexer-help.pd new file mode 100644 index 0000000..79a5c2b --- /dev/null +++ b/indexer-help.pd @@ -0,0 +1,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; -- cgit v1.2.1