Patches

Math Expression

Math Expression

Compute any mathematical expression. Edit the expression by right-clicking the patch and choosing “Patch Info” from the menu. Include variables in the expression to define the inputs to the patch. Any math expression that is valid in JavaScript is supported. Use functions from the JavaScript Math library to write more complicated expressions. See Math Expressions for examples and more information.

Create multiple outputs by entering multiple expressions separated by semicolons. Outputs can be named by adding “<name> =” before the expression, where <name> is the name of the output.

Math Expression