-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharray-read4-help.pd
More file actions
106 lines (106 loc) · 4.04 KB
/
array-read4-help.pd
File metadata and controls
106 lines (106 loc) · 4.04 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
#N canvas 508 306 603 789 10;
#X obj 377 207 loadbang;
#X floatatom 26 91 5 0 0 0 - - -, f 5;
#X floatatom 26 309 0 0 0 0 - - -;
#X obj 1 1 cnv 15 600 50 empty empty array-read4 3 12 0 18 -204280
-1 0;
#X obj 1 368 cnv 3 600 3 empty empty inlets 8 12 0 13 -228856 -1 0
;
#X obj 1 611 cnv 3 600 3 empty empty outlets 8 12 0 13 -228856 -1 0
;
#X obj 1 661 cnv 3 600 3 empty empty arguments 8 12 0 13 -228856 -1
0;
#X text 85 685 1) symbol;
#X obj 83 378 cnv 17 3 185 empty empty 0 5 9 0 16 -191407 -162280 0
;
#X text 103 378 float;
#X text 103 509 list;
#X text 160 685 - the name of the array or table to read.;
#X obj 1 761 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 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 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 obj 25 165 array-read;
#X text 8 3 [array-read4] Related Objects;
#X restore 88 765 pd Related_objects;
#X obj 1 713 cnv 3 600 3 empty empty more_info 8 12 0 13 -228856 -1
0;
#X obj 88 725 array-abs-intro;
#X text 76 30 with both positive and negative indices;
#X text 376 119 click arrays to open;
#X floatatom 47 115 5 0 0 0 - - -, f 5;
#X floatatom 58 165 5 0 0 0 - - -, f 5;
#X text 103 569 symbol;
#X text 160 569 - 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 509 - 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 569 cnv 17 3 17 empty empty 1 5 9 0 16 -191407 -162280 0
;
#X obj 83 621 cnv 17 3 17 empty empty 0 5 9 0 16 -191407 -162280 0
;
#X text 103 621 float;
#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 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 text 18 54 DESCRIPTION read numbers from an array with positive
or negative indices and cubic interpolation;
#X restore 535 765 pd META;
#X obj 198 725 array-read-comparison;
#X obj 18 29 tabread4;
#X obj 26 282 array-read4 array-read4-cos;
#X msg 185 228 symbol array-read4-cos;
#X msg 195 258 symbol array-read4-sin;
#X obj 47 139 list append array-read4-cos;
#X obj 58 190 list append array-read4-sin;
#X obj 377 139 array define array-read4-cos;
#X obj 377 173 array define array-read4-sin;
#X msg 377 234 \; array-read4-cos cosinesum 16 0 1 \; array-read4-sin
sinesum 16 1 \;;
#X text 160 621 - the float read from the array at the specified index
\, with cubic interpolation if applicable., f 68;
#X text 160 378 - an incoming float indicates the index at which to
read. For non-int indices \, the cubic interpolator uses two points
on either side of the indicated index to calculate a value. This limits
valid index values to ranges from 1 to 2 less than array size (i.e.
n-2) in positive numbers \, and from -2 to -n+1 in negative numbers.
Indices 0 and n-1 are guard points \, and are not directly readable.
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.
An onset greater than n-2 or less than -n+1 refer to the last and first
readable indices \, respectively., f 68;
#X connect 0 0 37 0;
#X connect 1 0 30 0;
#X connect 18 0 33 0;
#X connect 19 0 34 0;
#X connect 30 0 2 0;
#X connect 31 0 30 1;
#X connect 32 0 30 1;
#X connect 33 0 30 0;
#X connect 34 0 30 0;