aboutsummaryrefslogtreecommitdiff
path: root/unittests/vlavg-unittest.pd
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/vlavg-unittest.pd')
-rw-r--r--unittests/vlavg-unittest.pd27
1 files changed, 27 insertions, 0 deletions
diff --git a/unittests/vlavg-unittest.pd b/unittests/vlavg-unittest.pd
new file mode 100644
index 0000000..d6837b9
--- /dev/null
+++ b/unittests/vlavg-unittest.pd
@@ -0,0 +1,27 @@
+#N canvas 374 132 746 533 10;
+#X obj 49 165 unit-test-frame;
+#X obj 49 58 loadbang;
+#X obj 370 -34 & 127;
+#X obj 370 -3 / 64;
+#X obj 370 24 - 1;
+#X obj 370 131 smlib/vlavg 10;
+#X msg 49 87 vlavg 0;
+#X obj 370 103 pack;
+#X obj 370 55 t f f;
+#X obj 397 80 + 0.1;
+#X text 11 -32 vlavg: vector leaky average;
+#X text 12 -13 the argument is the half-decay expressed in number of
+activations;
+#X text 12 18 This test only works one time after patch load because
+the averager has no reset option.;
+#X connect 0 2 2 0;
+#X connect 1 0 6 0;
+#X connect 2 0 3 0;
+#X connect 3 0 4 0;
+#X connect 4 0 8 0;
+#X connect 5 0 0 1;
+#X connect 6 0 0 0;
+#X connect 7 0 5 0;
+#X connect 8 0 7 0;
+#X connect 8 1 9 0;
+#X connect 9 0 7 1;