From 21c068f1916330e90f814bed461fe0821d1665ec Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sun, 9 Oct 2011 16:36:37 +0000 Subject: checked in pd-0.43-0.src.tar.gz svn path=/trunk/; revision=15557 --- pd/doc/5.reference/tabread-help.pd | 53 +++++++++++++++++++++++++------------- 1 file changed, 35 insertions(+), 18 deletions(-) (limited to 'pd/doc/5.reference/tabread-help.pd') diff --git a/pd/doc/5.reference/tabread-help.pd b/pd/doc/5.reference/tabread-help.pd index fa671a21..25c9bfd9 100644 --- a/pd/doc/5.reference/tabread-help.pd +++ b/pd/doc/5.reference/tabread-help.pd @@ -1,21 +1,38 @@ -#N canvas 44 26 703 454 12; -#X text 52 181 index; +#N canvas 58 46 685 536 12; +#X text 89 188 index; #X obj 36 9 tabread; -#X obj 15 244 tabread array99; -#X floatatom 15 182 0 0 0; -#X floatatom 15 278 0 0 0; -#X graph graph1 0 0 10 10 362 379 612 179; -#X array array99 10 float; -#X pop; -#X msg 31 56 \; readout 1 \; array99 resize 10 \; array99 bounds 0 0 10 10 \; array99 xlabel -0.5 0 1 2 3 4 5 6 7 8 9 10 \; array99 ylabel -1 0 1 2 3 4 5 6 7 8 9 10 \; array99 0 1 4 2 8 5 6 1 4 2 8; -#X text 60 276 output = array99[index]; -#X text 141 33 click here to initialize; -#X text 159 236 creation argument; -#X text 155 254 gives array name; -#X msg 25 204 set array99; -#X text 137 204 change array name; -#X text 422 407 updated for Pd version 0.33; -#X text 110 8 - read numbers from a table; +#X obj 52 251 tabread array99; +#X floatatom 52 189 0 0 0 0 - - -; +#X floatatom 52 285 0 0 0 0 - - -; +#N canvas 0 0 450 300 (subpatch) 0; +#X array array99 10 float 3; +#A 0 9 0 8 1 7 2 6 3 5 4; +#X coords 0 10 10 0 250 200 1 0 0; +#X restore 398 219 graph; +#X text 90 286 output = array99[index]; +#X text 196 243 creation argument; +#X text 198 259 gives array name; +#X msg 62 211 set array99; +#X text 174 211 change array name; +#X text 109 9 - read numbers from a table; +#X msg 36 363 \; array99 xlabel -0.5 0 1 2 3 4 5 6 7 8 9 10 \; array99 +ylabel -1 0 1 2 3 4 5 6 7 8 9 10; +#X text 449 486 updated for Pd version 0.43; +#X obj 37 337 loadbang; +#X text 8 433 see also the "array" tutorial in section 2 of the Pd +documentation \, and these objects:; +#X obj 9 472 tabwrite~; +#X obj 213 472 tabwrite; +#X obj 278 472 tabsend~; +#X obj 343 472 tabreceive~; +#X obj 80 472 tabplay~; +#X obj 148 472 tabread4; +#X text 59 45 The tabread object reads values from an array ("table") +according to an index. The index is rounded down to the next lower +integer. Values in the table correspond to indices starting at 0 Indices +outside of the range are replaced by the nearest index in range (from +0 to 9 in this example).; #X connect 2 0 4 0; #X connect 3 0 2 0; -#X connect 11 0 2 0; +#X connect 9 0 2 0; +#X connect 14 0 12 0; -- cgit v1.2.1