average Reference

Maintain a running average of incoming values

average

Examples

Arguments

windowSize [number]

Optional

The number of values to be averaged together at once

reset [number]

Optional

reset

Inlets

x [number]

The values to be averaged

windowSize [number]

The number of values to be averaged together at once

reset [number]

reset

Outlets

out1 [number]

The averaged output

Fixed Attributes

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

hot [bool] (default: false)

Trigger computation on all inlets.

Dynamic Attributes

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

reset [number]

reset

windowSize [number]

The number of values to be averaged together at once

x [number]

The values to be averaged

See Also

Name Description
buffer~ A data buffer for holding audio (or potentially some other) data.
average_rms Maintain a running RMS average of incoming values
average_absolute Maintain a running average of the absolute value of incoming values
avg~ Keep track of average (absolute) amplitude over a period of time.
hamming Provides a Hamming windowing function
hann Provides a Hanning windowing function
blackman Provides a Blackman windowing function
welch Provides a Welch windowing function