<?xml version="1.0" encoding="ISO-8859-1"?>

<device image="Patend.gif">
	<information>
  		<name>GLP Patend Light 1200</name>
 	</information>

	<channels>
		<function channel="0" minvalue="0" maxvalue="255" name="Kopf" fade="yes" type="pan"/>
		<function channel="1" minvalue="0" maxvalue="255" name="Kopf fein" fade="yes" type="panfine"/>
		<function channel="2" minvalue="0" maxvalue="255" name="Spiegel" fade="yes" type="tilt"/>
		<function channel="3" minvalue="0" maxvalue="255" name="Spiegel fein" fade="yes" type="tiltfine"/>
		<function channel="4" minvalue="0" maxvalue="255" name="Speed Kopf" fade="no"/>
		<function channel="5" minvalue="0" maxvalue="255" name="Speed Spiegel" fade="no"/>
		<function channel="6" minvalue="0" maxvalue="255" name="Special" fade="no"/>
		<function channel="7" minvalue="0" maxvalue="255" name="Farben" fade="no" type="color"/>
		<function channel="8" minvalue="0" maxvalue="255" name="Gobo 1" fade="no" type="gobo"/>
		<function channel="9" minvalue="0" maxvalue="255" name="Shutter" fade="no" type="shutter"/>
		<function channel="10" minvalue="0" maxvalue="255" name="Gobo Rotation 1" fade="no" type="rotate"/>
		<function channel="11" minvalue="0" maxvalue="255" name="Iris" fade="no" type="iris"/>
		<function channel="12" minvalue="0" maxvalue="255" name="Fokus" fade="no"/>
		<function channel="13" minvalue="0" maxvalue="255" name="Gobo 2" fade="no" type="gobo"/>
		<function channel="14" minvalue="0" maxvalue="255" name="Gobo Rotation 2" fade="no" type="rotate"/>
		<function channel="15" minvalue="0" maxvalue="255" name="Prisma" fade="no"/>
		<function channel="16" minvalue="0" maxvalue="255" name="Dimmer" fade="yes" type="dimmer"/>
	</channels>

 	<form width="400" height="350">
  		<deviceimage top="0" left="0" width="33" height="33"/>
  		<devicename top="0" left="40" width="129" height="17"/>
  		<deviceadress top="16" left="40" width="129" height="17"/>
  		
  		<position top="40" left="8" height="177" width="177"/>
		
		<label left="0" top="219" caption="Speed Kopf"/>
		<label left="97" top="219" caption="Speed Spiegel"/>
		<label left="210" top="0" caption="Farben"/>
		<label left="210" top="65" caption="Gobo 1"/>
		<label left="210" top="145" caption="Gobo 2"/>
		<label left="210" top="210" caption="Iris"/>
		<label left="301" top="210" caption="Fokus"/>
		<label left="210" top="235" caption="Shutter/Dimmer"/>
		<label left="210" top="300" caption="Effekte"/>		
		
		<line x1="197" y1="0" x2="197" y2="400"/>
		<line x1="0" y1="260" x2="197" y2="260"/>
		<line x1="197" y1="60" x2="400" y2="60"/>
		<line x1="197" y1="140" x2="400" y2="140"/>
		<line x1="197" y1="205" x2="400" y2="205"/>
		<line x1="197" y1="230" x2="400" y2="230"/>
		<line x1="0" y1="295" x2="400" y2="295"/>
		
		<slider name="headspeed" channel="4" left="0" top="235" heigth="25" width="80" minvalue="0" maxvalue="255"/>
		<slider name="mirrowspeed" channel="5" left="97" top="235" heigth="25" width="80" minvalue="0" maxvalue="255"/>
		<slider name="color_rotation" action="SetColor" left="210" top="40" heigth="25" width="190" tickfreq="9" startvalue="128" endvalue="255"/>
		<slider name="gobo1_wheel_rotation" left="330" top="85" heigth="25" width="70" tickfreq="15" startvalue="128" endvalue="255"/>
		<slider name="gobo1_rotation" left="210" top="105" heigth="25" width="190" tickfreq="9" startvalue="55" endvalue="255"/>
		<slider name="gobo2_wheel_rotation" left="330" top="165" heigth="25" width="70" tickfreq="15" startvalue="128" endvalue="255"/>
		<slider name="gobo2_rotation" left="210" top="185" heigth="25" width="190" tickfreq="9" startvalue="55" endvalue="255"/>
		<slider name="iris" channel="11" left="224" top="212" heigth="25" width="70" tickfreq="30" startvalue="255" endvalue="0"/>
		<slider name="focus" channel="12" left="330" top="212" heigth="25" width="70" tickfreq="30" startvalue="0" endvalue="255"/>
		<slider name="shutter" left="330" top="255" heigth="25" width="70" tickfreq="15" startvalue="30" endvalue="99"/>
		<slider name="dimmer" left="210" top="277" heigth="25" width="190" tickfreq="15" startvalue="0" endvalue="255"/>
		<slider name="effect" left="330" top="320" heigth="25" width="70" tickfreq="10" startvalue="0" endvalue="49"/>
		
		<command name="reset" left="0" top="320" width="40" caption="Reset" clicksequence="" />
		<command name="lamp_on" left="52" top="320" width="65" caption="Lampe an" clicksequence="" />
		<command name="lamp_off" left="120" top="320" width="65" caption="Lampe aus" clicksequence="" />
		
		<onoff name="color" action="SetColor" left="335" top="17" height="19" width="65" caption="Halbfarben" onvalue="-1" offvalue="-2"/>  
		
		<options name="gobo_mode" top="120" left="210">
			<option caption="rot." top="0" left="0" value="-1"/>
			<option caption="pos." top="0" left="50" value="-2"/>
		</options>
		
		<dropdown name="special_drop" channel="6" top="268" left="0" width="190">
			<item caption="Rotation Kopf links | -360" value="50"/>
			<item caption="Rotation Kopf links | +360" value="60"/>
			<item caption="Rotation Kopf rechts | -360" value="70"/>
			<item caption="Rotation Kopf rechts | +360" value="80"/>
			<item caption="Rotation Spiegel links | -360" value="90"/>
			<item caption="Rotation Spiegel links| + 360" value="100"/>
			<item caption="Rotation Spiegel rechts | -360" value="110"/>
			<item caption="Rotation Spiegel rechts | +360" value="120"/>
			<item caption="Rotation Kopf links | Spiegel links" value="130"/>
			<item caption="Rotation Kopf links | Spiegel rechts" value="140"/>
			<item caption="Rotation Kopf rechts | Spiegel links" value="150"/>
			<item caption="Rotation Kopf rechts | Spiegel rechts" value="160"/>
			
		</dropdown>
		
		<dropdown name="color_drop" action="SetColor" top="17" left="210" width="115">
			<item caption="weiß/open" value="0"/>
			<item caption="grün" value="10"/>
			<item caption="rot" value="20"/>
			<item caption="UV blau" value="30"/>
			<item caption="gelb" value="40"/>
			<item caption="pink" value="50"/>
			<item caption="türkis" value="60"/>
			<item caption="orange" value="70"/>
			<item caption="blau" value="80"/>
			<item caption="magenta" value="90"/>
			<item caption="rotieren CW" value="-1"/>
			<item caption="rotieren CCW" value="-2"/>
		</dropdown>
		<dropdown name="gobo1_drop" top="82" left="210" width="115">
			<item caption="Gobo 1" value="0"/>
			<item caption="Gobo 2" value="10"/>
			<item caption="Gobo 3" value="20"/>
			<item caption="Gobo 4" value="30"/>
			<item caption="Gobo 5" value="40"/>
			<item caption="Gobo 6" value="50"/>
			<item caption="rotieren CW" value="-1"/>
			<item caption="rotieren CCW" value="-2"/>
		</dropdown>
		<dropdown name="gobo2_drop" top="162" left="210" width="115">
			<item caption="Gobo 1" value="0"/>
			<item caption="Gobo 2" value="10"/>
			<item caption="Gobo 3" value="20"/>
			<item caption="Farbkorrekturfilter" value="30"/>
			<item caption="Gobo 5" value="40"/>
			<item caption="Gobo 6" value="50"/>
			<item caption="rotieren CW" value="-1"/>
			<item caption="rotieren CCW" value="-2"/>
		</dropdown>
		<dropdown name="shutter_drop" top="252" left="210" width="115">
			<item caption="geschlossen" value="-1"/>
			<item caption="offen" value="-2"/>
			<item caption="Strobe" value="-3"/>
		</dropdown>
		<dropdown name="prisma_drop" top="317" left="210" width="115">
			<item caption="offen" value="-1"/>
			<item caption="Prisma 1 fest" value="-2"/>
			<item caption="Prisma 1 CW" value="-3"/>
			<item caption="Prisma 1 CCW" value="-4"/>
			<item caption="Prisma 2 fest" value="-5"/>
			<item caption="Prisma 2 CW" value="-6"/>
			<item caption="Prisma 2 CCW" value="-7"/>
			<item caption="Frostfilter" value="-8"/>
		</dropdown>

 	</form>

<code>
<procedure name='INITCONTROLS'>
 !call|GetColor$
</procedure>
<procedure name='GetColor'>  
!if|({channel_7} &lt; 127) or ({channel_7} = 0)|  
 !if|({channel_7} mod 10)|eq|0|  
  !set_control|color|-2$  
  !set_control|color_drop|{channel_7}$  
 $  
 !if|({channel_7} mod 10)|eq|5|  
  !set_control|color|-1$  
  !set_control|color_drop|({channel_7}-5)$  
 $  
 
   
!if|{channel_7}|gt|127|  
 !if|{channel_7}|lt|192|  
  !set_control|color_drop|-1$  
 $  
 !if|({channel_7} &gt; 192) or ({channel_7} = 192)|  
  !set_control|color_drop|-2$  
 $  
!set_control|color_rotation|{channel_7}$  
$  
$
</procedure>
</code>
</device>