aboutsummaryrefslogtreecommitdiff
path: root/cyclone/sickle/rand.c
diff options
context:
space:
mode:
authorN.N. <electrickery@users.sourceforge.net>2015-01-04 17:26:57 +0000
committerN.N. <electrickery@users.sourceforge.net>2015-01-04 17:26:57 +0000
commit8cd22bf16013235da90136407e18701555b393f4 (patch)
treedac54302122d3a3b6a2d0bb83f4b27ad54b8c240 /cyclone/sickle/rand.c
parentec752e28dcbfc8e8e9b0696dbd2e0583c10fe5f6 (diff)
removed extra inlet, fixed argument. bug: #1177 cyclone/rand~ does not use its argument as frequency
svn path=/trunk/externals/miXed/; revision=17403
Diffstat (limited to 'cyclone/sickle/rand.c')
-rw-r--r--cyclone/sickle/rand.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cyclone/sickle/rand.c b/cyclone/sickle/rand.c
index c6126d6..97aae29 100644
--- a/cyclone/sickle/rand.c
+++ b/cyclone/sickle/rand.c
@@ -79,7 +79,7 @@ static void *rand_new(t_floatarg f)
x->x_lastphase = 0.;
x->x_nextphase = 1.; /* start from 0, force retargetting */
x->x_target = x->x_scaling = 0;
- sic_newinlet((t_sic *)x, (f > 0. ? -f : 0.));
+ x->x_sic.s_f = (f > 0. ? f : 0.);
outlet_new((t_object *)x, &s_signal);
return (x);
}
@@ -91,4 +91,6 @@ void rand_tilde_setup(void)
sizeof(t_rand), 0,
A_DEFFLOAT, 0);
sic_setup(rand_class, rand_dsp, SIC_FLOATTOSIGNAL);
+ logpost(NULL, 4, "this is cyclone/rand~ %s, %dth %s build",
+ CYCLONE_VERSION, CYCLONE_BUILD, CYCLONE_RELEASE);
}