From 3c3878f5ed455573123ebe61dce9601df8dab35f Mon Sep 17 00:00:00 2001 From: Cyrille Henry Date: Wed, 8 May 2013 23:19:25 +0000 Subject: add a missing functin (mix) svn path=/trunk/externals/pmpd/; revision=17117 --- pmpd_core.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- cgit v1.2.1