File: tabwrite-help.pd

package info (click to toggle)
puredata 0.55.2%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 20,508 kB
  • sloc: ansic: 118,824; tcl: 10,221; cpp: 9,327; makefile: 1,632; sh: 1,476; python: 152; xml: 98; awk: 13
file content (98 lines) | stat: -rw-r--r-- 4,305 bytes parent folder | download | duplicates (4)
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
#N canvas 389 50 666 457 12;
#X obj 26 22 tabwrite;
#X floatatom 28 116 4 0 10 0 - - - 0;
#X floatatom 165 271 4 0 9 0 - - - 0;
#X text 180 294 creation argument;
#X text 182 312 is array name;
#X text 64 114 set y value;
#X text 164 150 change array name;
#X text 457 420 updated for Pd version 0.33;
#X text 98 22 - write numbers to a table;
#X text 60 176 right inlet selects x value (indexed from 0). Note that input values are clipped to the range from 0 to size-1, f 37;
#X obj 152 420 tabread;
#X obj 209 420 tabread4;
#X obj 274 420 array;
#N canvas 742 134 401 220 init-table 0;
#X obj 35 42 loadbang;
#X msg 35 74 \; tabwrite-ex resize 10 \; tabwrite-ex bounds 0 10 10 0 \; tabwrite-ex xlabel -0.2 0 1 2 3 4 5 6 7 8 9 \; tabwrite-ex ylabel -0.3 0 1 2 3 4 5 6 7 8 9 10 \; tabwrite-ex 0 1 4 2 8 5 6 1 4 2 8;
#X connect 0 0 1 0;
#X restore 521 112 pd init-table;
#X obj 28 305 tabwrite tabwrite-ex;
#X msg 49 150 set tabwrite-ex;
#N canvas 632 117 593 356 Dealing_with_"\$0" 0;
#X text 431 244 <= array with local name, f 13;
#X msg 151 216 set \$1;
#X obj 151 190 symbol \$0-x;
#X obj 151 167 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000;
#X text 170 164 click to set name;
#X floatatom 90 199 6 1 8 0 - - - 0;
#X obj 280 245 array define \$0-x 10;
#X obj 92 284 tabwrite;
#X floatatom 146 256 5 0 0 0 - - - 0;
#X text 36 86 You can use "\$0" in an array name and if you need to set the array name you can load it in a symbol object \, since "\$0" doesn't work in messages., f 70;
#X text 36 33 '\$0' - the patch ID number used to force locality in Pd - is widely used in send/receive names as well as array names. This is especially useful in abstractions so each copy has local names instead of global., f 70;
#X connect 1 0 7 0;
#X connect 2 0 1 0;
#X connect 3 0 2 0;
#X connect 5 0 7 0;
#X connect 8 0 7 1;
#X restore 187 361 pd Dealing_with_"\$0";
#X text 25 352 open subpatch to see how to deal with '\$0', f 21;
#X obj 81 420 tabwrite~;
#N canvas 653 102 583 306 reference 0;
#X obj 18 52 cnv 5 550 5 empty empty INLET: 8 18 0 13 #202020 #000000 0;
#X obj 18 188 cnv 2 550 2 empty empty OUTLETS: 8 12 0 13 #202020 #000000 0;
#X obj 18 233 cnv 2 550 2 empty empty ARGUMENT: 8 12 0 13 #202020 #000000 0;
#X obj 17 270 cnv 5 550 5 empty empty empty 8 18 0 13 #202020 #000000 0;
#X text 113 114 set <symbol> -;
#X text 162 94 float -;
#X text 218 114 set the table name., f 39;
#X obj 46 22 tabwrite;
#X text 118 22 - write numbers to a table.;
#X text 218 94 sets index value and write to a table., f 39;
#X text 170 201 NONE;
#X obj 17 144 cnv 1 550 1 empty empty 2nd: 8 12 0 13 #7c7c7c #000000 0;
#X obj 17 85 cnv 1 550 1 empty empty 1st: 8 12 0 13 #7c7c7c #000000 0;
#X text 162 154 float -;
#X text 218 155 sets index to write to., f 39;
#X text 126 242 1) symbol - sets table name with the sample.;
#X restore 461 18 pd reference;
#X text 559 17 <= click;
#X obj 8 52 cnv 1 650 1 empty empty empty 8 12 0 13 #000000 #000000 0;
#X obj 8 403 cnv 1 650 1 empty empty empty 8 12 0 13 #000000 #000000 0;
#X text 9 419 see also:;
#N canvas 643 412 384 186 array-examples 0;
#N canvas 491 316 457 285 open 0;
#X obj 120 23 inlet;
#X obj 173 121 pdcontrol;
#X msg 173 94 dir;
#X obj 120 181 pack s s;
#X obj 173 64 loadbang;
#X msg 120 212 \; pd open \$1 \$2;
#X obj 173 151 makefilename %s/../2.control.examples;
#X connect 0 0 3 0;
#X connect 1 0 6 0;
#X connect 2 0 1 0;
#X connect 3 0 5 0;
#X connect 4 0 2 0;
#X connect 6 0 3 1;
#X restore 52 131 pd open;
#X msg 52 76 15.array.pd;
#X msg 62 102 16.more.arrays.pd;
#X text 144 77 <-- click to open examples.;
#X text 47 22 See also and the "array" examples from the section 2 of Pd's tutorial:, f 39;
#X connect 1 0 0 0;
#X connect 2 0 0 0;
#X restore 317 420 pd array-examples;
#X text 22 66 [tabwrite] writes floats into an array \, input values are set in the left inlet \, while the index is set on the right inlet., f 62;
#X obj 374 138 cnv 19 248 198 empty empty empty 20 12 0 12 #e0e0e0 #404040 0;
#N canvas 0 22 450 278 (subpatch) 0;
#X array tabwrite-ex 10 float 2;
#X coords 0 10 10 0 250 200 1 0 0;
#X restore 373 137 graph;
#X msg 65 231 5 2;
#X text 99 225 A list input spread values into inlets as usual in Pd, f 30;
#X connect 1 0 14 0;
#X connect 2 0 14 1;
#X connect 15 0 14 0;
#X connect 28 0 14 0;