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

minmax~ Reference

Compute minimum/maximum signal values

minmax~

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.

Examples

Find the hi/low peaks of a signal

Arguments

None.

Attributes

Common Box Attributes

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

In left inlet: signal to be evaluated for minimum and maximum values.

In right inlet: A non-zero signal value will reset the current minimum and maximum.

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.

See Also

Name Description
meter~
peakamp~
snapshot~