<?xml version="1.0" encoding="ISO-8859-1"?>
<device image="Colorflood.gif" initsequence="set 0 0; set 1 0; set 2 0; set 3 0">
  <information>
    <vendor>Expolite</vendor>
    <name>TourLED 21CM 9CH</name>
    <author>Detlev Weniger</author>
    <comment>8-Kanal-Modus</comment>
  </information>
  <channels>
    <function channel="0" minvalue="0" maxvalue="255" name="Master" fade="yes" type="dimmer" />
    <function channel="1" minvalue="0" maxvalue="255" name="rot" fade="yes" type="r" />
    <function channel="2" minvalue="0" maxvalue="255" name="grün" fade="yes" type="g" />
    <function channel="3" minvalue="0" maxvalue="255" name="blau" fade="yes" type="b" />
    <function channel="4" minvalue="0" maxvalue="255" name="Macro" fade="yes" type="color" />
    <function channel="5" minvalue="0" maxvalue="255" name="Strobe" fade="no" type="Strobe" />
    <function channel="6" minvalue="0" maxvalue="255" name="Auto-Prg" fade="no" />
    <function channel="7" minvalue="0" maxvalue="255" name="Auto-Speed" fade="no" />
    <function channel="8" minvalue="0" maxvalue="255" name="ID-Adr" fade="no" />
  </channels>
  <form width="312" height="370">
    <deviceimage top="10" left="10" width="40" height="40" />
    <devicename top="10" left="60" width="200" height="20" />
    <deviceadress top="30" left="60" width="200" height="20" />
    <label top="60" left="10" caption="Farbe" />
    <line y1="67" x1="50" y2="67" x2="325" />
    <colorpicker channel1="1" channel2="2" channel3="3" mode="rgb" layout="2" top="75" left="10" width="150" height="120" />
    <label top="220" left="0" caption="Masterdimmer" />
    <line y1="227" x1="70" y2="227" x2="325" />
    <slider top="240" left="5" height="25" width="140" startvalue="0" endvalue="255" tickfreq="30" smallchange="1" largechange="10" name="master" channel="0" />
    <command top="235" left="148" width="40" height="20" caption="0%" clicksequence="set 0 0;" />
    <command top="235" left="200" width="40" height="20" caption="50%" clicksequence="set 0 128;" />
    <command top="235" left="252" width="40" height="20" caption="100%" clicksequence="set 0 255;" />
    <label top="260" left="0" caption="Strobe" />
    <line y1="267" x1="45" y2="267" x2="325" />
    <slider top="280" left="5" height="25" width="140" startvalue="0" endvalue="255" tickfreq="30" smallchange="1" largechange="10" name="Strobe" channel="5" />
    <command top="275" left="148" width="40" height="20" caption="stop" clicksequence="set 5 0;" />
    <command top="275" left="200" width="40" height="20" caption="slow" clicksequence="set 5 120;" />
    <command top="275" left="252" width="40" height="20" caption="fast" clicksequence="set 5 255;" />
    <label top="300" left="0" caption="Automatik-Progamme" />
    <line y1="307" x1="45" y2="307" x2="325" />
    <slider top="320" left="5" height="25" width="140" startvalue="0" endvalue="255" tickfreq="30" smallchange="1" largechange="10" name="Auto-Speed" channel="7" />
    <label top="345" left="0" caption="Speed Automatik Programme" />
    <!--      Modul Farbe als Dropdown     -->
    <!--                              -->
    <dropdown top="74" left="164" width="140" name="Color_1" action="SetColor_1">
      <item caption="schwarz" value="0" color="#000000" />
      <item caption="rot" value="20" color="#ff0000" />
      <item caption="grün" value="40" color="#00ff00" />
      <item caption="blau" value="60" color="#0000ff" />
      <item caption="orange" value="80" color="#ff8000" />
      <item caption="gelb" value="100" color="#ffff00" />
      <item caption="magenta" value="120" color="#ff0080" />
      <item caption="lila" value="140" color="#ff0080" />
      <item caption="weiss konv" value="255" color="#ffffff" />
      <item caption="3200k" value="160" color="#ffffff" />
      <item caption="5600k" value="180" color="#ffffff" />
      <item caption="7200k" value="200" color="#ffffff" />
      <item caption="8500k" value="220" color="#ffffff" />
    </dropdown>
    <!--      Modul Autoprogramme als Dropdown     -->
    <!--                              -->
    <dropdown top="330" left="152" width="152" name="auto_1" action="Setauto_1">
      <item caption="Auto Programm AUS" value="0" color="#000000" />
      <item caption="Auto Programm 1" value="1" color="#ff0000" />
      <item caption="Auto Programm 2" value="2" color="#00ff40" />
      <item caption="Auto Programm 3" value="3" color="#0000ff" />
      <item caption="Auto Programm 4" value="4" color="#ff0080" />
      <item caption="Auto Programm 5" value="5" color="#ffff00" />
      <item caption="Auto Programm 6" value="6" color="#ff00ff" />
      <item caption="Auto Programm 7" value="7" color="#ff8000" />
      <item caption="Auto Programm 8" value="8" color="#8000ff" />
      <item caption="Auto Programm 9" value="9" color="#c0c0c0" />
      <item caption="Auto Programm 10" value="10" color="#ffffff" />
    </dropdown>
  </form>
  <!--      START der PROCEDUREN                             -->
  <!--      Proceduren IMMER HINTER dem FORM Bereich         -->
  <!--                                                       -->
  <!--  Das Dropdown hat den Namen Color_1 und startet die   -->
  <!--  Aktion SetColor_1 in Abhängigkeit vom Wert des       -->
  <!--  dropdowns wird ueber die IF Abfrage ausgewaehlt      -->
  <!--  wie die jeweiligen RGBs gesetzt werden muessen       -->
  <!--                              -->
  <code>

    <procedure name="INITCONTROLS">
	!call|Getauto_1$
        !call|GetColor_1$
