Namespaces

Variants
Actions

jit.map

From Cycling '74 Wiki
Revision as of 17:11, 13 August 2013 by Corymetcalf (Talk | contribs)

Jump to: navigation, search

Contents

jit.map online refpage

Using the jit.map object

jit.map is like a scale object for jitter matrices. It maps input values to output values based on the range specified by the @map attribute. Like scale, it uses two values for input low and high values and two for output low and high. jit.map works with all types and planecounts, but uses floating point arguments for the map regardless of type.

jit.map Tutorials

These example patches included with Max use jit.map for a variety of different applications:

  • The jit.buffer~ help patch (./Cycling '74/jitter-help/jit.buffer~.maxhelp);
  • ./examples/jitter-examples/render/jit.gl.gridshape-scanoffset.maxpat;
  • ./examples/jitter-examples/gen/mesh.shatter.maxpat

jit.map is used in Jitter recipes 17, 19, 46, 47, and 49.

jit.map Tips and Workarounds

Using jit.map on pixel data is one way to manipulate the color of an image and can be an interesting alternative to using jit.brcosa. Disabling the @clip attribute allows for very novel effects.

-- Pasted Max Patch, click to expand. --

jit.map is also useful when working with OpenGL, where coordinates are represented with negative and positive values. This patch remaps the output of jit.noise, which outputs values from 0. - 1., before combining it with the outputmatrix of a jit.gl.gridshape to introduce noise into the surface without changing the shapes screen position:

-- Pasted Max Patch, click to expand. --

Third-Party Max externals similar to the jit.map object

Maxobjects.com listing for the jit.map object

People who looked at/used this object also looked at....

jit.charmap jit.clip jit.dimop jit.expr jit.op jit.planeop jit.scalebias

Errors or Clarifications

When @clip is set to 0, values are wrapped.

(please list things that you believe to be errors or omissions from the existing refpage)