avg~ Reference

Signal average

avg~

Description

Use the avg~ object to keep track of the average (absolute) amplitude of the input signal received over a specified time interval.

Examples

Report the average (absolute) amplitude of a signal

Arguments

None.

Attributes

Common Box Attributes

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.

Output

float

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

See Also

Name Description
average~
meter~