aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2007-12-17 20:32:47 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2007-12-17 20:32:47 +0000
commit2b0d3f46c926ecdd51049e9e7cc5451265738d0f (patch)
treeab7c8ed09f38bc759a6104fd4a1843547a308644
parentb36fa8b4ea0c4e164f5906678c004893656ed105 (diff)
fixed bug that was exposed in help-patch; added example for list-ranges
in help-patch svn path=/trunk/externals/markex/; revision=9098
-rw-r--r--tripleRand-help.pd20
-rw-r--r--tripleRand.c3
2 files changed, 13 insertions, 10 deletions
diff --git a/tripleRand-help.pd b/tripleRand-help.pd
index 4e6714f..262b150 100644
--- a/tripleRand-help.pd
+++ b/tripleRand-help.pd
@@ -1,5 +1,4 @@
#N canvas 132 108 604 504 10;
-#X text 124 68 GEM object;
#X obj 136 234 unpack 0 0 0;
#X floatatom 136 280 4 0 0 0 - - -;
#X floatatom 175 280 4 0 0 0 - - -;
@@ -9,11 +8,14 @@
at once within the range specified.;
#X obj 136 184 tripleRand 5;
#X floatatom 215 146 5 0 0 0 - - -;
-#X obj 136 134 bng 15 250 50 0 empty empty empty 0 -6 32 8 -262144
--1 -1;
-#X connect 1 0 2 0;
-#X connect 1 1 3 0;
-#X connect 1 2 4 0;
-#X connect 7 0 1 0;
-#X connect 8 0 7 1;
-#X connect 9 0 7 0;
+#X obj 136 134 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+-1;
+#X text 123 68 MarkEx object;
+#X msg 278 142 1 5 10;
+#X connect 0 0 1 0;
+#X connect 0 1 2 0;
+#X connect 0 2 3 0;
+#X connect 6 0 0 0;
+#X connect 7 0 6 1;
+#X connect 8 0 6 0;
+#X connect 10 0 6 1;
diff --git a/tripleRand.c b/tripleRand.c
index 7bd893d..ead450a 100644
--- a/tripleRand.c
+++ b/tripleRand.c
@@ -91,7 +91,7 @@ static void *tripleRand_new(t_floatarg arg1, t_floatarg arg2, t_floatarg arg3)
x->x_range[2] = (float)arg3;
x->t_out1 = outlet_new(&x->x_obj, 0);
- inlet_new(&x->x_obj, &x->x_obj.ob_pd, &s_list, gensym("newVals"));
+ inlet_new(&x->x_obj, &x->x_obj.ob_pd, &s_float, gensym("newVals"));
return (x);
}
@@ -99,6 +99,7 @@ void tripleRand_setup(void)
{
tripleRand_class = class_new(gensym("tripleRand"), (t_newmethod)tripleRand_new, 0,
sizeof(t_tripleRand), 0, A_DEFFLOAT, A_DEFFLOAT, A_DEFFLOAT, 0);
+
class_addbang(tripleRand_class, (t_method)tripleRand_bang);
class_addmethod(tripleRand_class, (t_method)setTripleRandVals,
gensym("newVals"), A_GIMME, A_NULL);