Skip to content

Dimension Controller

Description

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

Syntax and Default Values

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

(make-controller 'dimension
                 dimension
                 input
                 index)
[mlys.dimension @name MyDimension @index 2]

The input multi-dimensional controller must be connected to the inlet.

modalys.create_controller{kind="dimension",
                          name="MyDimensionController",
                          input=<multidimensional controller>,
                          index=<between 0 and N-1 with N=dimension(input)>}

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)

Discussion

The dimension controller is a special case of the dimension-mapping controller.

★     ★