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

jit.map

Map input range to output range

Description

The jit.map object maps input range to output range as specified by the map attribute settings. The attribute specifies an input value range (input_lo and input_hi) and a range of output values (output_lo and output_hi).

Matrix Operator

matrix inputs:1, matrix outputs:1
Name IOProc Planelink Typelink Dimlink Plane Dim Type
out n/a 1 1 1 1 1 char long float32 float64

Information for Jitter Matrix Operator (MOP) messages and attributes to this object

Attributes

Name Type g/s Description
clip int Clipping flag (default = 1) When the flag is set, any input whose mapped value falls outside the range specified by the output_lo and output_hi values is set to the lower or upper boundary value.
map float Input to output map input_lo input_hi output_lo output_hi (default = 0. 1. 0. 1.) The range specified by input_lo to input_hi is mapped to the range specified by output_lo to output_hi.

Information for box attributes common to all objects

Examples

See Also

Name Description
jit.charmap 256 point input to output map
jit.clip Limit data to the range [min,max]
jit.op Apply binary or unary operators
jit.scalebias Multiply and add