Maths

Product Description:

  • Run maths formulas on stereo channels
  • 4 automatable parameters
  • 33 built in functions
  • 14 operators
  • 1 ternary operator
  • Windows VST/VST3 32/64
  • Mac VST/VST3/AU 64

Examples:

  • Swap left and right channels:
    • l: r
    • r: l
  • Make mono:
    • l: (l + r) / 2
    • r: (l + r) / 2
  • Invert polarity:
    • l: -l
    • r: -r
  • Generate sine wave
    • l: sin(t*10000)
    • r: sin(t*10000)
  • Automate gain:
    • l: l * p1
    • r: r * p1

Variables:

Variable Description Range
l Left audio in (-1..1)
r Right audio in (-1..1)
li0 .. li255 Left audio in (delayed) (-1..1)
ri0 .. ri255 Right audio in (delayed) (-1..1)
lo0 .. lo255 Left audio out (delayed) (-1..1)
ro0 .. ro255 Right audio out (delayed) (-1..1)
p1 User parameter 1 (0..1)
p2 User parameter 2 (0..1)
p3 User parameter 3 (-1..1)
p4 User parameter 4 (-1..1)
t Free running time in seconds (0..∞)
s Free running sample position (0..∞)
c Cursor position in seconds (0..∞)

Variables:

Constants Description Value
_pi π 3.141592653589793238462643
_e e 2.718281828459045235360287
_phi Golden Ratio 1.61803398875
_PHI Golden Ratio Conjugate 0.6180339887
_deltaS Silver Ratio 2.41421356237
_rho Plastic Number 1.32471795724
_q Default Q 0.70710678118655

Built in Functions:

Name Explanation
hp12 / hp24 High pass filter (input, frequency, q)
lp12 / lp24 Low pass filter (input, frequency, q)
notch12 / notch24 Notch filter (input, frequency, q)
bp12 / bp24 Bandpass pass filter (input, frequency, q)
sin sine function
cos cosine function
tan tangens function
asin arcus sine function
acos arcus cosine function
atan arcus tangens function
sinh hyperbolic sine function
cosh hyperbolic cosine
tanh hyperbolic tangens function
asinh hyperbolic arcus sine function
acosh hyperbolic arcus tangens function
atanh hyperbolic arcur tangens function
log2 logarithm to the base 2
log10 logarithm to the base 10
log logarithm to base e (2.71828…)
ln logarithm to base e (2.71828…)
exp e raised to the power of x
sqrt square root of a value
sign sign function -1 if x<0; 1 if x>0
rint round to nearest integer
abs absolute value
min min of all arguments
max max of all arguments
sum sum of all arguments
avg mean value of all arguments

Built in Operators:

Operator Description Priority
= assignment -1
&& logical and 1
|| logical or 2
<= less or equal 4
>= greater or equal 4
!= not equal 4
== equal 4
> greater than 4
< less than 4
+ addition 5
- subtraction 5
* multiplication 6
/ division 6
^ raise x to the power of y 7

Ternary Operator:

Operator Description Remarks
?: if then else operator C++ style syntax

Version History:

  • 1.1.0: June 14/22 – New UI
  • 1.0.3: August 30/19 – Added error messages, filters, in/out variables and more constants
  • 1.0.2: May 29/18 – Added limiter. Fixed nan/inf processing
  • 1.0.1: May 14/18 – Fixed processing error when changing formulas
  • 1.0.0: May 13/18 – Initial release

Download: