<?xml version="1.0" encoding="ISO-8859-1"?>
<device image="Ledbar252.gif" initsequence="set 1 127;set 3 0;set 4 0;set 5 0;set 6 0;set 7 0;set 8 0;set 9 0;set 10 0;set 11 0;set 12 0;set 13 0;set 14 0">
  <information>
    <name>LED Light Bar RGB V3</name>
    <author>Robert Willruth</author>
    <vendor>Showtec</vendor>
    <comment>auf 15 Chanels (D-p6) programmiert</comment>
  </information>
  <channels>
    <function channel="0" minvalue="0" maxvalue="255" name="Betriebsmodus" fade="yes" />
    <function channel="1" minvalue="0" maxvalue="255" name="Master-Dimmer" fade="yes" type="dimmer" />
    <function channel="2" minvalue="10" maxvalue="255" name="Shutter/Strobe" fade="yes" type="dimmer" />
    <function channel="3" minvalue="0" maxvalue="255" name="Rot1" fade="yes" type="r" action="GetColor1" />
    <function channel="4" minvalue="0" maxvalue="255" name="Grün1" fade="yes" type="g" action="GetColor1" />
    <function channel="5" minvalue="0" maxvalue="255" name="Blau1" fade="yes" type="b" action="GetColor1" />
    <function channel="6" minvalue="0" maxvalue="255" name="Rot2" fade="yes" type="r" action="GetColor2" />
    <function channel="7" minvalue="0" maxvalue="255" name="Grün2" fade="yes" type="g" action="GetColor2" />
    <function channel="8" minvalue="0" maxvalue="255" name="Blau2" fade="yes" type="b" action="GetColor2" />
    <function channel="9" minvalue="0" maxvalue="255" name="Rot3" fade="yes" type="r" action="GetColor3" />
    <function channel="10" minvalue="0" maxvalue="255" name="Grün3" fade="yes" type="g" action="GetColor3" />
    <function channel="11" minvalue="0" maxvalue="255" name="Blau3" fade="yes" type="b" action="GetColor3" />
    <function channel="12" minvalue="0" maxvalue="255" name="Rot4" fade="yes" type="r" action="GetColor4" />
    <function channel="13" minvalue="0" maxvalue="255" name="Grün4" fade="yes" type="g" action="GetColor4" />
    <function channel="14" minvalue="0" maxvalue="255" name="Blau4" fade="yes" type="b" action="GetColor4" />
  </channels>
  <form width="708" height="380">
    <deviceimage top="8" left="8" height="24" width="112" />
    <devicename top="0" left="128" />
    <deviceadress top="24" left="128" />
    <label top="24" left="432" caption="15 Kanal (d-P6)" />
    <label top="56" left="8" caption="Farbe" />
    <line y1="48" x1="2" y2="48" x2="496" />
    <command top="320" left="8" width="364" height="46" caption="Reset   -   Reset  -   Reset" icon="RotateStop.gif" name="Reset" clicksequence="set 0 0;set 1 0;set 2 0;set 3 0;set 4 0;set 5 0;set 6 0;set 7 0;set 8 0;set 9 0;set 10 0;set 11 0;set 12 0;set 13 0" color="#ff8000" />
    <dropdown top="40" left="568" width="113" name="Modus" channel="0">
      <item caption="RGB Modus 0" value="0" icon="4Col.gif" />
      <item caption="RGB Modus 9" value="9" icon="4Col.gif" />
      <item caption="Auto Programm 10" value="10" icon="GUZ.gif" />
      <item caption="Auto Programm 50" value="50" icon="GUZ.gif" />
      <item caption="Musikgesteuert" value="255" icon="note.gif" />
    </dropdown>
    <command top="80" left="640" width="62" height="30" caption="Auto. Programm" name="Auto. Programm" clicksequence="set 0 10" color="#ff0080" />
    <command top="200" left="336" width="48" height="30" caption="Blinder" name="Blinderrot" color="#ff0000" upsequence="restore 3;restore 6;restore 9;restore 12" downsequence="save 3;set 3 255;save 6;set 6 255;save 9;set 9 255;save 12;set 12 255" />
    <command top="232" left="336" width="48" height="30" caption="Blinder" name="Blindergrün" color="#008000" upsequence="restore 4;restore 7;restore 10;restore 13" downsequence="save 4;set 4 255;save 7;set 7 255;save 10;set 10 255;save 13;set 13 255" />
    <command top="264" left="336" width="48" height="30" caption="Blinder" name="Blinderblau" color="#0000ff" upsequence="restore 5;restore 8;restore 11;restore 14" downsequence="save 5;set 5 255;save 8;set 8 255;save 11;set 11 255;save 14;set 14 255" />
    <line y1="304" x1="2" y2="304" x2="704" />
    <onoff top="200" left="8" width="48" height="30" onvalue="255" offvalue="0" caption="Rot 1" color="#ff0000" name="Rot 1" channel="3" />
    <onoff top="232" left="8" width="48" height="30" onvalue="255" offvalue="0" caption="Grün 1" color="#008040" name="Grün 1" channel="4" />
    <onoff top="264" left="8" width="48" height="30" onvalue="255" offvalue="0" caption="Blau 1" color="#0000ff" name="Blau 1" channel="5" />
    <colorpicker top="80" left="0" height="60" width="150" mode="rgb" layout="1" channel3="5" channel2="4" channel1="3" />
    <colorpicker top="80" left="160" height="60" width="150" mode="rgb" layout="1" channel3="8" channel2="7" channel1="6" />
    <colorpicker top="80" left="320" height="60" width="150" mode="rgb" layout="1" channel3="11" channel2="10" channel1="9" />
    <colorpicker top="80" left="480" height="60" width="150" mode="rgb" layout="1" channel3="14" channel2="13" channel1="12" />
    <command top="192" left="560" width="54" height="42" caption="50%" clicksequence="set 1 128" color="#ffff00" icon="Lamp on.gif" name="50%" />
    <dropdown top="216" left="472" width="73" name="Dimmer" channel="1">
      <item caption="10%" value="25" icon="Lamp on.gif" />
      <item caption="100%" value="255" icon="Lamp on.gif" />
      <item caption="75%" value="190" icon="Lamp on.gif" />
      <item caption="50%" value="128" icon="Lamp on.gif" />
      <item caption="25%" value="65" icon="Lamp on.gif" />
      <item caption="Off" value="0" icon="lamp_off.GIF" color="#000000" />
    </dropdown>
    <command top="192" left="408" width="56" height="42" caption="Off" clicksequence="set 0 0;set 1 0" color="#c0c0c0" name="Off" icon="lamp_off.GIF" />
    <command top="192" left="472" width="72" height="20" caption="Dimmer" color="#ffff00" />
    <onoff top="144" left="640" width="60" height="30" onvalue="9" offvalue="0" caption="RGB An / Aus" channel="0" color="#c0c0c0" />
    <slider top="344" left="472" height="25" width="220" startvalue="0" endvalue="255" channel="2" name="strobeslider" largechange="10" smallchange="10" tickfreq="5" />
    <label top="312" left="408" caption="Strobe" />
    <dropdown top="150" left="0" width="150" name="LEE_Color1" action="SetColor1">
      <item caption="Blackout(99)" value="99" color="#000000" />
      <item caption="Tungsten (0)" value="0" />
      <item caption="HMI (1)" value="1" />
      <item caption="Golden Amber (21)" value="21" />
      <item caption="Yellow (101)" value="101" />
      <item caption="Orange (105)" value="105" />
      <item caption="Primary Red (106)" value="106" color="#ff0000" />
      <item caption="Flame Red (164)" value="164" />
      <item caption="Dark Pink (111)" value="111" />
      <item caption="Magenta (113)" value="113" />
      <item caption="Peacock Blue (115)" value="115" />
      <item caption="Medium Blue-Green (116)" value="116" />
      <item caption="Dark Blue (119)" value="119" color="#ffffff" />
      <item caption="Steel Blue (117)" value="117" />
      <item caption="Light Blue (118)" value="118" />
      <item caption="Congo Blue (181)" value="181" />
      <item caption="Primary Blue (120)" value="120" color="#0000ff" />
      <item caption="Mauve (126)" value="126" />
      <item caption="Primary Green (139)" value="139" color="#008000" />
      <item caption="Fern Green (122)" value="122" />
      <item caption="Deep Orange (158)" value="158" />
      <item caption="Dark Lavender (180)" value="180" />
    </dropdown>
    <dropdown top="150" left="160" width="150" name="LEE_Color2" action="SetColor2">
      <item caption="Blackout(99)" value="99" color="#000000" />
      <item caption="Tungsten (0)" value="0" />
      <item caption="HMI (1)" value="1" />
      <item caption="Golden Amber (21)" value="21" />
      <item caption="Yellow (101)" value="101" />
      <item caption="Orange (105)" value="105" />
      <item caption="Primary Red (106)" value="106" />
      <item caption="Dark Pink (111)" value="111" />
      <item caption="Magenta (113)" value="113" />
      <item caption="Peacock Blue (115)" value="115" />
      <item caption="Medium Blue-Green (116)" value="116" />
      <item caption="Steel Blue (117)" value="117" />
      <item caption="Light Blue (118)" value="118" />
      <item caption="Dark Blue (119)" value="119" />
      <item caption="Primary Blue (120)" value="120" />
      <item caption="Fern Green (122)" value="122" />
      <item caption="Mauve (126)" value="126" />
      <item caption="Primary Green (139)" value="139" />
      <item caption="Deep Orange (158)" value="158" />
      <item caption="Flame Red (164)" value="164" />
      <item caption="Dark Lavender (180)" value="180" />
      <item caption="Congo Blue (181)" value="181" />
    </dropdown>
    <slider top="256" left="472" height="25" width="220" startvalue="0" endvalue="255" channel="1" largechange="10" smallchange="10" tickfreq="5" name="sliderDimmer" />
    <dropdown top="150" left="320" width="150" name="LEE_Color3" action="SetColor3">
      <item caption="Blackout(99)" value="99" color="#000000" />
      <item caption="Tungsten (0)" value="0" />
      <item caption="HMI (1)" value="1" />
      <item caption="Golden Amber (21)" value="21" />
      <item caption="Yellow (101)" value="101" />
      <item caption="Orange (105)" value="105" />
      <item caption="Primary Red (106)" value="106" />
      <item caption="Dark Pink (111)" value="111" />
      <item caption="Magenta (113)" value="113" />
      <item caption="Peacock Blue (115)" value="115" />
      <item caption="Medium Blue-Green (116)" value="116" />
      <item caption="Steel Blue (117)" value="117" />
      <item caption="Light Blue (118)" value="118" />
      <item caption="Dark Blue (119)" value="119" />
      <item caption="Primary Blue (120)" value="120" />
      <item caption="Fern Green (122)" value="122" />
      <item caption="Mauve (126)" value="126" />
      <item caption="Primary Green (139)" value="139" />
      <item caption="Deep Orange (158)" value="158" />
      <item caption="Flame Red (164)" value="164" />
      <item caption="Dark Lavender (180)" value="180" />
      <item caption="Congo Blue (181)" value="181" />
    </dropdown>
    <dropdown top="150" left="480" width="150" name="LEE_Color4" action="SetColor4">
      <item caption="Blackout(99)" value="99" color="#000000" />
      <item caption="Tungsten (0)" value="0" />
      <item caption="HMI (1)" value="1" />
      <item caption="Golden Amber (21)" value="21" />
      <item caption="Yellow (101)" value="101" />
      <item caption="Orange (105)" value="105" />
      <item caption="Primary Red (106)" value="106" />
      <item caption="Dark Pink (111)" value="111" />
      <item caption="Magenta (113)" value="113" />
      <item caption="Peacock Blue (115)" value="115" />
      <item caption="Medium Blue-Green (116)" value="116" />
      <item caption="Steel Blue (117)" value="117" />
      <item caption="Light Blue (118)" value="118" />
      <item caption="Dark Blue (119)" value="119" />
      <item caption="Primary Blue (120)" value="120" />
      <item caption="Fern Green (122)" value="122" />
      <item caption="Mauve (126)" value="126" />
      <item caption="Primary Green (139)" value="139" />
      <item caption="Deep Orange (158)" value="158" />
      <item caption="Flame Red (164)" value="164" />
      <item caption="Dark Lavender (180)" value="180" />
      <item caption="Congo Blue (181)" value="181" />
    </dropdown>
    <dropdown top="312" left="448" width="65" name="Strob" channel="2">
      <item caption="Off" value="0" color="#000000" />
      <item caption="10%" value="24" />
      <item caption="25%" value="65" />
      <item caption="35%" value="90" />
      <item caption="50%" value="127" />
      <item caption="75%" value="195" />
      <item caption="100%" value="255" />
    </dropdown>
    <command top="312" left="640" width="48" height="22" caption="100%" clicksequence="set 2 255" color="#ff0000" />
    <command top="312" left="560" width="40" height="22" caption="10%" clicksequence="set 2 24" color="#c0c0c0" />
    <command top="312" left="520" width="40" height="22" caption="0%" clicksequence="set 2 0" color="#ffffff" />
    <command top="312" left="600" width="40" height="22" caption="50%" clicksequence="set 2 127" color="#c0c0c0" />
    <onoff top="112" left="640" width="62" height="30" onvalue="255" offvalue="0" caption="Musik An / Aus" channel="0" color="#00ffff" />
    <onoff top="200" left="64" width="48" height="30" onvalue="255" offvalue="0" caption="Rot 2" color="#ff0000" name="Rot 2" channel="6" />
    <onoff top="200" left="120" width="48" height="30" onvalue="255" offvalue="0" caption="Rot 3" color="#ff0000" name="Rot 3" channel="9" />
    <onoff top="200" left="176" width="48" height="30" onvalue="255" offvalue="0" caption="Rot 4" color="#ff0000" name="Rot 4" channel="12" />
    <onoff top="232" left="64" width="48" height="30" onvalue="255" offvalue="0" caption="Grün 2" color="#008040" name="Grün 2" channel="7" />
    <onoff top="232" left="120" width="48" height="30" onvalue="255" offvalue="0" caption="Grün 3" color="#008040" name="Grün 3" channel="10" />
    <onoff top="264" left="64" width="48" height="30" onvalue="255" offvalue="0" caption="Blau 2" color="#0000ff" name="Blau 2" channel="8" />
    <onoff top="264" left="120" width="48" height="30" onvalue="255" offvalue="0" caption="Blau 3" color="#0000ff" name="Blau 3" channel="11" />
    <onoff top="232" left="176" width="48" height="30" onvalue="255" offvalue="0" caption="Grün 4" color="#008040" name="Grün 4" channel="13" />
    <onoff top="264" left="176" width="48" height="30" onvalue="255" offvalue="0" caption="Blau 4" color="#0000ff" name="Blau 4" channel="14" />
    <command top="192" left="624" width="78" height="42" caption="100%" clicksequence="set 1 255" color="#ffff00" icon="Lamp on.gif" name="100%" />
    <line y1="184" x1="2" y2="184" x2="704" />
    <line y1="184" x1="400" y2="368" x2="400" />
    <onoff top="264" left="240" width="80" height="30" onvalue="255" offvalue="0" caption="An / Aus" action="GetColorBlue" color="#0000ff" />
  </form>
  <code>
    <procedure name="INITCONTROLS">
      !call|GetColor1$
      !call|GetColor2$
      !call|GetColor3$
      !call|GetColor4$
      !call|GetColorBlue$</procedure>
    <procedure name="SetColor1">
      !if|({LEE_Color1}=99)|
      !set_channel|3|0$
      !set_channel|4|0$
      !set_channel|5|0$
      $
      !if|({LEE_Color1}=0)|
      !set_channel|3|255$
      !set_channel|4|230$
      !set_channel|5|33$
      $
      !if|({LEE_Color1}=1)|
      !set_channel|3|250$
      !set_channel|4|255$
      !set_channel|5|180$
      $
      !if|({LEE_Color1}=21)|
      !set_channel|3|241$
      !set_channel|4|94$
      !set_channel|5|0$
      $
      !if|({LEE_Color1}=88)|
      !set_channel|3|128$
      !set_channel|4|255$
      !set_channel|5|0$
      $
      !if|({LEE_Color1}=101)|
      !set_channel|3|234$
      !set_channel|4|255$
      !set_channel|5|0$
      $
      !if|({LEE_Color1}=103)|
      !set_channel|3|255$
      !set_channel|4|228$
      !set_channel|5|25$
      $
      !if|({LEE_Color1}=105)|
      !set_channel|3|255$
      !set_channel|4|121$
      !set_channel|5|0$
      $
      !if|({LEE_Color1}=106)|
      !set_channel|3|255$
      !set_channel|4|0$
      !set_channel|5|0$
      $
      !if|({LEE_Color1}=107)|
      !set_channel|3|255$
      !set_channel|4|76$
      !set_channel|5|103$
      $
      !if|({LEE_Color1}=110)|
      !set_channel|3|255$
      !set_channel|4|83$
      !set_channel|5|158$
      $
      !if|({LEE_Color1}=111)|
      !set_channel|3|118$
      !set_channel|4|10$
      !set_channel|5|105$
      $
      !if|({LEE_Color1}=113)|
      !set_channel|3|255$
      !set_channel|4|0$
      !set_channel|5|47$
      $
      !if|({LEE_Color1}=115)|
      !set_channel|3|25$
      !set_channel|4|89$
      !set_channel|5|232$
      $
      !if|({LEE_Color1}=116)|
      !set_channel|3|25$
      !set_channel|4|205$
      !set_channel|5|232$
      $
      !if|({LEE_Color1}=117)|
      !set_channel|3|138$
      !set_channel|4|192$
      !set_channel|5|255$
      $
      !if|({LEE_Color1}=118)|
      !set_channel|3|60$
      !set_channel|4|87$
      !set_channel|5|255$
      $
      !if|({LEE_Color1}=119)|
      !set_channel|3|0$
      !set_channel|4|0$
      !set_channel|5|75$
      $
      !if|({LEE_Color1}=120)|
      !set_channel|3|0$
      !set_channel|4|0$
      !set_channel|5|255$
      $
      !if|({LEE_Color1}=122)|
      !set_channel|3|69$
      !set_channel|4|255$
      !set_channel|5|7$
      $
      !if|({LEE_Color1}=126)|
      !set_channel|3|174$
      !set_channel|4|20$
      !set_channel|5|243$
      $
      !if|({LEE_Color1}=139)|
      !set_channel|3|0$
      !set_channel|4|255$
      !set_channel|5|0$
      $
      !if|({LEE_Color1}=158)|
      !set_channel|3|255$
      !set_channel|4|55$
      !set_channel|5|0$
      $
      !if|({LEE_Color1}=164)|
      !set_channel|3|201$
      !set_channel|4|31$
      !set_channel|5|0$
      $
      !if|({LEE_Color1}=180)|
      !set_channel|3|16$
      !set_channel|4|9$
      !set_channel|5|80$
      $
      !if|({LEE_Color1}=181)|
      !set_channel|3|8$
      !set_channel|4|0$
      !set_channel|5|32$
      $
      !if|({LEE_Color1}=236)|
      !set_channel|3|243$
      !set_channel|4|255$
      !set_channel|5|45$
      $
