<?xml version="1.0" encoding="ISO-8859-1"?>
<device image="SCANNER.GIF" initsequence="set 0 128;set 1 128;set 2 128;set 3 190;set 4 190;set 5 0;set6 127">
  <channels>
    <function channel="0" minvalue="0" maxvalue="255" name="Pan" fade="yes" type="pan" />
    <function channel="1" minvalue="0" maxvalue="255" name="Tilt" fade="yes" type="tilt" />
    <function channel="2" minvalue="0" maxvalue="255" name="Speed Pan/Tilt" fade="yes" type="dimmer" />
    <function channel="3" minvalue="0" maxvalue="255" name="Farbe" fade="no" type="color" action="GetColor" />
    <function channel="4" minvalue="0" maxvalue="255" name="Gobo" fade="no" type="gobo" action="GetGobo" />
    <function channel="5" minvalue="0" maxvalue="255" name="Speed Position" fade="yes" type="dimmer" />
    <function channel="6" minvalue="0" maxvalue="255" name="Shutter" fade="no" type="shutter" />
  </channels>
  
  <form width="420" height="310">
    <deviceimage top="0" left="0" />
    <devicename top="0" left="40" />
    <deviceadress top="16" left="40" />
    <position top="40" left="1" height="200" width="200" />
    <dropdown top="60" left="220" width="180" action="SetColor" name="color">
		  <item caption="weiß" value="3" />
		  <item caption="Grün" value="11" />
		  <item caption="Rot" value="19" />
		  <item caption="H-Lila" value="28" />
		  <item caption="Gelb" value="35" />
		  <item caption="H-Rosa" value="44" />
		  <item caption="H-Blau" value="51" />
		  <item caption="H-Rot" value="58" />
		  <item caption="Blau" value="68" />
		  <item caption="Lila" value="75" />
    </dropdown>
    <slider top="90" left="220" height="40" width="180" startvalue="128" endvalue="255" name="color_speed" action="SetColor" />

    <dropdown top="170" left="220" width="180" action="SetGobo" name="gobo">
		  <item caption="Gobo geschlossen (aus)" value="0" />
		  <item caption="Full Spot" value="8" />
		  <item caption="Drei Kreise" value="16" />
		  <item caption="Dot Line" value="24" />
		  <item caption="Stern" value="32" />
		  <item caption="Starfield" value="40" />
		  <item caption="Sunlight" value="48" />
		  <item caption="Großer Kreis" value="56" />
		  <item caption="Dotfield" value="64" />
		  <item caption="Strahlen" value="72" />
		  <item caption="Windmill" value="80" />
		  <item caption="Stern (ausgefüllt)" value="88" />
		  <item caption="Dreieck" value="96" />
		  <item caption="Farbkleckse" value="104" />
    </dropdown>
    <slider top="200" left="220" height="40" width="180" startvalue="128" endvalue="255" name="gobo_speed" action="SetGobo" />

    <label top="40" left="220" caption="Farbe" />
    <label top="150" left="220" caption="Gobo" />
    <slider top="270" left="1" height="41" width="180" startvalue="0" endvalue="255" channel="2" />
    <label top="250" left="1" caption="Speed Pan / Tilt" />
  </form>

  <code>
	<procedure name="INITCONTROLS">
		!call|GetColor$
		!call|GetGobo$
	</procedure>
		<procedure name="SetColor">
			!if|({color_speed} &lt; 188) and ({color_speed} &gt; 127)|
			 !set_channel|3|{color_speed}$
			|
			!if|({color_speed} &gt; 187) and ({color_speed} &lt; 196)|
			  !set_channel|3|{color}$
			 $
			!if|({color_speed} &gt; 195) and ({color_speed} &lt; 256)|
			   !set_channel|3|{color_speed}$
			 $
			$
		</procedure>
		<procedure name="GetColor">
			!if|({channel_3} &lt; 188) and ({channel_3} &gt; 127)|
			 !set_control|color_speed|{channel_3}$
			|
			!if|({channel_3} &gt; 187) and ({channel_3} &lt; 196)|
			  !set_control|color|3$
			  !set_control|color_speed|190$
			  !set_channel|3|3$
			 $
			!if|({channel_3} &gt; 195) and ({channel_3} &lt; 256)|
			   !set_control|color_speed|{channel_3}$
			 $
			$
		</procedure>

		<procedure name="SetGobo">
			!if|({gobo_speed} &lt; 188) and ({gobo_speed} &gt; 127)|
			 !set_channel|4|{gobo_speed}$
			|
			!if|({gobo_speed} &gt; 187) and ({gobo_speed} &lt; 196)|
			  !set_channel|4|{gobo}$
			 $
			!if|({gobo_speed} &gt; 195) and ({gobo_speed} &lt; 256)|
			   !set_channel|4|{gobo_speed}$
			 $
			$
		</procedure>
		<procedure name="GetGobo">
			!if|({channel_4} &lt; 188) and ({channel_4} &gt; 127)|
			 !set_control|gobo_speed|{channel_4}$
			|
			!if|({channel_4} &gt; 187) and ({channel_4} &lt; 196)|
			  !set_control|gobo|8$
			  !set_control|gobo_speed|190$
			  !set_channel|4|8$
			 $
			!if|({channel_4} &gt; 195) and ({channel_4} &lt; 256)|
			   !set_control|gobo_speed|{channel_4}$
			 $
			$
		</procedure>
  </code>
</device>