zmap
Description
Maps an input range of values and to an output range of values. Similar to scale, but clips values to the ranges, and does not allow inverted scaling.
Examples

Arguments
minimum-input [number]
The minimum input value. If the low values is higher than the corresponding high value, the two values are reversed to preserve the high-low relationship.
maximum-input [number]
The maximum input value. If the low values is higher than the corresponding high value, the two values are reversed to preserve the high-low relationship.
minimum-output [number]
The minimum output value. If the low values is higher than the corresponding high value, the two values are reversed to preserve the high-low relationship. The zmap object will clip to the boundaries of the output range.
maximum-output [number]
The maximum output value. If the low values is higher than the corresponding high value, the two values are reversed to preserve the high-low relationship. The zmap object will clip to the boundaries of the output range.
Attributes
Common Box Attributes
Messages
int
Arguments
float
Arguments
Note: The preservation of the high-low relationship is different from the behavior of the scale object, which lets you do reverse scaling. Also, note that the zmap object will clip to the boundaries of the output range.
(inlet1)
Arguments
(inlet2)
Arguments
(inlet3)
Arguments
(inlet4)
Arguments
list
Arguments
Output
float
When zmap receives a value in its leftmost inlet, that value is scaled to the indicated output range of values.
See Also
Name | Description |
---|---|
scale | |
expr |