aboutsummaryrefslogtreecommitdiff
path: root/unittests/lavg-unittest.pd
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/lavg-unittest.pd')
-rw-r--r--unittests/lavg-unittest.pd20
1 files changed, 20 insertions, 0 deletions
diff --git a/unittests/lavg-unittest.pd b/unittests/lavg-unittest.pd
new file mode 100644
index 0000000..5415e78
--- /dev/null
+++ b/unittests/lavg-unittest.pd
@@ -0,0 +1,20 @@
+#N canvas 390 195 737 489 10;
+#X obj 49 128 unit-test-frame;
+#X obj 49 58 loadbang;
+#X msg 382 58 clear;
+#X obj 370 -34 & 127;
+#X obj 370 88 smlib/lavg 10;
+#X obj 370 -3 / 64;
+#X obj 370 24 - 1;
+#X text 37 -16 lavg: leaky average;
+#X text 36 1 argument: half-decay time (in number of activations);
+#X msg 49 88 lavg 0;
+#X connect 0 2 3 0;
+#X connect 0 3 2 0;
+#X connect 1 0 9 0;
+#X connect 2 0 4 0;
+#X connect 3 0 5 0;
+#X connect 4 0 0 1;
+#X connect 5 0 6 0;
+#X connect 6 0 4 0;
+#X connect 9 0 0 0;