</procedure>
    <procedure name="GetColor1">
      !if|(({channel_3}=0) and ({channel_4}=0) and ({channel_5}=0))|
      !set_control|LEE_Color1|99$
      $
      !if|(({channel_3}=255) and ({channel_4}=230) and ({channel_5}=33))|
      !set_control|LEE_Color1|0$
      $
      !if|(({channel_3}=250) and ({channel_4}=255) and ({channel_5}=180))|
      !set_control|LEE_Color1|1$
      $
      !if|(({channel_3}=241) and ({channel_4}=94) and ({channel_5}=0))|
      !set_control|LEE_Color1|21$
      $
      !if|(({channel_3}=128) and ({channel_4}=255) and ({channel_5}=0))|
      !set_control|LEE_Color1|88$
      $
      !if|(({channel_3}=234) and ({channel_4}=255) and ({channel_5}=0))|
      !set_control|LEE_Color1|101$
      $
      !if|(({channel_3}=255) and ({channel_4}=228) and ({channel_5}=25))|
      !set_control|LEE_Color1|103$
      $
      !if|(({channel_3}=255) and ({channel_4}=121) and ({channel_5}=0))|
      !set_control|LEE_Color1|105$
      $
      !if|(({channel_3}=255) and ({channel_4}=0) and ({channel_5}=0))|
      !set_control|LEE_Color1|106$
      $
      !if|(({channel_3}=255) and ({channel_4}=76) and ({channel_5}=103))|
      !set_control|LEE_Color1|107$
      $
      !if|(({channel_3}=118) and ({channel_4}=10) and ({channel_5}=105))|
      !set_control|LEE_Color1|111$
      $
      !if|(({channel_3}=255) and ({channel_4}=83) and ({channel_5}=158))|
      !set_control|LEE_Color1|110$
      $
      !if|(({channel_3}=255) and ({channel_4}=0) and ({channel_5}=47))|
      !set_control|LEE_Color1|113$
      $
      !if|(({channel_3}=25) and ({channel_4}=89) and ({channel_5}=232))|
      !set_control|LEE_Color1|115$
      $
      !if|(({channel_3}=25) and ({channel_4}=205) and ({channel_5}=232))|
      !set_control|LEE_Color1|116$
      $
      !if|(({channel_3}=138) and ({channel_4}=192) and ({channel_5}=255))|
      !set_control|LEE_Color1|117$
      $
      !if|(({channel_3}=60) and ({channel_4}=87) and ({channel_5}=255))|
      !set_control|LEE_Color1|118$
      $
      !if|(({channel_3}=0) and ({channel_4}=0) and ({channel_5}=75))|
      !set_control|LEE_Color1|119$
      $
      !if|(({channel_3}=0) and ({channel_4}=0) and ({channel_5}=255))|
      !set_control|LEE_Color1|120$
      $
      !if|(({channel_3}=69) and ({channel_4}=255) and ({channel_5}=7))|
      !set_control|LEE_Color1|122$
      $
      !if|(({channel_3}=174) and ({channel_4}=20) and ({channel_5}=243))|
      !set_control|LEE_Color1|126$
      $
      !if|(({channel_3}=0) and ({channel_4}=255) and ({channel_5}=0))|
      !set_control|LEE_Color1|139$
      $
      !if|(({channel_3}=255) and ({channel_4}=55) and ({channel_5}=0))|
      !set_control|LEE_Color1|158$
      $
      !if|(({channel_3}=201) and ({channel_4}=31) and ({channel_5}=0))|
      !set_control|LEE_Color1|164$
      $
      !if|(({channel_3}=16) and ({channel_4}=9) and ({channel_5}=80))|
      !set_control|LEE_Color1|180$
      $
      !if|(({channel_3}=8) and ({channel_4}=0) and ({channel_5}=32))|
      !set_control|LEE_Color1|181$
      $
      !if|(({channel_3}=243) and ({channel_4}=255) and ({channel_5}=45))|
      !set_control|LEE_Color1|236$
      $    </procedure>
    <procedure name="SetColor2">
      !if|({LEE_Color1}=99)|
      !set_channel|6|0$
      !set_channel|7|0$
      !set_channel|8|0$
      $
      !if|({LEE_Color2}=0)|
      !set_channel|6|255$
      !set_channel|7|230$
      !set_channel|8|33$
      $
      !if|({LEE_Color2}=1)|
      !set_channel|6|250$
      !set_channel|7|255$
      !set_channel|8|180$
      $
      !if|({LEE_Color2}=21)|
      !set_channel|6|241$
      !set_channel|7|94$
      !set_channel|8|0$
      $
      !if|({LEE_Color2}=88)|
      !set_channel|6|128$
      !set_channel|7|255$
      !set_channel|8|0$
      $
      !if|({LEE_Color2}=101)|
      !set_channel|6|234$
      !set_channel|7|255$
      !set_channel|8|0$
      $
      !if|({LEE_Color2}=103)|
      !set_channel|6|255$
      !set_channel|7|228$
      !set_channel|8|25$
      $
      !if|({LEE_Color2}=105)|
      !set_channel|6|255$
      !set_channel|7|121$
      !set_channel|8|0$
      $
      !if|({LEE_Color2}=106)|
      !set_channel|6|255$
      !set_channel|7|0$
      !set_channel|8|0$
      $
      !if|({LEE_Color2}=107)|
      !set_channel|6|255$
      !set_channel|7|76$
      !set_channel|8|103$
      $
      !if|({LEE_Color2}=110)|
      !set_channel|6|255$
      !set_channel|7|83$
      !set_channel|8|158$
      $
      !if|({LEE_Color2}=111)|
      !set_channel|6|118$
      !set_channel|7|10$
      !set_channel|8|105$
      $
      !if|({LEE_Color2}=113)|
      !set_channel|6|255$
      !set_channel|7|0$
      !set_channel|8|47$
      $
      !if|({LEE_Color2}=115)|
      !set_channel|6|25$
      !set_channel|7|89$
      !set_channel|8|232$
      $
      !if|({LEE_Color2}=116)|
      !set_channel|6|25$
      !set_channel|7|205$
      !set_channel|8|232$
      $
      !if|({LEE_Color2}=117)|
      !set_channel|6|138$
      !set_channel|7|192$
      !set_channel|8|255$
      $
      !if|({LEE_Color2}=118)|
      !set_channel|6|60$
      !set_channel|7|87$
      !set_channel|8|255$
      $
      !if|({LEE_Color2}=119)|
      !set_channel|6|0$
      !set_channel|7|0$
      !set_channel|8|75$
      $
      !if|({LEE_Color2}=120)|
      !set_channel|6|0$
      !set_channel|7|0$
      !set_channel|8|255$
      $
      !if|({LEE_Color2}=122)|
      !set_channel|6|69$
      !set_channel|7|255$
      !set_channel|8|7$
      $
      !if|({LEE_Color2}=126)|
      !set_channel|6|174$
      !set_channel|7|20$
      !set_channel|8|243$
      $
      !if|({LEE_Color2}=139)|
      !set_channel|6|0$
      !set_channel|7|255$
      !set_channel|8|0$
      $
      !if|({LEE_Color2}=158)|
      !set_channel|6|255$
      !set_channel|7|55$
      !set_channel|8|0$
      $
      !if|({LEE_Color2}=164)|
      !set_channel|6|201$
      !set_channel|7|31$
      !set_channel|8|0$
      $
      !if|({LEE_Color2}=180)|
      !set_channel|6|16$
      !set_channel|7|9$
      !set_channel|8|80$
      $
      !if|({LEE_Color2}=181)|
      !set_channel|6|8$
      !set_channel|7|0$
      !set_channel|8|32$
      $
      !if|({LEE_Color2}=236)|
      !set_channel|6|243$
      !set_channel|7|255$
      !set_channel|8|45$
      $
