[PD-cvs] externals/zexy/src z~.c,1.2,1.3

IOhannes m zmölnig zmoelnig at users.sourceforge.net
Sat Nov 19 17:25:27 CET 2005


Update of /cvsroot/pure-data/externals/zexy/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30938

Modified Files:
	z~.c 
Log Message:
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)


Index: z~.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/z~.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** z~.c	19 May 2005 09:42:55 -0000	1.2
--- z~.c	19 Nov 2005 16:25:25 -0000	1.3
***************
*** 102,105 ****
--- 102,106 ----
    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);
***************
*** 127,130 ****
--- 128,132 ----
  
    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~"));





More information about the Pd-cvs mailing list