Page 1 of 1

Custom slider values in formulas?

Posted: 08 Jan 2022, 09:58
by Homer
On the page https://www.freestylersupport.com/wiki/ ... re_formula it is stated that there are three families of variables: GIx (Gobo Index number), CIx (Color Index number) and CHx (Channel number). Is this presentation up to date?
I'm looking for a way to access the value of a custom slider.

Background:
I have RGBW fixtures that don't have a gobo wheel, but different color macros and automatic functions. The color macros share certain areas on one channel, the automatic functions areas on another channel. The ranges can sometimes only contain 10 values, but sometimes 15 or 60.
I would now e.g. like to define a custom slider "macro variation 0 ... 100%" with the permissible value range 0 ... 255. Assume there would be a variable CSx for the value of custom slider number x. Then I would like to use a formula like:
CHx=<start value>+(<end value>-<start value)*CSx/255.
Or as a specific example:
CH7=160+15*CS1/255
Hereby I tacitly assume that the result of the formula is automatically converted to integers.


Is this possible? Or is there a more nifty approach?