From 7d41c2213b5070d444fa17cdb04eeb9fdc955309 Mon Sep 17 00:00:00 2001 From: Katja Date: Sun, 6 Nov 2011 15:38:24 +0000 Subject: made smlib compliant with double precision svn path=/trunk/externals/smlib/; revision=15707 --- vmtof.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vmtof.c') diff --git a/vmtof.c b/vmtof.c index 828dcb6..5cfe7a6 100644 --- a/vmtof.c +++ b/vmtof.c @@ -9,11 +9,11 @@ typedef struct _vmtof t_object x_obj; } t_vmtof; -float mtof(float f) +t_float mtof(t_float f) { if (f <= -1500) return(0); else if (f > 1499) return(mtof(1499)); - else return (float)(8.17579891564 * exp(.0577622650 * f)); + else return (t_float)(8.17579891564 * exp(.0577622650 * f)); } static void vmtof_perform(t_vmtof *x, t_symbol *s, int argc, t_atom *argv) -- cgit v1.2.1