From d0f6986345970955d6390a6953c35babf587c262 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Thu, 19 Feb 2004 22:23:18 +0000 Subject: many small improvements in toxy, plustot added svn path=/trunk/externals/miXed/; revision=1321 --- cyclone/sickle/rand.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cyclone/sickle/rand.c') diff --git a/cyclone/sickle/rand.c b/cyclone/sickle/rand.c index 146cbc9..30014a5 100644 --- a/cyclone/sickle/rand.c +++ b/cyclone/sickle/rand.c @@ -11,7 +11,6 @@ typedef struct _rand { t_sic x_sic; - t_float x_rate; double x_lastphase; double x_nextphase; float x_rcpsr; @@ -71,7 +70,7 @@ static void rand_dsp(t_rand *x, t_signal **sp) dsp_add(rand_perform, 4, x, sp[0]->s_n, sp[0]->s_vec, sp[1]->s_vec); } -static void *rand_new(t_floatarg inirate) +static void *rand_new(t_floatarg f) { t_rand *x = (t_rand *)pd_new(rand_class); /* borrowed from d_osc.c, LATER rethink */ @@ -80,7 +79,7 @@ static void *rand_new(t_floatarg inirate) x->x_lastphase = 0.; x->x_nextphase = 1.; /* start from 0, force retargetting */ x->x_target = x->x_scaling = 0; - x->x_rate = (inirate > 0 ? -inirate : 0); + sic_newinlet((t_sic *)x, (f > 0. ? -f : 0.)); outlet_new((t_object *)x, &s_signal); return (x); } -- cgit v1.2.1