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)
In Modalys for Max, this object is named mlys.sum:
[mlys.sum @name MySum @period -1]
The input controller that is summed must connected to the sum controller's inlet.
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 and Modalys for Max).
- 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. It is -1 (automatic) by default and should not be changed in general, unless you know exactly what you're doing.
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.