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

+ Reference

Add two numbers, output the result

+

Examples

Normally adds ints... Floats are truncated before addition... unless there is a float argument

Arguments

initial [int or float]

Optional

Sets the initial value, to be added to a number received in the left inlet. A float argument causes the numbers to be added as floats.

Attributes

Common Box Attributes

Messages

bang

In left inlet: Performs the addition with the numbers currently stored. If there is no argument, + initially holds 0.

int

Arguments

input [int]
The number is added to the number in the right inlet, and the result is sent out the outlet.

  (inlet1)

Arguments

value-added-to [int]
The number is stored for addition to a number received in the left inlet.

float

Arguments

input [float]
Converted to int, unless + has a float argument.

set

Arguments

set-input [int]
In left inlet: The word set, followed by a number, adds that number to the number in the right inlet but nothing is sent out. A subsequent bang sends out the result.

list

Arguments

input [list]
In left inlet: The first number is added to the second number, and the result is sent out the outlet.

Output

float

Only if there is an argument with a decimal point.

int

The sum of the two numbers received in the inlets.

See Also

Name Description
expr
Max Basic Tutorial 6: Simple Math in Max Max Basic Tutorial 6: Simple Math in Max