Expression DMX Patching allows you to create new DMX mappings in-place for simpler light fixtures.
Using constants (eg. 255) and variables (eg. R, G, B) delimeted by a comma you are able to express a DMX mapping in a single line.
Use the expression, in the format below, as the Model name when setting an output/changing model.
Expression is made up of descriptions for individual DMX channels separated by a colon (,)
Each channel can be a full mathematical expression but you'll likely be just either entering a fixed DMX value (0-255) or referencing one of the available variables (see below for a list).
All variables reference only the first pixel of a fixture. Currently there is no way to expand the DMX mapping to all available pixels.
You can still map multipixel fixtures by creating two fixtures - one using this Expression mapping and the other using one of the standard RGB mappings which do expand to cover all available pixels.
An RGBW fixture is available from the standard fixtures so this is only provided as an explanatory example.
Given the following DMX chart:
We can write the following expression as the Model name:
Uppercase variables yield standard value, lowercase give you the fine part for 16-bit mapping
Dimmer, the Luminance of first pixel
Red content of first pixel
Green content of first pixel
Blue content of first pixel
Cyan content of first pixel
Magenta content of first pixel
Yellow content of first pixel
Yaw (Not Implemented)
Speed, use as Frequency for strobes for instance
The expressions are evaluated using ncalc and thus should support all standard math functions, but on top there should certainly be:
map(X, from, to)
Remap the normalized input value to the given range
More variables could be added to cover more scenarios - Suggest more!
Colorwheels, gobo selections and similar are not supported under this proposal. However this could be covered by adding special mapping functions.