diff options
Diffstat (limited to 'rotord/src')
| -rw-r--r-- | rotord/src/nodes_maths.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/rotord/src/nodes_maths.h b/rotord/src/nodes_maths.h index 7b37290..ce474cf 100644 --- a/rotord/src/nodes_maths.h +++ b/rotord/src/nodes_maths.h @@ -122,14 +122,8 @@ namespace Rotor { case ARITHMETIC_pow: return pow(in,parameters["value"]->value); break; -//http://dsp.stackexchange.com/questions/971/how-to-create-a-sine-wave-generator-that-can-smoothly-transition-between-frequen -// -//arithmetic needs to keep an accumulator and work from the begiining for some things -//sin/cos needs a phase accumulator to allow frequency modulation - case ARITHMETIC_sin: phase+=(in-inputs[0]->get(time.lastframe()))*parameters["frequency"]->value; - //return sin(phase); need to review this return sin(phase)*parameters["value"]->value; break; case ARITHMETIC_cos: |
