aboutsummaryrefslogtreecommitdiff
path: root/doc/pddp/tabread-help.pd
blob: 25ab1f0e556abd1856dfe7d4537066fcaa43c6f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
#N canvas 0 0 555 619 10;
#X obj 0 595 cnv 15 552 21 empty \$0-pddp.cnv.footer empty 20 12 0
14 -228856 -66577 0;
#X obj 0 0 cnv 15 552 40 empty \$0-pddp.cnv.header tabread 3 12 0 18
-204280 -1 0;
#X obj 0 277 cnv 3 550 3 empty \$0-pddp.cnv.inlets inlets 8 12 0 13
-228856 -1 0;
#N canvas 51 245 494 344 META 0;
#X text 12 105 LIBRARY internal;
#X text 12 145 WEBSITE http://crca.ucsd.edu/~msp/;
#X text 12 25 LICENSE SIBSD;
#X text 12 125 AUTHOR Miller Puckette;
#X text 12 185 HELP_PATCH_AUTHORS Dave Sabine \, April 25 \, 2003 .
Jonathan Wilkes revised the patch to conform to the PDDP template for
Pd version 0.42.;
#X text 12 5 KEYWORDS control array;
#X text 12 45 DESCRIPTION read numbers from a table;
#X text 12 65 INLET_0 float set;
#X text 12 85 OUTLET_0 float;
#X text 12 165 RELEASE_DATE 1997;
#X restore 500 597 pd META;
#X obj 0 444 cnv 3 550 3 empty \$0-pddp.cnv.outlets outlets 8 12 0
13 -228856 -1 0;
#X obj 0 482 cnv 3 550 3 empty \$0-pddp.cnv.argument arguments 8 12
0 13 -228856 -1 0;
#X obj 0 541 cnv 3 550 3 empty \$0-pddp.cnv.more_info more_info 8 12
0 13 -228856 -1 0;
#N canvas 83 315 428 299 Related_objects 0;
#X obj 1 1 cnv 15 425 20 empty \$0-pddp.cnv.subheading empty 3 12 0
14 -204280 -1 0;
#X text 8 2 [tabread] Related Objects;
#X text 21 38 Native Pd Objects;
#X obj 24 61 tabread~;
#X obj 98 61 tabread4;
#X obj 173 61 tabwrite;
#X obj 248 61 tabwrite~;
#X obj 24 89 tabsend~;
#X obj 100 89 tabreceive~;
#X obj 200 89 tabplay~;
#X obj 277 89 table;
#X text 21 140 [array];
#X obj 24 116 soundfiler;
#X text 84 140 and fft objects.;
#X obj 120 116 tabread4~;
#X obj 211 116 getsize;
#X obj 282 116 setsize;
#X text 22 164 Externals and other object libraries;
#X obj 22 184 pddp/helplink zexy/tabdump;
#X obj 22 204 pddp/helplink linear_path;
#X text 103 204 <-- which library is this in?;
#X text 103 224 <-- which library is this in?;
#X obj 22 224 pddp/helplink score;
#X text 103 244 <-- which library is this in?;
#X obj 22 244 pddp/helplink tabenv;
#X obj 22 264 pddp/helplink arraysize;
#X restore 102 597 pd Related_objects;
#X obj 78 286 cnv 17 3 145 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856
-162280 0;
#X text 98 285 float;
#X text 98 452 float;
#X obj 78 453 cnv 17 3 17 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856
-162280 0;
#X obj 475 3 tabread;
#X obj 445 20 pddp/pddplink http://wiki.puredata.info/en/tabread -text
pdpedia: tabread;
#X text 168 285 - a float at the left inlet will move to the corresponding
index in the table's array. The index ranges from 0 to the size of
the array minus one (numbers outside this range are ignored). By default
\, the size of an array in a table is 100 - or 0 to 99 . The actual
size of the array can be altered using the array's dialog box or the
resize command. More about arrays can be found below.;
#X text 98 402 set;
#X text 168 500 - the argument informs [tabread] which array to read.
The array must exist in an open Pd patch/canvas or an error message
will appear in the terminal window.;
#X text 168 452 - outputs a floating point number which corresponds
to the index you query using the inlet.;
#X floatatom 74 251 0 0 0 0 value - -;
#X floatatom 74 93 0 0 99 0 index - -;
#X text 18 55 Open the tables and use your mouse to draw new values
in the arrays - otherwise [tabread] will always output "0".;
#N canvas 0 0 450 300 (subpatch) 0;
#X array \$0-array1 100 float 3;
#A 0 -0.900001 -0.900001 -0.900001 -0.900001 -0.900001 -0.866667 -0.833334
-0.833334 -0.833334 -0.833334 -0.800001 -0.800001 -0.766667 -0.766667
-0.766667 -0.766667 -0.766667 -0.766667 -0.766667 -0.766667 -0.766667
-0.766667 -0.766667 -0.766667 -0.766667 -0.766667 -0.766667 -0.766667
-0.766667 -0.766667 -0.733334 -0.733334 -0.733334 -0.7 -0.666667 -0.633334
-0.633334 -0.633334 -0.633334 -0.633334 -0.633334 -0.633334 -0.633334
-0.6 -0.6 -0.566667 -0.566667 -0.566667 -0.566667 -0.566667 -0.566667
-0.566667 -0.566667 -0.566667 -0.566667 -0.566667 -0.533334 -0.533334
-0.5 -0.5 -0.466667 -0.466667 -0.433334 -0.4 -0.366667 -0.333333 -0.3
-0.283333 -0.266667 -0.233333 -0.2 -0.133333 -0.133333 -0.133333 -0.0666667
-0.0666667 -0.0666667 1.49012e-08 0.1 0.1 0.233333 0.3 0.333334 0.4
0.433334 0.566667 0.633334 0.733334 0.733334 0.766667 0.766667 0.800001
0.800001 0.800001 0.800001 0.800001 0.800001 0.800001 0.800001 0.900001
;
#X coords 0 1 99 -1 100 60 1;
#X restore 383 83 graph;
#X text 346 217 mouse to draw new values.;
#X text 346 204 Open the table and use your;
#X text 168 402 - the "set" message allows you to read from dynamic
sources (e.g. \, "set tabread-help-array"). You can change the source
at any time using the "set" message.;
#X text 98 380 list;
#X text 168 380 - a list will be truncated to the first item.;
#X text 11 24 read numbers from a table;
#X obj 98 577 pddp/pddplink all_about_arrays.pd -text all_about_arrays
;
#X text 80 500 1) symbol atom;
#X obj 4 597 pddp/pddplink all_about_help_patches.pd -text Usage Guide
;
#X obj 107 93 bng 15 250 50 0 empty empty empty 17 7 0 10 -4034 -1
-1;
#X obj 107 113 f \$0;
#X obj 110 162 bng 15 250 50 0 empty empty empty 17 7 0 10 -4034 -1
-1;
#X obj 110 182 f \$0;
#X msg 107 135 set \$1-array1;
#X obj 74 227 tabread \$0-array1;
#X msg 110 204 set \$1-array2;
#X obj 353 184 table \$0-array2;
#X obj 98 547 pddp/pddplink ../2.control.examples/15.arrays.pd;
#X obj 97 562 pddp/pddplink ../2.control.examples/16.more.arrays.pd
;
#X connect 19 0 36 0;
#X connect 31 0 32 0;
#X connect 32 0 35 0;
#X connect 33 0 34 0;
#X connect 34 0 37 0;
#X connect 35 0 36 0;
#X connect 36 0 18 0;
#X connect 37 0 36 0;