aboutsummaryrefslogtreecommitdiff
path: root/unittests/itov-unittest.pd
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/itov-unittest.pd')
-rw-r--r--unittests/itov-unittest.pd29
1 files changed, 29 insertions, 0 deletions
diff --git a/unittests/itov-unittest.pd b/unittests/itov-unittest.pd
new file mode 100644
index 0000000..4cebb3c
--- /dev/null
+++ b/unittests/itov-unittest.pd
@@ -0,0 +1,29 @@
+#N canvas 407 51 722 560 10;
+#X obj 49 186 unit-test-frame;
+#X obj 49 58 loadbang;
+#X msg 49 90 itov 0;
+#X text 118 41 - value of first class;
+#X text 118 68 - number of classes;
+#X text 118 55 - value of last class;
+#X text 117 26 arguments:;
+#X text 117 88 output:;
+#X text 121 -33 itov: intex to value;
+#X text 118 -4 input:;
+#X text 119 12 - class index;
+#X text 114 151 out-of-range input is clipped;
+#X text 118 117 - center value of class i;
+#X text 118 103 - lower value of class i;
+#X text 118 131 - upper value of class i;
+#X obj 318 66 cos;
+#X obj 318 42 / 128;
+#X obj 318 89 + 1;
+#X obj 318 138 smlib/itov 0 1 512;
+#X obj 318 112 * 256;
+#X connect 0 2 16 0;
+#X connect 1 0 2 0;
+#X connect 2 0 0 0;
+#X connect 15 0 17 0;
+#X connect 16 0 15 0;
+#X connect 17 0 19 0;
+#X connect 18 1 0 1;
+#X connect 19 0 18 0;