aboutsummaryrefslogtreecommitdiff
path: root/modules/ramp~.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-10-08 17:22:41 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-10-08 17:22:41 +0000
commit4a05094c9a009707674c079c0481eaf8e1f8490f (patch)
treed63533d6b056451337017faa6deb69ea55788c2e /modules/ramp~.c
parentc39d22e4bd9c3b06c4199ea59d0a7faa51401f7f (diff)
converted float to t_float to support double-precision Pd, creb still needs to separate t_float and t_sample tho
svn path=/trunk/externals/creb/; revision=15546
Diffstat (limited to 'modules/ramp~.c')
-rw-r--r--modules/ramp~.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/ramp~.c b/modules/ramp~.c
index 526ec4e..e4d5ed4 100644
--- a/modules/ramp~.c
+++ b/modules/ramp~.c
@@ -51,20 +51,20 @@ void ramp_bang(t_ramp *x)
static t_int *ramp_perform(t_int *w)
{
- t_float *out = (float *)(w[3]);
+ t_float *out = (t_float *)(w[3]);
t_rampctl *ctl = (t_rampctl *)(w[1]);
t_int i;
t_int n = (t_int)(w[2]);
t_float x;
- t_float scale = ctl->c_blockscale ? 1.0f / (float)n : 1.0f;
+ t_float scale = ctl->c_blockscale ? 1.0f / (t_float)n : 1.0f;
x = ctl->c_offset;
for (i = 0; i < n; i++)
{
- *out++ = ((float)x++) * scale;
+ *out++ = ((t_float)x++) * scale;
}
ctl->c_offset = x; /* save state */