RNBO Objects & Operators accum~
Open Help

accum~

Additive accumulator

Description

An additive accumulator that sums all signals fed to its left inlet.

Arguments

reset [auto]

Optional

A non-zero number will trigger the output to reset to 0 on the next input value

Inlets

x [auto]

Signals sent through the left inlet will be accumulated as long as the calculation is not reset.

reset [auto]

A non-zero number will trigger the output to reset to 0 on the next input value

Outlets

out1 [signal]

The accumulated output

Fixed Attributes

These attributes must be set in the object box and determine the behavior of the object at runtime.

max [number]

Specifies the maximum value for the accumulated output.

min [number] (default: 0)

Specifies the minimum value for the accumulated output.

resetmode [enum] (default: post)

Specifies whether the count is reset before (pre) or after (post) the accumulation. Possible values:

0 = 'pre'
1 = 'post'

Dynamic Attributes

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

reset [auto]

A non-zero number will trigger the output to reset to 0 on the next input value

x [auto]

Signals sent through the left inlet will be accumulated as long as the calculation is not reset.

See Also

Name Description
accum
accum Additive accumulator
mulequals Multiplicative accumulator
counter keep count based on input events
intnum
f Store a number, bang it out