aboutsummaryrefslogtreecommitdiff
path: root/generics/distributor.pd
blob: c871a0518d080a2eb2b6f476e3b932a1512bcefe (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
#N canvas 441 449 580 241 10;
#X obj 18 182 -;
#X obj 18 61 unpack 0 0 0;
#X obj 18 42 pack 0 0 0;
#X obj 182 182 +;
#X obj 18 153 t a a;
#X text 185 123 see distributive-test.pd;
#X text 185 100 when the distributor is 0 the rule is respected.;
#X text 16 219 distributor;
#X text 180 219 antidistributor;
#X obj 116 113 \$2;
#X obj 91 112 \$2;
#X obj 95 133 \$1;
#X obj 43 106 \$1;
#X obj 18 106 \$2;
#X obj 18 80 t a a a;
#X obj 164 19 \$1.inlet c;
#X obj 91 19 \$1.inlet b;
#X obj 18 19 \$1.inlet a;
#X obj 18 201 \$1.outlet a(bc)-(ab+ac);
#X obj 182 201 \$1.outlet a(bc)+(ab+ac);
#X text 184 71 distributivity rule for operator \$3 over operator \$2
is:;
#X text 184 85 a \$3 (b \$2 c) - ((a \$3 b) \$2 (a \$3 c)) = 0;
#X connect 0 0 18 0;
#X connect 1 0 14 0;
#X connect 1 1 10 1;
#X connect 1 1 12 0;
#X connect 1 2 9 1;
#X connect 1 2 12 1;
#X connect 2 0 1 0;
#X connect 3 0 19 0;
#X connect 4 0 0 0;
#X connect 4 1 3 0;
#X connect 9 0 11 1;
#X connect 10 0 11 0;
#X connect 11 0 3 1;
#X connect 11 0 0 1;
#X connect 12 0 13 1;
#X connect 13 0 4 0;
#X connect 14 0 13 0;
#X connect 14 1 10 0;
#X connect 14 2 9 0;
#X connect 15 0 2 2;
#X connect 16 0 2 1;
#X connect 17 0 2 0;