Store, add to, and multiply a number
Name | Type | Opt | Description |
---|---|---|---|
initial-value/number-format | int or float | opt | Sets the initial value stored in accum. An argument with a decimal point causes the value to be stored as a float. |
bang | In left inlet: Outputs the value currently stored in accum. | |
int | input [int] |
In left inlet: Replaces the value stored in accum, and sends the new value out the outlet. |
(inlet1) | add-to-value [int] |
In middle inlet: The number is added to the stored value, without triggering output. |
(inlet2) | multiply-by-value [float] |
In right inlet: The stored value is multiplied by the input, without triggering output. |
float | input [float] |
In left and middle inlet: Converted to accum has a float argument. In right inlet: Multiplication is done with floats, even if the value is stored as an int. |
, unless
set | input [int] |
In left inlet: The word | , followed by a number, sets the stored value to that number, without triggering output.