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 /lrange.c | |
parent | 2e5402b354317ba36480d00de4f1aced6755b7cf (diff) |
made smlib compliant with double precision
svn path=/trunk/externals/smlib/; revision=15707
Diffstat (limited to 'lrange.c')
-rw-r--r-- | lrange.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -7,10 +7,10 @@ static t_class *lrange_class; typedef struct _lrange
{
t_object x_obj;
- float m_min;
- float m_max;
- float m_c_leak;
- float m_leak;
+ t_float m_min;
+ t_float m_max;
+ t_float m_c_leak;
+ t_float m_leak;
} t_lrange;
@@ -23,7 +23,7 @@ static void lrange_perform(t_lrange *x, t_float in) static void lrange_setHalfDecay(t_lrange *x, t_float halfDecayTime)
{
- x->m_c_leak=(float)powf(.5,(1.0f/halfDecayTime));
+ x->m_c_leak=(t_float)powf(.5,(1.0f/halfDecayTime));
x->m_leak=1.0f-x->m_c_leak;
}
|