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

avg~

Signal average

Description

avg~ will report the average (absolute) amplitude of the input signal received whenever it is triggered to do so by a bang.

Arguments

None.

Messages

bang Triggers a report of the average (absolute) amplitude of the signal received since the previous bang, and clears the avg~ object's memory in preparation for the next report.
signal The signal to be averaged.

Information for box attributes common to all objects

Output

float: When bang is received in the inlet, avg~ reports the average amplitude of the signal received since the previous bang.

Examples

Report the average (absolute) amplitude of a signal

See Also

Name Description
average~ Multi-mode signal average
meter~ Visual peak level indicator