aboutsummaryrefslogtreecommitdiff
path: root/vstd.c
diff options
context:
space:
mode:
authorKatja <katjav@users.sourceforge.net>2011-11-06 15:38:24 +0000
committerKatja <katjav@users.sourceforge.net>2011-11-06 15:38:24 +0000
commit7d41c2213b5070d444fa17cdb04eeb9fdc955309 (patch)
tree930e28f8ef74a6343d1cf3962e21048447651420 /vstd.c
parent2e5402b354317ba36480d00de4f1aced6755b7cf (diff)
made smlib compliant with double precision
svn path=/trunk/externals/smlib/; revision=15707
Diffstat (limited to 'vstd.c')
-rw-r--r--vstd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vstd.c b/vstd.c
index 538cb94..c88807c 100644
--- a/vstd.c
+++ b/vstd.c
@@ -12,18 +12,18 @@ typedef struct _vstd
static void vstd_perform(t_vstd *x, t_symbol *s, int argc, t_atom *argv)
{
- float sumsq=0.0f;
- float sum=0.0f;
+ t_float sumsq=0.0f;
+ t_float sum=0.0f;
int i;
for (i = 0; i < argc; i++)
{
- float tmp=atom_getfloat(&argv[i]);
+ t_float tmp=atom_getfloat(&argv[i]);
sumsq+= tmp*tmp;
sum+=tmp;
}
sumsq/=argc;
sum/=argc;
- outlet_float(x->x_obj.ob_outlet, (float)sqrtf(sumsq-sum*sum));
+ outlet_float(x->x_obj.ob_outlet, (t_float)sqrtf(sumsq-sum*sum));
}
static void *vstd_new( t_float halfDecayTime)