From 4a83a80c044c9613bd50a63dd9ac5a97e2c028b5 Mon Sep 17 00:00:00 2001 From: Tom Schouten Date: Tue, 15 Aug 2006 15:11:52 +0000 Subject: creb 0.9.2 import svn path=/trunk/externals/creb/; revision=5607 --- modules/tabreadmix~.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'modules/tabreadmix~.c') diff --git a/modules/tabreadmix~.c b/modules/tabreadmix~.c index d787f02..9661ec4 100644 --- a/modules/tabreadmix~.c +++ b/modules/tabreadmix~.c @@ -17,8 +17,6 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include -#include #include "extlib_util.h" /******************** tabreadmix~ ***********************/ @@ -105,11 +103,14 @@ static t_int *tabreadmix_tilde_perform(t_int *w) /* mix and write */ newpos = (int)(*pos++); - *out++ = currgain * buf[x->x_currpos++] + prevgain * buf[x->x_prevpos++]; + *out++ = currgain * buf[x->x_currpos++] + + prevgain * buf[x->x_prevpos++]; /* advance oscillator */ - c = x->x_xfade_state_c * x->x_xfade_cos - x->x_xfade_state_s * x->x_xfade_sin; - s = x->x_xfade_state_c * x->x_xfade_sin + x->x_xfade_state_s * x->x_xfade_cos; + c = x->x_xfade_state_c * x->x_xfade_cos + - x->x_xfade_state_s * x->x_xfade_sin; + s = x->x_xfade_state_c * x->x_xfade_sin + + x->x_xfade_state_s * x->x_xfade_cos; x->x_xfade_state_c = c; x->x_xfade_state_s = s; } -- cgit v1.2.1