A newer version of Max is available. Click here to access the latest version of the Max documentation

rmod~ Reference

Reverse modulo (divide two values, output the remainder)

rmod~

Examples

Inlets

Right Operand [auto]

The value is stored as the divisor (the value to be divided into the value in the left inlet) for calculating the remainder.

Left Operand [auto]

The value is divided by the value in the right inlet and the remainder is sent out the outlet.

Outlets

Left !% Right [signal]

The modulo output

Dynamic Attributes

These attributes can be modified in the code during execution using the set object

in1 [auto]

The value is stored as the divisor (the value to be divided into the value in the left inlet) for calculating the remainder.

in2 [auto]

The value is divided by the value in the right inlet and the remainder is sent out the outlet.

reset [bang] (default: 0)

Reset inlets to default values.

See Also

Name Description
rmod~ Reverse modulo (divide two values, output the remainder)
mod Divide two values, output the remainder
mod~ Divide two values, output the remainder