</procedure>
    <procedure name="GetColor2">      
      !if|(({channel_6}=0) and ({channel_7}=0) and ({channel_8}=0))|
      !set_control|LEE_Color2|99$
      $
      !if|(({channel_6}=255) and ({channel_7}=230) and ({channel_8}=33))|
      !set_control|LEE_Color2|0$
      $
      !if|(({channel_6}=250) and ({channel_7}=255) and ({channel_8}=180))|
      !set_control|LEE_Color2|1$
      $
      !if|(({channel_6}=241) and ({channel_7}=94) and ({channel_8}=0))|
      !set_control|LEE_Color2|21$
      $
      !if|(({channel_6}=128) and ({channel_7}=255) and ({channel_8}=0))|
      !set_control|LEE_Color2|88$
      $
      !if|(({channel_6}=234) and ({channel_7}=255) and ({channel_8}=0))|
      !set_control|LEE_Color2|101$
      $
      !if|(({channel_6}=255) and ({channel_7}=228) and ({channel_8}=25))|
      !set_control|LEE_Color2|103$
      $
      !if|(({channel_6}=255) and ({channel_7}=121) and ({channel_8}=0))|
      !set_control|LEE_Color2|105$
      $
      !if|(({channel_6}=255) and ({channel_7}=0) and ({channel_8}=0))|
      !set_control|LEE_Color2|106$
      $
      !if|(({channel_6}=255) and ({channel_7}=76) and ({channel_8}=103))|
      !set_control|LEE_Color2|107$
      $
      !if|(({channel_6}=118) and ({channel_7}=10) and ({channel_8}=105))|
      !set_control|LEE_Color2|111$
      $
      !if|(({channel_6}=255) and ({channel_7}=83) and ({channel_8}=158))|
      !set_control|LEE_Color2|110$
      $
      !if|(({channel_6}=255) and ({channel_7}=0) and ({channel_8}=47))|
      !set_control|LEE_Color2|113$
      $
      !if|(({channel_6}=25) and ({channel_7}=89) and ({channel_8}=232))|
      !set_control|LEE_Color2|115$
      $
      !if|(({channel_6}=25) and ({channel_7}=205) and ({channel_8}=232))|
      !set_control|LEE_Color2|116$
      $
      !if|(({channel_6}=138) and ({channel_7}=192) and ({channel_8}=255))|
      !set_control|LEE_Color2|117$
      $
      !if|(({channel_6}=60) and ({channel_7}=87) and ({channel_8}=255))|
      !set_control|LEE_Color2|118$
      $
      !if|(({channel_6}=0) and ({channel_7}=0) and ({channel_8}=75))|
      !set_control|LEE_Color2|119$
      $
      !if|(({channel_6}=0) and ({channel_7}=0) and ({channel_8}=255))|
      !set_control|LEE_Color2|120$
      $
      !if|(({channel_6}=69) and ({channel_7}=255) and ({channel_8}=7))|
      !set_control|LEE_Color2|122$
      $
      !if|(({channel_6}=174) and ({channel_7}=20) and ({channel_8}=243))|
      !set_control|LEE_Color2|126$
      $
      !if|(({channel_6}=0) and ({channel_7}=255) and ({channel_8}=0))|
      !set_control|LEE_Color2|139$
      $
      !if|(({channel_6}=255) and ({channel_7}=55) and ({channel_8}=0))|
      !set_control|LEE_Color2|158$
      $
      !if|(({channel_6}=201) and ({channel_7}=31) and ({channel_8}=0))|
      !set_control|LEE_Color2|164$
      $
      !if|(({channel_6}=16) and ({channel_7}=9) and ({channel_8}=80))|
      !set_control|LEE_Color2|180$
      $
      !if|(({channel_6}=8) and ({channel_7}=0) and ({channel_8}=32))|
      !set_control|LEE_Color2|181$
      $
      !if|(({channel_6}=243) and ({channel_7}=255) and ({channel_8}=45))|
      !set_control|LEE_Color2|236$
      $
