[PD-cvs] pd/src d_ctl.c,1.3.4.11,1.3.4.12
Tim Blechmann
timblech at users.sourceforge.net
Thu Feb 10 22:55:07 CET 2005
Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5244
Modified Files:
Tag: devel_0_38
d_ctl.c
Log Message:
Index: d_ctl.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/d_ctl.c,v
retrieving revision 1.3.4.11
retrieving revision 1.3.4.12
diff -C2 -d -r1.3.4.11 -r1.3.4.12
*** d_ctl.c 26 Jan 2005 19:23:16 -0000 1.3.4.11
--- d_ctl.c 10 Feb 2005 21:54:49 -0000 1.3.4.12
***************
*** 150,154 ****
t_float* slopes, t_float* slopestep)
{
! t_float slope = slopes[0];
t_float f = *value;
n>>=3;
--- 150,154 ----
t_float* slopes, t_float* slopestep)
{
! t_float slope = slopes[1];
t_float f = *value;
n>>=3;
***************
*** 186,189 ****
--- 186,190 ----
{
int nticks = x->x_inletwas * x->x_dspticktomsec;
+ int i;
if (!nticks) nticks = 1;
x->x_ticksleft = nticks;
***************
*** 191,194 ****
--- 192,202 ----
x->x_inc = x->x_1overn * x->x_biginc;
x->x_retarget = 0;
+
+ /* tb: rethink!!! this us ugly */
+ for (i = 0; i != 4; ++i)
+ {
+ x->x_slopes[i] = i*x->x_inc;
+ }
+ x->x_slopestep = 4 * x->x_inc;
}
if (x->x_ticksleft)
More information about the Pd-cvs
mailing list