peakamp~

Report the maximum amplitude of a signal

Description

peakamp~ monitors an incoming signal and reports the absolute value of the peak amplitude of the signal it has received since the last time it was reported.

Arguments

Name Type Opt Description
data-output-interval (milliseconds) int opt Sets the internal clock interval, in milliseconds. If it is 0, the internal clock is not used, so peakamp~ will only output data when it receives a bang message. If it is non-zero, peakamp~ will repeatedly send out the peak amplitude received in that interval of time. By default, the interval is 0.

Messages

bang In left inlet: Sends out a report of the greatest (absolute value) signal amplitude received since the previous report.
signal In left inlet: Signal to be evaluated for its peak amplitude.

Information for box attributes common to all objects

Output

float: When peakamp~ receives a bang or its internal clock is on, the absolute value of the peak signal value from the input signal is sent out its outlet.

Examples

Report the maximum of a signal's absolute value

See Also

Name Description
meter~ Visual peak level indicator
snapshot~ Convert signal values to numbers