</procedure>
    <procedure name="SetColor3">
      !if|({LEE_Color3}=99)|
      !set_channel|9|0$
      !set_channel|10|0$
      !set_channel|11|0$
      $      !if|({LEE_Color3}=0)|
      !set_channel|9|255$
      !set_channel|10|230$
      !set_channel|11|33$
      $
      !if|({LEE_Color3}=1)|
      !set_channel|9|250$
      !set_channel|10|255$
      !set_channel|11|180$
      $
      !if|({LEE_Color3}=21)|
      !set_channel|9|241$
      !set_channel|10|94$
      !set_channel|11|0$
      $
      !if|({LEE_Color3}=88)|
      !set_channel|9|128$
      !set_channel|10|255$
      !set_channel|11|0$
      $
      !if|({LEE_Color3}=101)|
      !set_channel|9|234$
      !set_channel|10|255$
      !set_channel|11|0$
      $
      !if|({LEE_Color3}=103)|
      !set_channel|9|255$
      !set_channel|10|228$
      !set_channel|11|25$
      $
      !if|({LEE_Color3}=105)|
      !set_channel|9|255$
      !set_channel|10|121$
      !set_channel|11|0$
      $
      !if|({LEE_Color3}=106)|
      !set_channel|9|255$
      !set_channel|10|0$
      !set_channel|11|0$
      $
      !if|({LEE_Color3}=107)|
      !set_channel|9|255$
      !set_channel|10|76$
      !set_channel|11|103$
      $
      !if|({LEE_Color3}=110)|
      !set_channel|9|255$
      !set_channel|10|83$
      !set_channel|11|158$
      $
      !if|({LEE_Color3}=111)|
      !set_channel|9|118$
      !set_channel|10|10$
      !set_channel|11|105$
      $
      !if|({LEE_Color3}=113)|
      !set_channel|9|255$
      !set_channel|10|0$
      !set_channel|11|47$
      $
      !if|({LEE_Color3}=115)|
      !set_channel|9|25$
      !set_channel|10|89$
      !set_channel|11|232$
      $
      !if|({LEE_Color3}=116)|
      !set_channel|9|25$
      !set_channel|10|205$
      !set_channel|11|232$
      $
      !if|({LEE_Color3}=117)|
      !set_channel|9|138$
      !set_channel|10|192$
      !set_channel|11|255$
      $
      !if|({LEE_Color3}=118)|
      !set_channel|9|60$
      !set_channel|10|87$
      !set_channel|11|255$
      $
      !if|({LEE_Color3}=119)|
      !set_channel|9|0$
      !set_channel|10|0$
      !set_channel|11|75$
      $
      !if|({LEE_Color3}=120)|
      !set_channel|9|0$
      !set_channel|10|0$
      !set_channel|11|255$
      $
      !if|({LEE_Color3}=122)|
      !set_channel|9|69$
      !set_channel|10|255$
      !set_channel|11|7$
      $
      !if|({LEE_Color3}=126)|
      !set_channel|9|174$
      !set_channel|10|20$
      !set_channel|11|243$
      $
      !if|({LEE_Color3}=139)|
      !set_channel|9|0$
      !set_channel|10|255$
      !set_channel|11|0$
      $
      !if|({LEE_Color3}=158)|
      !set_channel|9|255$
      !set_channel|10|55$
      !set_channel|11|0$
      $
      !if|({LEE_Color3}=164)|
      !set_channel|9|201$
      !set_channel|10|31$
      !set_channel|11|0$
      $
      !if|({LEE_Color3}=180)|
      !set_channel|9|16$
      !set_channel|10|9$
      !set_channel|11|80$
      $
      !if|({LEE_Color3}=181)|
      !set_channel|9|8$
      !set_channel|10|0$
      !set_channel|11|32$
      $
      !if|({LEE_Color3}=236)|
      !set_channel|9|243$
      !set_channel|10|255$
      !set_channel|11|45$
      $
