#N canvas 470 22 632 639 10; #X obj 0 0 doc_h; #X obj 3 583 doc_also; #X obj 0 605 doc_f; #X obj 59 83 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 69 223 print; #X obj 69 203 #to_l; #X text 26 36 Takes a grid containing indexes and outputs a grid containing the values read from a table \, for each index.; #X obj 3 270 doc_c 1; #X obj 14 300 doc_cc 0; #X obj 97 300 doc_m c0 symbol; #X obj 14 362 doc_ii 0; #X obj 3 521 doc_o 1; #X obj 14 551 doc_oo 0; #X obj 103 583 tabread; #X obj 97 362 doc_m i0 grid; #X obj 97 551 doc_m o0 grid; #X text 232 300 Name of the table to read from.; #X text 232 362 Input grid containing index values to be read from the table.; #X text 232 397 If an index is negative \, it will return the value of the first element.; #X msg 79 121 3 3 # 0 0 2 4 6 6 1 2 3; #X text 232 432 If an index is greater than the last element of the table \, it will return the value of the last element.; #X text 232 551 Output grid containing all values read from the table. ; #X obj 3 332 doc_i 1; #X obj 97 467 doc_m i0 set; #X obj 137 204 display; #X msg 244 131 set tatable; #X obj 494 162 table tatable 10; #X obj 494 142 table matable 10; #X obj 69 168 #tabread matable; #X msg 402 108 0 99 98 97 96 95 94 93 92 91 90; #X msg 422 68 0 2 4 6 8 10 12 14 16 18 20; #X obj 422 88 s matable; #X obj 402 128 s tatable; #X obj 402 48 loadbang; #X obj 59 101 #for 0 10; #X text 232 489 Set the table to read from.; #X obj 157 583 tabwrite; #X obj 217 583 #tabwrite; #X text 232 467 \$1=table; #X connect 1 1 13 0; #X connect 1 1 36 0; #X connect 1 1 37 0; #X connect 3 0 34 0; #X connect 5 0 4 0; #X connect 9 1 16 0; #X connect 14 1 17 0; #X connect 14 1 18 0; #X connect 14 1 20 0; #X connect 15 1 21 0; #X connect 19 0 28 0; #X connect 23 1 35 0; #X connect 23 1 38 0; #X connect 25 0 28 0; #X connect 28 0 5 0; #X connect 28 0 24 0; #X connect 29 0 32 0; #X connect 30 0 31 0; #X connect 33 0 30 0; #X connect 33 0 29 0; #X connect 34 0 28 0;