aboutsummaryrefslogtreecommitdiff
path: root/unittests/lmax-unittest.pd
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/lmax-unittest.pd')
-rw-r--r--unittests/lmax-unittest.pd20
1 files changed, 20 insertions, 0 deletions
diff --git a/unittests/lmax-unittest.pd b/unittests/lmax-unittest.pd
new file mode 100644
index 0000000..f468042
--- /dev/null
+++ b/unittests/lmax-unittest.pd
@@ -0,0 +1,20 @@
+#N canvas 390 195 728 520 10;
+#X obj 49 128 unit-test-frame;
+#X obj 49 58 loadbang;
+#X obj 370 23 - 0.5;
+#X msg 382 58 clear;
+#X obj 370 -34 & 127;
+#X obj 370 -3 / 128;
+#X obj 370 87 smlib/lmax 10;
+#X msg 49 90 lmax 0;
+#X text 48 8 argument: half-decay time (in number of activations);
+#X text 49 -9 lmax: leaky maximum;
+#X connect 0 2 4 0;
+#X connect 0 3 3 0;
+#X connect 1 0 7 0;
+#X connect 2 0 6 0;
+#X connect 3 0 6 0;
+#X connect 4 0 5 0;
+#X connect 5 0 2 0;
+#X connect 6 0 0 1;
+#X connect 7 0 0 0;