Skip to content

Dimension Controller

Description

Create a 1-dimensional controller by selecting one dimension from another controller

Syntax and Default Values

The dimension controller can be created using the following Mlys (Max), mlys.lua, or Lisp syntax:

In Modalys for Max, this object is named mlys.dimension:

The input multi-dimensional controller must be connected to the inlet.
👍 If a second inlet is given, you can connect another controller to command the index parameter.

modalys.create_controller{kind="dimension",
                          name="MyDimensionController",
                          input=<multidimensional controller>,
                          index=<integer or controller>}
(make-controller 'dimension
                 dimension
                 input
                 index)

Parameters

The 'dimension controller takes the following arguments:

  • dimension: (this parameter is not taken into account as the dimension is always 1 by essence)
  • input: input controller.
  • index: index on input controller (between 0 and N-1 with N the dimension of the controller). It can be a fixed value or a controller.

Discussion

The dimension controller is a special case of the dimension-mapping controller.
If the index is out of bound, it is interpreted as zero.

★     ★