aboutsummaryrefslogtreecommitdiff
path: root/cyclone/sickle
diff options
context:
space:
mode:
authorN.N. <krzyszcz@users.sourceforge.net>2004-02-19 22:23:18 +0000
committerN.N. <krzyszcz@users.sourceforge.net>2004-02-19 22:23:18 +0000
commitd0f6986345970955d6390a6953c35babf587c262 (patch)
treeb9c55d804a317558da506f9655ff495856ef47d8 /cyclone/sickle
parentd405128358369b5b7424c086c67345d12edfde7d (diff)
many small improvements in toxy, plustot added
svn path=/trunk/externals/miXed/; revision=1321
Diffstat (limited to 'cyclone/sickle')
-rw-r--r--cyclone/sickle/rand.c5
1 files changed, 2 insertions, 3 deletions
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);
}