aboutsummaryrefslogtreecommitdiff
path: root/externals/gridflow/doc/flow_classes/#+-help.pd
blob: 97f33474084f8ae6edbc86cf8db572a968c8f272 (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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
#N canvas 165 32 693 623 10;
#X obj 8 3 cnv 15 90 578 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 36 326 INLETS:;
#X text 36 344 - LEFT:;
#X text 30 386 - RIGHT:;
#X text 29 469 OUTLETS:;
#X text 28 53 EXAMPLES:;
#X text 16 553 SEE ALSO:;
#N canvas 52 15 871 640 More_Info 1;
#X text 76 366 A + B;
#X text 77 510 A * B;
#X text 73 571 rounded towards zero;
#X text 14 73 angles are in hundredth of degrees \, so a full circle
(two pi radians) is 36000 you can convert from radians to our angles
by multiplying by 18000/pi.;
#X text 13 44 for all of these \, A refers to the left inlet and B
to the value on the right.;
#X text 15 27 Consult doc/architecture.html to see all the 40 of them.
;
#X text 902 31 GridFlow 0.8.0;
#X obj 479 70 #color;
#X obj 684 72 #color;
#X msg 15 366 op +;
#X msg 15 507 op *;
#X obj 15 385 s op;
#X obj 423 155 r op;
#X obj 15 526 s op;
#X obj 15 436 s op;
#X text 77 421 A - B;
#X msg 15 417 op -;
#X obj 15 761 s op;
#X msg 15 742 op %;
#X text 69 743 A % B;
#X obj 15 575 s op;
#X msg 15 556 op /;
#X text 79 557 A / B;
#X obj 14 809 s op;
#X text 83 790 B % A;
#X text 15 14 Numeric Operators: *whoa \, there's a lot of them;
#X obj 16 482 s op;
#X msg 16 463 op inv+;
#X text 79 464 B -A;
#X obj 15 623 s op;
#X text 79 605 A / B;
#X msg 15 604 op div;
#X text 75 621 rounded downwards;
#X obj 15 668 s op;
#X msg 15 649 op inv*;
#X text 80 650 B / A;
#X text 77 665 rounded towards 0;
#X obj 15 712 s op;
#X text 76 714 rounded downwards;
#X text 101 695 B / A;
#X text 68 760 modulo (goes with div);
#X text 65 809 modulo (goes with div);
#X msg 14 790 op swap%;
#X obj 15 286 s op;
#X obj 15 334 s op;
#X msg 15 267 op ignore;
#X text 90 268 A;
#X msg 15 315 op put;
#X text 76 315 B;
#X msg 15 693 op swapdiv;
#X obj 237 286 s op;
#X msg 237 267 op rem;
#X text 315 263 A % B;
#X obj 236 338 s op;
#X text 330 319 B % A;
#X text 314 278 remainder;
#X text 314 293 (goes with /);
#X msg 236 319 op swaprem;
#X text 327 333 remainder;
#X text 326 348 (goes with /);
#X obj 236 388 s op;
#X obj 236 435 s op;
#X msg 236 369 op gcd;
#X msg 236 416 op lcm;
#X text 298 373 greatest common divisor;
#X text 298 420 least common multiple;
#X obj 235 481 s op;
#X text 299 464 A or B \, bitwise;
#X msg 235 462 op;
#X obj 235 525 s op;
#X text 299 508 A xor B \, bitwise;
#X msg 235 506 op ^;
#X obj 235 578 s op;
#X msg 235 559 op &;
#X text 300 561 A and B \, bitwise;
#X obj 235 623 s op;
#X msg 235 604 op <<;
#X text 300 606 A * (2**(B % 32);
#X text 299 621 left-shifthing;
#X obj 235 669 s op;
#X msg 235 649 op >>;
#X text 299 666 right-shifthing;
#X text 300 652 A / (2**(B % 32);
#X obj 218 463 bng 15 250 50 0 empty empty empty 0 -6 0 8 -258699 -1
-1;
#X obj 235 714 s op;
#X msg 235 695 op;
#X obj 218 695 bng 15 250 50 0 empty empty empty 0 -6 0 8 -258699 -1
-1;
#X text 299 697 if A is zero then;
#X text 300 711 B else A;
#X obj 235 758 s op;
#X text 299 741 if A is zero then;
#X msg 235 739 op &&;
#X text 300 755 zero else B;
#X obj 236 807 s op;
#X msg 236 788 op min;
#X text 300 789 the lowest value;
#X text 301 804 in A \, B;
#X obj 500 287 s op;
#X msg 500 267 op max;
#X text 556 284 in A \, B;
#X text 557 268 the highest value;
#X obj 500 333 s op;
#X msg 500 313 op cmp;
#X text 551 310 -1 when A<B;
#X text 558 338 1 when A>B;
#X text 558 324 0 when A=B;
#X obj 500 386 s op;
#X msg 500 366 op ==;
#X text 557 367 is A equal to B ?;
#X text 556 385 1 = true \, 0 = false;
#X obj 500 433 s op;
#X msg 500 413 op !=;
#X text 557 414 is A not equal to B ?;
#X obj 500 477 s op;
#X msg 500 456 op >;
#X text 557 457 is A greater than B ?;
#X obj 500 523 s op;
#X msg 500 502 op <=;
#X text 557 503 is A not greater than B ?;
#X obj 500 572 s op;
#X msg 500 551 op <;
#X text 557 552 is A less than B ?;
#X obj 500 618 s op;
#X msg 500 597 op >=;
#X text 557 598 is A not less than B ?;
#X obj 500 666 s op;
#X msg 500 645 op sin*;
#X text 559 646 B * sin(A);
#X obj 500 713 s op;
#X msg 500 691 op cos*;
#X text 560 693 B * cos(A);
#X obj 500 758 s op;
#X msg 500 736 op atan;
#X text 560 737 arctan(A/B);
#X obj 499 805 s op;
#X msg 499 783 op tan*;
#X text 559 784 tanh(A);
#X obj 738 288 s op;
#X msg 738 268 op log*;
#X text 795 269 B*log(A);
#X text 794 286 in base e;
#X obj 738 334 s op;
#X msg 738 314 op gamma;
#X text 809 314 floor(pow(a/256.0 \, 256.0/b)*256.0);
#X obj 737 385 s op;
#X msg 737 366 op **;
#X text 799 368 A**B;
#X text 799 385 A raised to power B;
#X obj 737 431 s op;
#X msg 737 412 op abs-;
#X text 799 412 absolute value of (A-B);
#X obj 737 478 s op;
#X msg 737 459 op rand;
#X text 800 473 number below A;
#X text 799 458 randomly produces a non-negative;
#X obj 737 524 s op;
#X msg 737 505 op sqrt;
#X text 799 504 square root of A;
#X text 800 519 rounded downwards;
#X obj 737 566 s op;
#X msg 737 547 op sq-;
#X text 800 546 (A-B) times (A-B);
#X obj 740 614 s op;
#X obj 723 595 bng 15 250 50 0 empty empty empty 0 -6 0 8 -258699 -1
-1;
#X msg 740 595 op clip+;
#X text 808 595 A+B but output is clipped;
#X obj 740 660 s op;
#X obj 723 641 bng 15 250 50 0 empty empty empty 0 -6 0 8 -258699 -1
-1;
#X msg 740 641 op clip-;
#X text 808 641 A-B but output is clipped;
#X obj 740 706 s op;
#X obj 740 750 s op;
#X text 808 687 (A+B)/2;
#X msg 740 687 op avg;
#X msg 740 731 op hypot;
#X text 808 731 square root of (A*A+B*B);
#X obj 740 792 s op;
#X obj 723 773 bng 15 250 50 0 empty empty empty 0 -6 0 8 -258699 -1
-1;
#X msg 740 773 op erf;
#X text 807 773 integral of e^(-x*x)dx;
#N canvas 8 30 615 351 all_operators 0;
#X obj 174 99 # -;
#X obj 522 97 # swap%;
#X obj 186 177 # abs-;
#X obj 238 177 # rand;
#X obj 342 177 # sq-;
#X obj 290 177 # sqrt;
#X obj 144 99 # +;
#X obj 492 97 # %;
#X obj 260 99 # *;
#X obj 289 99 # /;
#X obj 206 99 # inv+;
#X obj 321 99 # div;
#X obj 367 98 # inv*;
#X obj 420 98 # swapdiv;
#X obj 35 99 # ignore;
#X obj 100 100 # put;
#X obj 35 125 # rem;
#X obj 78 125 # swaprem;
#X obj 149 125 # gcd;
#X obj 191 125 # lcm;
#X obj 234 125 # |;
#X obj 234 125 # |;
#X obj 263 125 # ^;
#X obj 293 125 # &;
#X obj 322 125 # <<;
#X obj 358 125 # >>;
#X obj 394 125 # ||;
#X obj 431 125 # &&;
#X obj 467 125 # min;
#X obj 35 151 # max;
#X obj 79 151 # cmp;
#X obj 124 151 # ==;
#X obj 162 151 # !=;
#X obj 199 151 # >;
#X obj 234 151 # <=;
#X obj 274 151 # <;
#X obj 304 152 # >=;
#X obj 341 152 # sin*;
#X obj 391 152 # cos*;
#X obj 442 152 # atan;
#X obj 493 152 # tanh*;
#X obj 35 177 # log*;
#X obj 87 177 # gamma;
#X obj 148 177 # **;
#X obj 388 177 # avg;
#X obj 433 177 # hypot;
#X restore 15 174 pd all_operators;
#X text 585 31 select values below;
#X text 14 233 select an operator below;
#X text 478 51 A;
#X text 683 53 B;
#X obj 479 182 # +;
#X obj 257 196 #color;
#X obj 297 162 #reverse;
#X obj 443 215 display;
#X obj 656 197 #unpack 3;
#X floatatom 605 244 5 0 0 0 - - -;
#X obj 642 150 t a a;
#X obj 597 191 display;
#X connect 7 0 185 0;
#X connect 7 0 187 0;
#X connect 7 0 191 0;
#X connect 8 0 185 1;
#X connect 9 0 11 0;
#X connect 10 0 13 0;
#X connect 12 0 185 0;
#X connect 16 0 14 0;
#X connect 18 0 17 0;
#X connect 21 0 20 0;
#X connect 27 0 26 0;
#X connect 31 0 29 0;
#X connect 34 0 33 0;
#X connect 42 0 23 0;
#X connect 45 0 43 0;
#X connect 47 0 44 0;
#X connect 49 0 37 0;
#X connect 51 0 50 0;
#X connect 57 0 53 0;
#X connect 62 0 60 0;
#X connect 63 0 61 0;
#X connect 68 0 66 0;
#X connect 71 0 69 0;
#X connect 73 0 72 0;
#X connect 76 0 75 0;
#X connect 80 0 79 0;
#X connect 85 0 84 0;
#X connect 91 0 89 0;
#X connect 94 0 93 0;
#X connect 98 0 97 0;
#X connect 102 0 101 0;
#X connect 107 0 106 0;
#X connect 111 0 110 0;
#X connect 114 0 113 0;
#X connect 117 0 116 0;
#X connect 120 0 119 0;
#X connect 123 0 122 0;
#X connect 126 0 125 0;
#X connect 129 0 128 0;
#X connect 132 0 131 0;
#X connect 135 0 134 0;
#X connect 138 0 137 0;
#X connect 142 0 141 0;
#X connect 145 0 144 0;
#X connect 149 0 148 0;
#X connect 152 0 151 0;
#X connect 156 0 155 0;
#X connect 160 0 159 0;
#X connect 164 0 162 0;
#X connect 168 0 166 0;
#X connect 173 0 170 0;
#X connect 174 0 171 0;
#X connect 178 0 176 0;
#X connect 187 0 186 0;
#X connect 187 0 188 0;
#X connect 189 0 190 0;
#X connect 191 0 192 0;
#X connect 191 1 189 0;
#X restore 115 574 pd More_Info;
#X text 36 492 - LEFT:;
#X text 412 575 updated for GridFlow version 0.8.0;
#X floatatom 151 163 5 0 0 0 - - -;
#X text 113 554 list of other operators;
#X obj 71 9 # +;
#X text 108 12 - OPERATORS ([# +] in this case) APPLY OPERATIONS ONTO
GRIDS;
#X text 109 345 Grid - accepts a grid that will be modified by the
operator according to the right inlet value. (list of operators in
[pd more_info]) ([# +] in this example.);
#X text 108 395 Grid - accepts grids that will modify the incoming
grid \, from the left inlet \, (preferably of the same dimensions.)
;
#X text 105 439 Integer - accepts integers that will modify the incoming
grid.;
#X text 107 492 Grid - outputs the modified data as a grid.;
#X obj 142 211 display;
#X obj 114 93 #color;
#X msg 114 60 255 0 0;
#X obj 114 253 #color;
#X obj 511 179 #in;
#X obj 511 249 #out window;
#X msg 541 156 open b001.jpg;
#X obj 511 113 t b b;
#X obj 511 58 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X obj 511 79 metro 100;
#X obj 511 202 # +;
#X obj 511 226 #clip;
#X text 204 164 <-- change this value.;
#X obj 114 181 # + 42;
#X text 293 109 <-- modify color;
#X connect 10 0 31 1;
#X connect 19 0 31 0;
#X connect 20 0 19 0;
#X connect 22 0 28 0;
#X connect 24 0 22 0;
#X connect 25 0 22 0;
#X connect 25 1 24 0;
#X connect 26 0 27 0;
#X connect 27 0 25 0;
#X connect 28 0 29 0;
#X connect 29 0 23 0;
#X connect 31 0 18 0;
#X connect 31 0 21 0;