diff options
author | Katja <katjav@users.sourceforge.net> | 2011-11-06 15:38:24 +0000 |
---|---|---|
committer | Katja <katjav@users.sourceforge.net> | 2011-11-06 15:38:24 +0000 |
commit | 7d41c2213b5070d444fa17cdb04eeb9fdc955309 (patch) | |
tree | 930e28f8ef74a6343d1cf3962e21048447651420 /hip.c | |
parent | 2e5402b354317ba36480d00de4f1aced6755b7cf (diff) |
made smlib compliant with double precision
svn path=/trunk/externals/smlib/; revision=15707
Diffstat (limited to 'hip.c')
-rw-r--r-- | hip.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -4,18 +4,18 @@ typedef struct hipctl
{
- float c_x;
- float c_coef;
+ t_float c_x;
+ t_float c_coef;
} t_hipctl;
typedef struct hip
{
t_object x_obj;
- float x_sr;
- float x_hz;
+ t_float x_sr;
+ t_float x_hz;
t_hipctl x_cspace;
t_hipctl *x_ctl;
- float x_f;
+ t_float x_f;
} t_hip;
t_class *hip_class;
@@ -45,11 +45,11 @@ static void hip_ft1(t_hip *x, t_floatarg f) static void hip_perform(t_hip *x, t_float in)
{
t_hipctl *c = x->x_ctl;
- float last = c->c_x;
- float coef = c->c_coef;
- float out;
+ t_float last = c->c_x;
+ t_float coef = c->c_coef;
+ t_float out;
- float new = in + coef * last;
+ t_float new = in + coef * last;
out = new - last;
last = new;
|