Adventures in ScriptNode ..signal phase
-
just trying to find a simple phase inverter in ScriptNode - cant seem to see it do I need to build my own?
I guess I could use a math.expr with a simple algo of: output = input * -1.0
-
@Lindon I believe that's the only way to do it.
-
@Lindon Math.mul Does the job
-
@Natan said in Adventures in ScriptNode ..signal phase:
@Lindon Math.mul Does the job
-- so same as math.expr then...
-
@Lindon said in Adventures in ScriptNode ..signal phase:
I guess I could use a math.expr with a simple algo of: output = input * -1.0
Just use a
math.mul
node and set it to -1. Easier than amath.expr
node -
Actually the
math.mul
node is the better option because it will use vectorized functions (SIMD) while the expression node will be evaluated per sample and I wouldn't trust the compiler to auto-vectorize this (especially the MSVC compiler which is notoriously bad at autovectorizing). -
@Christoph-Hart said in Adventures in ScriptNode ..signal phase:
Actually the
math.mul
node is the better option because it will use vectorized functions (SIMD) while the expression node will be evaluated per sample and I wouldn't trust the compiler to auto-vectorize this (especially the MSVC compiler which is notoriously bad at autovectorizing)...you had me at "SIMD.." - will do...