-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpdkl-reduce.pd
60 lines (60 loc) · 1.49 KB
/
pdkl-reduce.pd
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
#N canvas 760 214 736 554 12;
#X obj 236 67 t a b, f 23;
#X obj 455 33 inlet;
#X obj 231 18 inlet;
#X text 15 5 PDKL-REDUCE - list reducer;
#X text 13 126 INLETS:;
#X text 9 150 input/reduce insert;
#X text 11 223 OUTLETS:;
#X text 10 245 output/reduce send;
#X text 551 30 pdklist;
#X text 555 53 gpl v 3;
#X text 550 7 Derek Kwan 2017;
#X obj 235 124 list split 2;
#X obj 449 509 outlet;
#X text 167 97 peel off first two for binop;
#X obj 253 200 list;
#X obj 253 225 list split 1;
#X obj 453 70 t b a;
#X obj 273 300 list prepend;
#X text 501 103 get accumulated;
#X text 503 128 request next elt;
#X text 295 198 rest of list;
#X text 179 249 next elt;
#X obj 277 500 outlet;
#X obj 279 462 spigot 0;
#X obj 335 261 t b b, f 6;
#X text 443 284 last round: let results out;
#X obj 449 466 spigot 1;
#X obj 465 352 f;
#X msg 495 327 0;
#X msg 437 323 1;
#X obj 510 415 == 0;
#X text 542 305 and close reduce send;
#X text 245 43 input;
#X text 374 7 reduce insert;
#X text 507 497 reduce send;
#X text 198 483 output;
#X connect 0 0 11 0;
#X connect 0 1 28 0;
#X connect 1 0 16 0;
#X connect 2 0 0 0;
#X connect 11 0 12 0;
#X connect 11 1 14 1;
#X connect 14 0 15 0;
#X connect 15 0 17 0;
#X connect 15 1 14 1;
#X connect 15 2 24 0;
#X connect 16 0 14 0;
#X connect 16 1 17 1;
#X connect 17 0 23 0;
#X connect 17 0 26 0;
#X connect 23 0 22 0;
#X connect 24 0 17 0;
#X connect 24 1 29 0;
#X connect 26 0 12 0;
#X connect 27 0 23 1;
#X connect 27 0 30 0;
#X connect 28 0 27 0;
#X connect 29 0 27 0;
#X connect 30 0 26 1;