accum Reference

An additive accumulator

accum

Examples

Constructors

  • { arguments={incr}, inlets={reset} }
  • { arguments={}, inlets={incr, reset} }

Inlets

incr

Typefloat

amount to add

reset

Typefloat

nonzero reset

Attributes

init [float] (default: 0)

g/s(set)

Specify initial value stored in the accumulator

max [float] (default: )

g/s(set)

Specify optional maximum value. If @max is given, the count will reset to @min whenever it reaches @max.

min [float] (default: 0)

g/s(set)

Specifies the internal count when the reset signal triggers (or the @max value is reached, if @max is specified.)

resetmode [enum] (default: post)

g/s(set)

Specifies whether the count is reset before or after the accumulation. If the mode is 'pre', the count is reset before accumulating the new input. The default is 'post' (after accumulation).

Possible values:

0 = 'pre'
1 = 'post'

Common Box Attributes

See Also

Name Description
accum
counter
history
mulequals
plusequals