maximum
Description
Watches an input stream for any numbers which are greater than its most recently set maximum. If the input value is less than or equal to the maximum, the maximum value is output. If the input value is greater, that value is output.
Examples

Arguments
initial [int or float]
Sets an initial value to be compared with numbers received in the left inlet. If the argument contains a decimal point, all numbers are compared as floats, and the output is a float. If there is no argument, the initial value is 0.
Attributes
Common Box Attributes
Messages
bang
int
Arguments
(inlet1)
Arguments
float
Arguments
(inlet1)
Arguments
Output
float
The number received in the left inlet is compared with the value currently held by maximum (or numbers received as a list are compared with each other), and the greatest of the numbers is sent out the outlet. Floats are output only if there is an argument with a decimal point.
int
The number received in the left inlet is compared with the value currently held by maximum (or numbers received as a list are compared with each other), and the greatest of the numbers is sent out the outlet.
See Also
Name | Description |
---|---|
minimum | |
past | |
peak | |
> |