blob: bb411a76fe6d37e08ab1ee011683cae5427e7f60 (
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
|
#N canvas 429 42 759 521 10;
#X obj 49 128 testtools/unit-test-frame;
#X obj 49 58 loadbang;
#X obj 397 67 - 1;
#X msg 49 91 deltas 0;
#X text 39 -60 deltas: generates vector with differences between last
input and past inputs;
#X text 235 31 x(i)-x(i-a);
#X text 235 45 x(i)-x(i-(a+1));
#X text 235 59 x(i)-x(i-(a+2));
#X text 235 85 x(i)-x(i-(b));
#X text 526 28 [deltas a b c];
#X text 525 74 requires b<=c;
#X text 525 58 c = buffer size;
#X obj 370 -11 cos;
#X obj 370 38 t b f;
#X text 41 -22 ('vector' = list);
#X obj 370 13 * 0.25;
#X obj 370 -38 / 32;
#X msg 427 67 clear;
#X obj 370 96 smlib/deltas 64 64 128;
#X connect 0 2 16 0;
#X connect 0 3 17 0;
#X connect 1 0 3 0;
#X connect 2 0 18 0;
#X connect 3 0 0 0;
#X connect 12 0 15 0;
#X connect 13 0 18 0;
#X connect 13 1 2 0;
#X connect 15 0 13 0;
#X connect 16 0 12 0;
#X connect 17 0 18 0;
#X connect 18 0 0 1;
|