From 33ffa11a2661b82b8d300a3df731de812d590153 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Wed, 11 Dec 2013 15:02:34 +0000 Subject: reverted to old sin & cos method --- rotord/src/nodes_maths.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rotord/src/nodes_maths.h') diff --git a/rotord/src/nodes_maths.h b/rotord/src/nodes_maths.h index baa26d6..1043599 100644 --- a/rotord/src/nodes_maths.h +++ b/rotord/src/nodes_maths.h @@ -128,11 +128,12 @@ namespace Rotor { case ARITHMETIC_sin: phase+=in*parameters["value"]->value; - return sin(phase); + //return sin(phase); need to review this + return sin(in)*parameters["value"]->value; break; case ARITHMETIC_cos: phase+=in*parameters["value"]->value; - return cos(phase); + return cos(in)*parameters["value"]->value; break; case ARITHMETIC_ease: return ((1.0-parameters["value"]->value)*in)+(parameters["value"]->value*(0.5f+((cos((fmod(in,1.0)+1.0)*M_PI))*0.5f))); -- cgit v1.2.3