aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Henry <nusmuk@users.sourceforge.net>2013-05-08 23:19:25 +0000
committerCyrille Henry <nusmuk@users.sourceforge.net>2013-05-08 23:19:25 +0000
commit3c3878f5ed455573123ebe61dce9601df8dab35f (patch)
treed487bbf10573a48c19b2b2430f73f1bd8f791a18
parent5c6f1259bfb8af3f95c90f2112f4da7b1d25cbfa (diff)
add a missing functin (mix)
svn path=/trunk/externals/pmpd/; revision=17117
-rw-r--r--pmpd_core.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pmpd_core.c b/pmpd_core.c
index a56753d..91254b5 100644
--- a/pmpd_core.c
+++ b/pmpd_core.c
@@ -17,6 +17,11 @@ t_float sqr(t_float x)
return x*x ;
}
+t_float mix(t_float X, t_float Y, t_float mix)
+{
+ return (1-mix)*X + mix*Y ;
+}
+
t_float tabread2(t_pmpd *x, t_float pos, t_symbol *array)
{
t_garray *a;