From 04f9a0c239d6f38d7f5ed70671d70ec30beb7bf5 Mon Sep 17 00:00:00 2001 From: Katja Date: Sun, 13 Nov 2011 15:09:18 +0000 Subject: add unittest dir plus content to smlib svn path=/trunk/externals/smlib/; revision=15735 --- unittests/threshold-unittest.pd | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 unittests/threshold-unittest.pd (limited to 'unittests/threshold-unittest.pd') diff --git a/unittests/threshold-unittest.pd b/unittests/threshold-unittest.pd new file mode 100644 index 0000000..c0980fb --- /dev/null +++ b/unittests/threshold-unittest.pd @@ -0,0 +1,25 @@ +#N canvas 136 22 740 495 10; +#X obj 49 186 unit-test-frame; +#X obj 49 121 loadbang; +#X msg 370 152 1; +#X msg 529 152 0; +#X obj 370 120 smlib/threshold 0.9 0 0.1 0; +#X obj 370 58 line 0 1; +#X obj 370 88 & 1; +#X msg 370 31 0 \, 512 600; +#X msg 49 154 threshold 700; +#X text 3 18 threshold monitors its input float stream and outputs +bangs when the signal exceeds a specified "trigger" value \, and also +when the input value recedes below a "rest" value. You can specify +debounce in number of floats received \, for the threshold~ to wait +after the two event types before triggering again.; +#X connect 0 3 7 0; +#X connect 1 0 8 0; +#X connect 2 0 0 1; +#X connect 3 0 0 1; +#X connect 4 0 2 0; +#X connect 4 1 3 0; +#X connect 5 0 6 0; +#X connect 6 0 4 0; +#X connect 7 0 5 0; +#X connect 8 0 0 0; -- cgit v1.2.1