</procedure>
    <procedure name="GetColor3">
      !if|(({channel_9}=0) and ({channel_10}=0) and ({channel_11}=0))|
      !set_control|LEE_Color3|99$
      $
      !if|(({channel_9}=255) and ({channel_10}=230) and ({channel_11}=33))|
      !set_control|LEE_Color3|0$
      $
      !if|(({channel_9}=250) and ({channel_10}=255) and ({channel_11}=180))|
      !set_control|LEE_Color3|1$
      $
      !if|(({channel_9}=241) and ({channel_10}=94) and ({channel_11}=0))|
      !set_control|LEE_Color3|21$
      $
      !if|(({channel_9}=128) and ({channel_10}=255) and ({channel_11}=0))|
      !set_control|LEE_Color3|88$
      $
      !if|(({channel_9}=234) and ({channel_10}=255) and ({channel_11}=0))|
      !set_control|LEE_Color3|101$
      $
      !if|(({channel_9}=255) and ({channel_10}=228) and ({channel_11}=25))|
      !set_control|LEE_Color3|103$
      $
      !if|(({channel_9}=255) and ({channel_10}=121) and ({channel_11}=0))|
      !set_control|LEE_Color3|105$
      $
      !if|(({channel_9}=255) and ({channel_10}=0) and ({channel_11}=0))|
      !set_control|LEE_Color3|106$
      $
      !if|(({channel_9}=255) and ({channel_10}=76) and ({channel_11}=103))|
      !set_control|LEE_Color3|107$
      $
      !if|(({channel_9}=118) and ({channel_10}=10) and ({channel_11}=105))|
      !set_control|LEE_Color3|111$
      $
      !if|(({channel_9}=255) and ({channel_10}=83) and ({channel_11}=158))|
      !set_control|LEE_Color3|110$
      $
      !if|(({channel_9}=255) and ({channel_10}=0) and ({channel_11}=47))|
      !set_control|LEE_Color3|113$
      $
      !if|(({channel_9}=25) and ({channel_10}=89) and ({channel_11}=232))|
      !set_control|LEE_Color3|115$
      $
      !if|(({channel_9}=25) and ({channel_10}=205) and ({channel_11}=232))|
      !set_control|LEE_Color3|116$
      $
      !if|(({channel_9}=138) and ({channel_10}=192) and ({channel_11}=255))|
      !set_control|LEE_Color3|117$
      $
      !if|(({channel_9}=60) and ({channel_10}=87) and ({channel_11}=255))|
      !set_control|LEE_Color3|118$
      $
      !if|(({channel_9}=0) and ({channel_10}=0) and ({channel_11}=75))|
      !set_control|LEE_Color3|119$
      $
      !if|(({channel_9}=0) and ({channel_10}=0) and ({channel_11}=255))|
      !set_control|LEE_Color3|120$
      $
      !if|(({channel_9}=69) and ({channel_10}=255) and ({channel_11}=7))|
      !set_control|LEE_Color3|122$
      $
      !if|(({channel_9}=174) and ({channel_10}=20) and ({channel_11}=243))|
      !set_control|LEE_Color3|126$
      $
      !if|(({channel_9}=0) and ({channel_10}=255) and ({channel_11}=0))|
      !set_control|LEE_Color3|139$
      $
      !if|(({channel_9}=255) and ({channel_10}=55) and ({channel_11}=0))|
      !set_control|LEE_Color3|158$
      $
      !if|(({channel_9}=201) and ({channel_10}=31) and ({channel_11}=0))|
      !set_control|LEE_Color3|164$
      $
      !if|(({channel_9}=16) and ({channel_10}=9) and ({channel_11}=80))|
      !set_control|LEE_Color3|180$
      $
      !if|(({channel_9}=8) and ({channel_10}=0) and ({channel_11}=32))|
      !set_control|LEE_Color3|181$
      $
      !if|(({channel_9}=243) and ({channel_10}=255) and ({channel_11}=45))|
      !set_control|LEE_Color3|236$
      $
