aboutsummaryrefslogtreecommitdiff
path: root/tripleRand.c
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 /tripleRand.c
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
Diffstat (limited to 'tripleRand.c')
-rw-r--r--tripleRand.c3
1 files changed, 2 insertions, 1 deletions
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);