</procedure>

    
    <procedure name="Setauto_1">
      !if|({auto_1}=0)|
      !set_channel|6|0$
      $
      !if|({auto_1}=1)|
      !set_channel|6|25$
      $
      !if|({auto_1}=2)|
      !set_channel|6|35$
      $
      !if|({auto_1}=3)|
      !set_channel|6|45$
      $
      !if|({auto_1}=4)|
      !set_channel|6|55$
      $
      !if|({auto_1}=5)|
      !set_channel|6|65$
      $
      !if|({auto_1}=6)|
      !set_channel|6|75$
      $
      !if|({auto_1}=7)|
      !set_channel|6|85$
      $
      !if|({auto_1}=8)|
      !set_channel|6|95$
      $
      !if|({auto_1}=9)|
      !set_channel|6|105$
      $
      !if|({auto_1}=10)|
      !set_channel|6|115$
      $
</procedure>
    <procedure name="SetColor_1">
      !if|({Color_1}=0)|
      !set_channel|1|0$
      !set_channel|2|0$
      !set_channel|3|0$  
      !set_channel|4|0$
      $
      !if|({Color_1}=20)|
      !set_channel|1|255$
      !set_channel|2|0$
      !set_channel|3|0$
      !set_channel|4|0$
      $
      !if|({Color_1}=40)|
      !set_channel|1|0$
      !set_channel|2|255$
      !set_channel|3|0$
      !set_channel|4|0$
      $
      !if|({Color_1}=60)|
      !set_channel|1|0$
      !set_channel|2|0$
      !set_channel|3|255$
      !set_channel|4|0$
      $
      !if|({Color_1}=80)|
      !set_channel|1|255$
      !set_channel|2|90$
      !set_channel|3|0$
      !set_channel|4|0$
      $
      !if|({Color_1}=100)|
      !set_channel|1|255$
      !set_channel|2|250$
      !set_channel|3|0$
      !set_channel|4|0$
      $
      !if|({Color_1}=120)|
      !set_channel|1|245$
      !set_channel|2|0$
      !set_channel|3|170$
      !set_channel|4|0$
      $
      !if|({Color_1}=140)|
      !set_channel|1|110$
      !set_channel|2|0$
      !set_channel|3|200$
      !set_channel|4|0$
      $
      !if|({Color_1}=160)|
      !set_channel|1|0$
      !set_channel|2|0$
      !set_channel|3|0$
      !set_channel|4|213$
      $
      !if|({Color_1}=180)|
      !set_channel|1|0$
      !set_channel|2|0$
      !set_channel|3|0$
      !set_channel|4|233$
      $
      !if|({Color_1}=200)|
      !set_channel|1|0$
      !set_channel|2|0$
      !set_channel|3|0$
      !set_channel|4|248$
      $
      !if|({Color_1}=220)|
      !set_channel|1|0$
      !set_channel|2|0$
      !set_channel|3|0$
      !set_channel|4|255$
      $
      !if|({Color_1}=255)|
      !set_channel|1|255$
      !set_channel|2|255$
      !set_channel|3|255$
      !set_channel|4|0$
      $
    </procedure>
  </code>
</device>