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

minmax~

Compute the minimum and maximum values of a signal

Description

minmax~ computes the minimum and maximum values of an input signal and outputs signals which are the maximum signal and the minimum signal as well as outputs of the minimum and maximum floats.

Arguments

None.

Messages

bang Sends floating-point values corresponding to the minimum and maximum signal values out the 3rd and 4th outputs.
reset Resets the current minimum and maximum values to the default (0).
signal Signal to be evaluated for maximum and minimum values.

Information for box attributes common to all objects

Output

float: Out 3rd outlet: When minmax~ receives a bang message, a floating-point value which corresponds to the minimum signal value received since startup or the last reset message is output.

Out 4th outlet: When minmax~ receives a bang message, a floating-point value which corresponds to the maximum signal value received since startup or the last reset message is output.
signal: Out 1st outlet: Signal value which corresponds to the minimum signal value received since startup or the last reset message.

Out 2nd outlet: Signal value which corresponds to the maximum signal value received since startup or the last reset message.

Examples

Find the hi/low peaks of a signal

See Also

Name Description
meter~ Visual peak level indicator
peakamp~ Report the maximum amplitude of a signal
snapshot~ Convert signal values to numbers