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


Signal accumulator


+=~ adds all the values it receives. The result can grow very large, very fast.


Name Type Opt Description
initial-sum float opt Sets the initial value for the sum. The default is 0.


bang Resets the sum to 0.
set stored-sum [float]
The word set, followed by a number, sets the stored value to that number, without triggering output.
signal Each sample of the input is added to all previous samples to produce a running sum. For instance, assuming the sum started at 0, an input signal consisting of 1, 1, 1, 1 would produce 1, 2, 3, 4 as an output signal.

Information for box attributes common to all objects


signal: Each sample of the output is the sum of all previous input samples.


See Also

Name Description
+~ Add signals