Skip to content

Sum Controller

Description

Outputs a one-dimensional controller which sums up the dimensions of an input controller.

Syntax and Default Values

The sum controller can be created using the following Lisp or mlys.lua syntax:

(make-controller 'sum
                  dimension
                  period
                  controller)
local sumCtrl = modalys.create_controller{kind="sum",
                                          period=0,
                                          input=<some multidimensional controller>}

Parameters

The 'sum controller takes three arguments:

  • dimension: should always set to 1 (automatic for Lua).
  • period: re-sampling period of the controller (in seconds).
  • controller: multi-dimensional input controller.

As always, the period defines the time between the updates of the controller. If zero is given then it updates every sample.

The input controller should be a multi-dimensional controller.

Discussion

Note that this does not sum multiple controllers, but rather sums multiple dimensions within one controller.