From 873286dcb95fffc1a5ba5db78c2a59ca4fcdf952 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Wed, 7 Aug 2013 12:04:47 +0100 Subject: blur node --- rotord/src/nodes_maths.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rotord/src/nodes_maths.h') diff --git a/rotord/src/nodes_maths.h b/rotord/src/nodes_maths.h index 0a10ed0..d7aed56 100644 --- a/rotord/src/nodes_maths.h +++ b/rotord/src/nodes_maths.h @@ -70,7 +70,7 @@ namespace Rotor { #define ARITHMETIC_sin 7 #define ARITHMETIC_cos 8 #define ARITHMETIC_ease 9 -#define ARITHMETIC_jolt 9 +#define ARITHMETIC_jolt 10 class Arithmetic: public Signal_node { public: Arithmetic(){}; @@ -127,10 +127,10 @@ namespace Rotor { return pow(in,value); break; case ARITHMETIC_sin: - return sin(in); + return sin(in)*value; break; case ARITHMETIC_cos: - return cos(in); + return cos(in)*value; break; case ARITHMETIC_ease: return ((1.0-value)*in)+(value*(0.5f+((cos((fmod(in,1.0f)+1.0f)*M_PI))*0.5f))); -- cgit v1.2.3