aboutsummaryrefslogtreecommitdiff
path: root/weightmap/src
diff options
context:
space:
mode:
Diffstat (limited to 'weightmap/src')
-rw-r--r--weightmap/src/weightmap-help.pd18
-rw-r--r--weightmap/src/weightmap-test.pd14
2 files changed, 22 insertions, 10 deletions
diff --git a/weightmap/src/weightmap-help.pd b/weightmap/src/weightmap-help.pd
index 91709ff..d91ee6e 100644
--- a/weightmap/src/weightmap-help.pd
+++ b/weightmap/src/weightmap-help.pd
@@ -1,4 +1,4 @@
-#N canvas 18 0 910 582 10;
+#N canvas 0 26 873 582 10;
#X text 33 1 weightmap : map probabilities to associated integers;
#X obj 114 364 print wmap_dump;
#X obj 8 364 print wmap_out;
@@ -35,14 +35,14 @@ outlet-2;
#X text 113 239 adjust maximum input-value;
#X text 131 297 adjust length of weight-vector;
#X msg 67 311 resize 2;
-#X floatatom 14 44 5 0 0;
+#X floatatom 14 44 5 0 0 0 - - -;
#X text 63 43 output matching weight index;
#X text 371 367 map IDX WEIGHT :;
#X text 491 367 associate element IDX (int) of the stored weight-vector
with weight WEIGHT (float). Multiple (index \, weight) pairs may also
be specified.;
#X text 393 335 set WEIGHTS :;
-#X text 600 556 Bryan Jurish <moocow@ling.uni-potsdam.de>;
+#X text 600 514 Bryan Jurish <moocow@ling.uni-potsdam.de>;
#X text 393 253 resize SIZE : resizes the weight-vector to SIZE elements
;
#X text 491 335 sets the stored weight-vector to WEIGHTS. possibly
@@ -59,6 +59,18 @@ incoming floats to generate integers at the outlet. Greater input floats
do not neccesarily correspond to greater stored "weights" \, but greater
"weights" do cause their associated indices to be output more frequently
for random input floats.;
+#N canvas 260 141 494 344 META 0;
+#X text 12 145 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
+Wilkes for Pd version 0.42.;
+#X text 12 25 LICENSE GPL v2;
+#X text 12 125 AUTHOR Bryan Jurish <moocow@ling.uni-potsdam.de>;
+#X text 12 5 KEYWORDS control;
+#X text 12 45 DESCRIPTION map probabilities to associated integers
+;
+#X text 12 65 INLET_0 float set map zero dump max resize;
+#X text 12 85 OUTLET_0 float;
+#X text 12 105 OUTLET_1 list;
+#X restore 823 556 pd META;
#X connect 3 0 2 0;
#X connect 3 1 1 0;
#X connect 18 0 3 0;
diff --git a/weightmap/src/weightmap-test.pd b/weightmap/src/weightmap-test.pd
index 41ca643..a41dcc4 100644
--- a/weightmap/src/weightmap-test.pd
+++ b/weightmap/src/weightmap-test.pd
@@ -1,18 +1,18 @@
-#N canvas 33 18 810 430 10;
+#N canvas 0 31 810 430 10;
#X obj 94 168 weightmap 3;
#X msg 154 41 dump;
#X obj 215 210 print wm_out2;
#X msg 158 63 zero;
#X msg 196 41 resize \$1;
-#X floatatom 195 12 5 0 0;
-#X floatatom 548 33 5 0 0;
-#X floatatom 598 33 5 0 0;
+#X floatatom 195 12 5 0 0 0 - - -;
+#X floatatom 548 33 5 0 0 0 - - -;
+#X floatatom 598 33 5 0 0 0 - - -;
#X obj 548 59 pack 0 0;
#X text 549 116 bad input;
#X msg 412 11 set 420 24 7;
#X msg 549 82 map \$1 \$2;
#X msg 549 132 map 0 1 1 2 2;
-#X floatatom 106 13 5 0 0;
+#X floatatom 106 13 5 0 0 0 - - -;
#N canvas 0 0 820 480 statistics 0;
#X obj 146 16 inlet;
#X msg 169 87 dump;
@@ -86,14 +86,14 @@
#X obj 24 13 tgl 15 0 empty empty empty 20 8 0 8 -262144 -1 -1 0 1
;
#X obj 24 57 random 100;
-#X floatatom 49 12 5 0 0;
+#X floatatom 49 12 5 0 0 0 - - -;
#X obj 335 294 print -----;
#X msg 412 37 set 10 20 30 40;
#X msg 68 238 0;
#X msg 70 268 1;
#X obj 24 35 metro 1;
#X msg 412 61 set 50 25 25;
-#X floatatom 285 12 5 0 0;
+#X floatatom 285 12 5 0 0 0 - - -;
#X msg 286 41 max \$1;
#X msg 410 85 set 2 1 1;
#X obj 6 101 tgl 15 0 empty empty empty 20 8 0 8 -262144 -1 -1 0 1