From a8e6766c7fedfff5edcbc7c329a184047bd68a1a Mon Sep 17 00:00:00 2001 From: Franz Zotter Date: Tue, 29 Aug 2006 07:37:08 +0000 Subject: mtx_tab: is the same as mtx, but storing its matrix in a local/global table. svn path=/trunk/externals/iem/iemmatrix/; revision=5768 --- abs/mtx_tab-help.pd | 36 ++++++++++++++++++++++++ abs/mtx_tab.pd | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 115 insertions(+) create mode 100644 abs/mtx_tab-help.pd create mode 100644 abs/mtx_tab.pd diff --git a/abs/mtx_tab-help.pd b/abs/mtx_tab-help.pd new file mode 100644 index 0000000..afdf3f6 --- /dev/null +++ b/abs/mtx_tab-help.pd @@ -0,0 +1,36 @@ +#N canvas 382 218 668 300 10; +#X obj 133 198 mtx_tab \$0-table; +#X obj 435 97 table \$0-table; +#X obj 131 120 mtx_rand; +#X obj 133 141 t a a; +#X obj 173 141 mtx_print orig; +#X obj 133 259 mtx_print outlet; +#X obj 311 125 mtx_zeros; +#X msg 311 105 3 4; +#X obj 264 101 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X msg 131 99 2 3; +#X msg 86 122 row 1; +#X obj 133 233 relay matrix; +#X obj 258 257 print outlet; +#X msg -1 122 row 1 1 2 3; +#X text 478 4 part of iemmatrix; +#X text 27 7 [mtx_tab]; +#X text 92 28 is a matrix using a table for local/global storage of +its data. for the full palette of matrix commands refer to the "mtx" +help; +#X text 487 158 see also:; +#X obj 558 158 mtx; +#X text 433 81 local table; +#X connect 0 0 11 0; +#X connect 2 0 3 0; +#X connect 3 0 0 0; +#X connect 3 1 4 0; +#X connect 6 0 0 1; +#X connect 7 0 6 0; +#X connect 8 0 0 0; +#X connect 9 0 2 0; +#X connect 10 0 0 0; +#X connect 11 0 5 0; +#X connect 11 1 12 0; +#X connect 13 0 0 0; diff --git a/abs/mtx_tab.pd b/abs/mtx_tab.pd new file mode 100644 index 0000000..d3fc63d --- /dev/null +++ b/abs/mtx_tab.pd @@ -0,0 +1,79 @@ +#N canvas 98 259 645 400 10; +#X obj 33 14 inlet; +#X obj 247 6 inlet; +#X obj 286 339 s \$1; +#X obj 286 316 list prepend 0; +#X obj 247 276 t a a; +#X obj 286 276 mtx_size; +#X obj 347 276 *; +#X msg 336 295 resize \$1; +#X obj 247 247 relay matrix; +#X obj 33 55 t a a; +#X obj 33 348 outlet; +#X obj 33 34 relay matrix; +#X obj 112 219 mtx; +#X obj 112 56 t a b; +#X obj 142 76 tabdump \$1; +#X obj 142 96 list prepend matrix; +#X obj 142 116 list trim; +#X msg 159 248 1; +#X obj 112 248 spigot; +#X obj 112 137 t b a b; +#X obj 112 195 spigot; +#X msg 158 195 0; +#X obj 112 268 t a b; +#X msg 188 248 0; +#X msg 187 195 1; +#X obj 247 295 list split 1; +#X obj 372 276 + 2; +#X obj 38 195 relay bang; +#X text 356 13 \$1 ... table name; +#X text 446 125 part of iemmatrix.; +#X text 434 151 requires zexy [relay]; +#X text 495 187 see also:; +#X obj 563 186 mtx; +#X text 209 35 mtx_tab behaves just like a "mtx" object that stores +its internal matrix in a table. So this matrix can be seen as a local/global +variable of the workspace.; +#X text 328 340 send to table; +#X text 226 79 get from table; +#X text 30 174 exclude bang; +#X text 138 177 if no output: send to table anyway; +#X text 489 261 Franz Zotter 2006; +#X connect 0 0 11 0; +#X connect 1 0 8 0; +#X connect 3 0 2 0; +#X connect 4 0 25 0; +#X connect 4 1 5 0; +#X connect 5 0 6 0; +#X connect 5 1 6 1; +#X connect 6 0 26 0; +#X connect 7 0 2 0; +#X connect 8 0 4 0; +#X connect 9 0 10 0; +#X connect 9 1 4 0; +#X connect 11 0 9 0; +#X connect 11 1 13 0; +#X connect 12 0 18 0; +#X connect 12 0 8 0; +#X connect 13 0 19 0; +#X connect 13 1 14 0; +#X connect 14 0 15 0; +#X connect 15 0 16 0; +#X connect 16 0 12 1; +#X connect 17 0 18 1; +#X connect 18 0 22 0; +#X connect 19 0 20 0; +#X connect 19 1 27 0; +#X connect 19 2 17 0; +#X connect 19 2 24 0; +#X connect 20 0 12 0; +#X connect 21 0 20 1; +#X connect 22 0 10 0; +#X connect 22 1 23 0; +#X connect 22 1 21 0; +#X connect 23 0 18 1; +#X connect 24 0 20 1; +#X connect 25 1 3 0; +#X connect 26 0 7 0; +#X connect 27 1 12 0; -- cgit v1.2.1