</procedure>
    <procedure name="SetColor4">
      !if|({LEE_Color4}=99)|
      !set_channel|12|0$
      !set_channel|13|0$
      !set_channel|14|0$
      $      !if|({LEE_Color4}=0)|
      !set_channel|12|255$
      !set_channel|13|230$
      !set_channel|14|33$
      $
      !if|({LEE_Color4}=1)|
      !set_channel|12|250$
      !set_channel|13|255$
      !set_channel|14|180$
      $
      !if|({LEE_Color4}=21)|
      !set_channel|12|241$
      !set_channel|13|94$
      !set_channel|14|0$
      $
      !if|({LEE_Color4}=88)|
      !set_channel|12|128$
      !set_channel|13|255$
      !set_channel|14|0$
      $
      !if|({LEE_Color4}=101)|
      !set_channel|129|234$
      !set_channel|13|255$
      !set_channel|14|0$
      $
      !if|({LEE_Color4}=103)|
      !set_channel|12|255$
      !set_channel|13|228$
      !set_channel|14|25$
      $
      !if|({LEE_Color4}=105)|
      !set_channel|12|255$
      !set_channel|13|121$
      !set_channel|14|0$
      $
      !if|({LEE_Color4}=106)|
      !set_channel|12|255$
      !set_channel|13|0$
      !set_channel|14|0$
      $
      !if|({LEE_Color4}=107)|
      !set_channel|12|255$
      !set_channel|13|76$
      !set_channel|14|103$
      $
      !if|({LEE_Color4}=110)|
      !set_channel|12|255$
      !set_channel|13|83$
      !set_channel|14|158$
      $
      !if|({LEE_Color4}=111)|
      !set_channel|12|118$
      !set_channel|13|10$
      !set_channel|14|105$
      $
      !if|({LEE_Color4}=113)|
      !set_channel|12|255$
      !set_channel|13|0$
      !set_channel|14|47$
      $
      !if|({LEE_Color4}=115)|
      !set_channel|12|25$
      !set_channel|13|89$
      !set_channel|14|232$
      $
      !if|({LEE_Color4}=116)|
      !set_channel|12|25$
      !set_channel|13|205$
      !set_channel|14|232$
      $
      !if|({LEE_Color4}=117)|
      !set_channel|12|138$
      !set_channel|13|192$
      !set_channel|14|255$
      $
      !if|({LEE_Color4}=118)|
      !set_channel|12|60$
      !set_channel|13|87$
      !set_channel|14|255$
      $
      !if|({LEE_Color4}=119)|
      !set_channel|12|0$
      !set_channel|13|0$
      !set_channel|14|75$
      $
      !if|({LEE_Color4}=120)|
      !set_channel|12|0$
      !set_channel|13|0$
      !set_channel|14|255$
      $
      !if|({LEE_Color4}=122)|
      !set_channel|12|69$
      !set_channel|13|255$
      !set_channel|14|7$
      $
      !if|({LEE_Color4}=126)|
      !set_channel|12|174$
      !set_channel|13|20$
      !set_channel|14|243$
      $
      !if|({LEE_Color4}=139)|
      !set_channel|12|0$
      !set_channel|13|255$
      !set_channel|14|0$
      $
      !if|({LEE_Color4}=158)|
      !set_channel|12|255$
      !set_channel|13|55$
      !set_channel|14|0$
      $
      !if|({LEE_Color4}=164)|
      !set_channel|12|201$
      !set_channel|13|31$
      !set_channel|14|0$
      $
      !if|({LEE_Color4}=180)|
      !set_channel|12|16$
      !set_channel|13|9$
      !set_channel|14|80$
      $
      !if|({LEE_Color4}=181)|
      !set_channel|12|8$
      !set_channel|13|0$
      !set_channel|14|32$
      $
      !if|({LEE_Color4}=236)|
      !set_channel|12|243$
      !set_channel|13|255$
      !set_channel|14|45$
      $
