This patch is really, really simple. You can enter a number in the inspector and it outputs this number. You can use it as a constant if you have a re-occuring number in many other calculations.

Outputs

  • Constant (Number)

The Divide Patch does exactly what the name says. You can input two numbers (A and B) and the patch sets the output to C=A/B.

Inputs

  • Numerator (Number)
  • Denominator (Number)

Outputs

  • Result (Number)

Keeps a value between an upper and a lower bound. For example if the lower bound is 3 and the upper bound is 8, the value will always be a number between 3.0 and 8.0. The lower bound may not be greater than or equal to the upper bound.

Inputs

  • Value (Number)
  • Lower (Number)
  • Upper (Number)

Outputs

  • Value (Number)

Performs the modulo operation on a with n (a mod n). For example: 7 mod 2 will return 1.

Inputs

  • A (Number,Integer)
  • N (Number,Integer,Greater than 0)

Outputs

  • Mod (Number,Integer)

The Math Evaluator is a powerful patch to evaluate complex mathematical terms. There are predefined functions and variables and unknown variables will be added as input to the patch. You can edit the expression in the inspector view.

As this patch builds up on DDMathParser you can view the built in functions here.

Inputs

  • Depending on Expression (Number)

Outputs

  • Result (Number)