From f49691278949ac0b5ee0bac198855cf90c5aaf12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Sat, 19 Nov 2005 16:25:25 +0000 Subject: added 2nd inlet, so people recognize that the delay is settable on the fly (it has been so since the beginning, but people consider floats and signals to be the same so they believe that sending a number to the 1st inlet does not set the delay); this change is fully backwards compatible (sending a number to the 2nd inlet is the same as sending it to the 1st inlet) svn path=/trunk/externals/zexy/; revision=3973 --- src/z~.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/z~.c b/src/z~.c index 23f09b6..10205f4 100644 --- a/src/z~.c +++ b/src/z~.c @@ -101,6 +101,7 @@ static void *zNdelay_new(t_floatarg f) } x->phase = 0; + inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("float"), gensym("ft1")); outlet_new(&x->x_obj, gensym("signal")); return (x); } @@ -126,6 +127,7 @@ void z_tilde_setup(void) class_addmethod(zNdelay_class, (t_method)zNdelay_dsp, gensym("dsp"), 0); class_addfloat(zNdelay_class, zdel_float); + class_addmethod(zNdelay_class, (t_method)zdel_float, gensym("ft1"), A_FLOAT, 0); class_addmethod(zNdelay_class, (t_method)zdel_helper, gensym("help"), 0); class_sethelpsymbol(zNdelay_class, gensym("zexy/z~")); zexy_register("z~"); -- cgit v1.2.1