-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharray-read-help.pd
More file actions
115 lines (115 loc) · 4.06 KB
/
array-read-help.pd
File metadata and controls
115 lines (115 loc) · 4.06 KB
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
#N canvas 1024 87 603 757 10;
#X obj 357 177 loadbang;
#X floatatom 26 71 5 0 0 0 - - -, f 5;
#X floatatom 26 359 0 0 0 0 - - -;
#X obj 1 1 cnv 15 600 50 empty empty array-read 3 12 0 18 -204280 -1
0;
#X obj 18 29 tabread;
#X obj 1 388 cnv 3 600 3 empty empty inlets 8 12 0 13 -228856 -1 0
;
#X obj 1 591 cnv 3 600 3 empty empty outlets 8 12 0 13 -228856 -1 0
;
#X obj 1 631 cnv 3 600 3 empty empty arguments 8 12 0 13 -228856 -1
0;
#X text 85 655 1) symbol;
#X obj 83 398 cnv 17 3 145 empty empty 0 5 9 0 16 -191407 -162280 0
;
#X text 103 398 float;
#X text 103 486 list;
#X text 160 655 - the name of the array or table to read.;
#X obj 1 731 cnv 15 600 25 empty empty empty 3 12 0 18 -228856 -1 0
;
#N canvas 582 22 428 336 Related_objects 0;
#X obj 1 1 cnv 15 425 20 empty empty empty 3 12 0 14 -204280 -66577
0;
#X text 8 3 [array-read] Related Objects;
#X text 10 37 Pd Builtins;
#X obj 25 65 array get;
#X obj 125 65 tabread;
#X obj 125 95 tabread4;
#X text 10 137 From array-abs;
#X obj 25 165 array-read4;
#X obj 25 195 array-read4h;
#X obj 125 165 array-read6;
#X obj 125 195 array-read6h;
#X obj 125 225 array-read6h2;
#X obj 235 165 array-readsinc;
#X obj 25 275 array-write;
#X obj 125 275 array-swap;
#X obj 125 305 array-swap2;
#X obj 235 275 tabswap;
#X obj 235 305 tabswap2;
#X restore 88 735 pd Related_objects;
#X obj 1 683 cnv 3 600 3 empty empty more_info 8 12 0 13 -228856 -1
0;
#X obj 88 695 array-abs-intro;
#X text 68 30 with both positive and negative indices;
#X text 356 89 click arrays to open;
#X floatatom 47 95 5 0 0 0 - - -, f 5;
#X floatatom 58 145 5 0 0 0 - - -, f 5;
#X text 103 550 symbol;
#X text 160 550 - an incoming symbol in the right inlet sets the name
of the array or table to read. It must use the "symbol" selector explicitly.
, f 68;
#X text 160 486 - the elements of a list are distributed across the
two inlets as usual for Pd objects. A typical list would be a float
and a symbol for the index and the array name. An array name set in
this manner will stay set until changed., f 68;
#X obj 83 550 cnv 17 3 17 empty empty 1 5 9 0 16 -191407 -162280 0
;
#X obj 83 601 cnv 17 3 17 empty empty 0 5 9 0 16 -191407 -162280 0
;
#X text 103 601 float;
#X text 160 601 - the float read from the array at the specified index.
, f 68;
#X msg 191 242 symbol array-read-cos;
#X msg 207 310 symbol array-read-sin;
#X text 414 11 Part of array-abs \; Array Abstraction Library;
#N canvas 167 535 378 246 META 0;
#X text 18 14 KEYWORDS control array;
#X text 18 34 LICENSE SIBSD;
#X text 18 54 DESCRIPTION read numbers from an array with positive
or negative indices;
#X text 18 84 INLET_0 float list;
#X text 18 104 INLET_1 symbol;
#X text 18 124 LIBRARY array-abs;
#X text 18 144 AUTHOR Matt Barber;
#X text 18 164 RELEASE_DATE 2015;
#X text 18 184 HELP_PATCH_AUTHORS Matt Barber \, 2016;
#X restore 535 735 pd META;
#X obj 198 695 array-read-comparison;
#X obj 357 109 array define \$0-array-read-cos;
#X obj 357 143 array define \$0-array-read-sin;
#X obj 357 203 f \$0;
#X obj 191 220 f \$0;
#X obj 191 201 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 207 288 f \$0;
#X obj 207 269 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 26 333 array-read \$0-array-read-cos;
#X msg 357 227 \; \$1-array-read-cos cosinesum 16 0 1 \; \$1-array-read-sin
sinesum 16 1 \;;
#X obj 47 119 list append \$0-array-read-cos;
#X obj 58 170 list append \$0-array-read-sin;
#X text 160 398 - an incoming float indicates the index at which to
read (truncated to int). The index ranges from 0 to 1 less than array
size (i.e. n-1) in positive numbers \, and from -1 to -n in negative
numbers. Negative indices are added to the array size \, so that index
-1 points to the last element \, -2 to the penultimate \, and -n to
the zeroth. Onsets greater than n-1 or less than -n are dropped.,
f 68;
#X connect 0 0 35 0;
#X connect 1 0 40 0;
#X connect 19 0 42 0;
#X connect 20 0 43 0;
#X connect 28 0 40 1;
#X connect 29 0 40 1;
#X connect 35 0 41 0;
#X connect 36 0 28 0;
#X connect 37 0 36 0;
#X connect 38 0 29 0;
#X connect 39 0 38 0;
#X connect 40 0 2 0;
#X connect 42 0 40 0;
#X connect 43 0 40 0;