</procedure>
    <procedure name="GetColor4">
      !if|(({channel_12}=0) and ({channel_13}=0) and ({channel_14}=0))|
      !set_control|LEE_Color4|99$
      $
      !if|(({channel_12}=255) and ({channel_13}=230) and ({channel_14}=33))|
      !set_control|LEE_Color4|0$
      $
      !if|(({channel_12}=250) and ({channel_13}=255) and ({channel_14}=180))|
      !set_control|LEE_Color4|1$
      $
      !if|(({channel_12}=241) and ({channel_13}=94) and ({channel_14}=0))|
      !set_control|LEE_Color4|21$
      $
      !if|(({channel_12}=128) and ({channel_13}=255) and ({channel_14}=0))|
      !set_control|LEE_Color4|88$
      $
      !if|(({channel_12}=234) and ({channel_13}=255) and ({channel_14}=0))|
      !set_control|LEE_Color4|101$
      $
      !if|(({channel_12}=255) and ({channel_13}=228) and ({channel_14}=25))|
      !set_control|LEE_Color4|103$
      $
      !if|(({channel_12}=255) and ({channel_13}=121) and ({channel_14}=0))|
      !set_control|LEE_Color4|105$
      $
      !if|(({channel_12}=255) and ({channel_13}=0) and ({channel_14}=0))|
      !set_control|LEE_Color4|106$
      $
      !if|(({channel_12}=255) and ({channel_13}=76) and ({channel_14}=103))|
      !set_control|LEE_Color4|107$
      $
      !if|(({channel_12}=118) and ({channel_13}=10) and ({channel_14}=105))|
      !set_control|LEE_Color4|111$
      $
      !if|(({channel_12}=255) and ({channel_13}=83) and ({channel_14}=158))|
      !set_control|LEE_Color4|110$
      $
      !if|(({channel_12}=255) and ({channel_13}=0) and ({channel_14}=47))|
      !set_control|LEE_Color4|113$
      $
      !if|(({channel_12}=25) and ({channel_13}=89) and ({channel_14}=232))|
      !set_control|LEE_Color4|115$
      $
      !if|(({channel_12}=25) and ({channel_13}=205) and ({channel_14}=232))|
      !set_control|LEE_Color4|116$
      $
      !if|(({channel_12}=138) and ({channel_13}=192) and ({channel_14}=255))|
      !set_control|LEE_Color4|117$
      $
      !if|(({channel_12}=60) and ({channel_13}=87) and ({channel_14}=255))|
      !set_control|LEE_Color4|118$
      $
      !if|(({channel_12}=0) and ({channel_13}=0) and ({channel_14}=75))|
      !set_control|LEE_Color4|119$
      $
      !if|(({channel_12}=0) and ({channel_13}=0) and ({channel_14}=255))|
      !set_control|LEE_Color4|120$
      $
      !if|(({channel_12}=69) and ({channel_13}=255) and ({channel_14}=7))|
      !set_control|LEE_Color4|122$
      $
      !if|(({channel_12}=174) and ({channel_13}=20) and ({channel_14}=243))|
      !set_control|LEE_Color4|126$
      $
      !if|(({channel_12}=0) and ({channel_13}=255) and ({channel_14}=0))|
      !set_control|LEE_Color4|139$
      $
      !if|(({channel_12}=255) and ({channel_13}=55) and ({channel_14}=0))|
      !set_control|LEE_Color4|158$
      $
      !if|(({channel_12}=201) and ({channel_13}=31) and ({channel_14}=0))|
      !set_control|LEE_Color4|164$
      $
      !if|(({channel_12}=16) and ({channel_13}=9) and ({channel_14}=80))|
      !set_control|LEE_Color4|180$
      $
      !if|(({channel_12}=8) and ({channel_13}=0) and ({channel_14}=32))|
      !set_control|LEE_Color4|181$
      $
      !if|(({channel_12}=243) and ({channel_13}=255) and ({channel_14}=45))|
      !set_control|LEE_Color4|236$
      $
</procedure>
    <procedure name="SetColorBlue"> !if|({LEE_ColorBlue}=120)|
      !set_channel|5|2550$
      !set_channel|8|255$
      !set_channel|11|255$
      !set_channel|14|255$
      $
</procedure>
    <procedure name="GetColorBlue">  !if|(({channel_5}=255) and ({channel_8}=255) and ({channel_11}=255) and ({channel_14}=255))|
      !set_control|LEE_ColorBlue|120$
      $
</procedure>
  </code>
</device>