diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2005-11-19 16:25:25 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2005-11-19 16:25:25 +0000 |
commit | f49691278949ac0b5ee0bac198855cf90c5aaf12 (patch) | |
tree | 1676ba12692b97249ff78d49e7613ca4ac0aef2e | |
parent | 0adc030bbe2b2f66561ac3cc2b3b02d924705690 (diff) |
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
-rw-r--r-- | src/z~.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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~"); |