Arithmetic

Twelve nodes for arithmetic and mathematical operations. Use them to combine, reshape, and constrain signals between other nodes.

Add

Outputs the sum of two values.

PortDirectionTypeDefaultDescription
AInputScalar0.0First value
BInputScalar0.0Second value
OutOutputScalar—A + B

Subtract

Outputs the difference of two values.

PortDirectionTypeDefaultDescription
AInputScalar0.0Value to subtract from
BInputScalar0.0Value to subtract
OutOutputScalar—A − B

Multiply

Outputs the product of two values.

PortDirectionTypeDefaultDescription
AInputScalar0.0First value
BInputScalar0.0Second value
OutOutputScalar—A × B

Divide

Outputs the quotient of two values. Division by zero returns 0.

PortDirectionTypeDefaultDescription
AInputScalar0.0Dividend
BInputScalar0.0Divisor
OutOutputScalar—A ÷ B

Power

Raises a value to an exponent.

PortDirectionTypeDefaultDescription
BaseInputScalar0.0Base value
ExponentInputScalar2.0Power to raise to
OutOutputScalar—Base ^ Exponent

Min

Outputs the smaller of two values.

PortDirectionTypeDefaultDescription
AInputScalar0.0First value
BInputScalar0.0Second value
OutOutputScalar—Minimum of A and B

Max

Outputs the larger of two values.

PortDirectionTypeDefaultDescription
AInputScalar0.0First value
BInputScalar0.0Second value
OutOutputScalar—Maximum of A and B

Mod

Outputs the remainder after division. Mod by zero returns 0.

PortDirectionTypeDefaultDescription
AInputScalar0.0Dividend
BInputScalar0.0Divisor
OutOutputScalar—A mod B

Clamp

Restricts a value to a range.

PortDirectionTypeDefaultDescription
ValueInputScalar0.0Value to constrain
MinInputScalar0.0Lower bound
MaxInputScalar1.0Upper bound
OutOutputScalar—Value clamped to Min–Max

Sin

Outputs the sine of the input, where 1.0 = one full turn.

PortDirectionTypeDefaultDescription
ValueInputScalar0.0Input in turns (0–1 = one cycle)
OutOutputScalar—sin(Value × 2π)

Cos

Outputs the cosine of the input, where 1.0 = one full turn.

PortDirectionTypeDefaultDescription
ValueInputScalar0.0Input in turns (0–1 = one cycle)
OutOutputScalar—cos(Value × 2π)

Abs

Outputs the absolute value.

PortDirectionTypeDefaultDescription
ValueInputScalar0.0Input value
OutOutputScalar—

Tips

  • Multiply is the most common math node. Use it to gate a signal (multiply by 0 or 1), scale amplitude, or combine two modulation sources.
  • Clamp is useful after Multiply Add to ensure a signal stays within bounds.
  • Sin and Cos expect input in turns (0–1), not radians. A Phasor cycling 0–1 produces one full sine cycle.
  • Power with Exponent 2 squares the input, useful for creating curves from linear ramps.
  • Mod creates repeating patterns from ascending signals. Feed a Phasor into Mod with B = 0.25 for four repeats per cycle.
  • Multiply Add: combined scale + offset in one node
  • Oscillator: generates waveforms directly instead of building from Sin/Cos
  • From Polar: uses Sin/Cos internally for coordinate conversion