aboutsummaryrefslogtreecommitdiff
path: root/unittests/prevl-unittest.pd
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/prevl-unittest.pd')
-rw-r--r--unittests/prevl-unittest.pd31
1 files changed, 31 insertions, 0 deletions
diff --git a/unittests/prevl-unittest.pd b/unittests/prevl-unittest.pd
new file mode 100644
index 0000000..b23f5d0
--- /dev/null
+++ b/unittests/prevl-unittest.pd
@@ -0,0 +1,31 @@
+#N canvas 429 42 759 521 10;
+#X obj 49 128 unit-test-frame;
+#X obj 49 58 loadbang;
+#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 obj 370 13 * 0.25;
+#X obj 370 -38 / 32;
+#X msg 427 67 clear;
+#X obj 370 96 smlib/prevl 64 64 128;
+#X msg 49 91 prevl 0;
+#X text -7 -44 prevl: generates vector with past input values (float)
+;
+#X text 215 66 ...;
+#X text 217 27 x(i-a);
+#X text 217 41 x(i-(a+1));
+#X text 217 55 x(i-(a+2));
+#X text 217 81 x(i-(b));
+#X connect 0 2 8 0;
+#X connect 0 3 9 0;
+#X connect 1 0 11 0;
+#X connect 5 0 7 0;
+#X connect 6 0 10 0;
+#X connect 6 1 10 0;
+#X connect 7 0 6 0;
+#X connect 8 0 5 0;
+#X connect 9 0 10 0;
+#X connect 10 0 0 1;
+#X connect 11 0 0 0;