diff options
Diffstat (limited to 'rotord/src/nodes_maths.h')
| -rw-r--r-- | rotord/src/nodes_maths.h | 6 |
1 files changed, 3 insertions, 3 deletions
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))); |
