<?xml version="1.0" encoding="ISO-8859-1"?>
<device image="scanner.gif" initsequence="set 0 128;set 1 128;set 2 0;set 3 0;set 4 7;set 5 170;set 6 0;set 7 0">
 <information>
  <name>GLP MAX 250</name>
  <author>Arne Lüdtke</author>
 </information>
 <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" fade="no" type="dimmer" />
  <function channel="3" minvalue="0" maxvalue="255" name="Speed Tilt" fade="no" type="dimmer" />
  <function channel="4" minvalue="0" maxvalue="255" name="Bewegungen" fade="no" type="dimmer" action="GetMove"/>
  <function channel="5" minvalue="0" maxvalue="255" name="Farbe" fade="no" type="color" action="GetColor"/>
  <function channel="6" minvalue="0" maxvalue="255" name="Gobos" fade="no" type="gobo" action="GetGobo"/>
  <function channel="7" minvalue="0" maxvalue="255" name="Shutter" fade="no" type="shutter" action="GetShutter"/>
 </channels>
 <form width="355" height="450">
  <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 top="264" left="0" caption="Farbe"/>
  <dropdown top="280" left="8" width="177" name="color_color" action="SetColor">
   <item caption="5600K" value="0"/>
   <item caption="Blau 107" value="10"/>
   <item caption="Blau 110" value="17"/>
   <item caption="Blau 101" value="25"/>
   <item caption="Cyan 401" value="33"/>
   <item caption="Grün 201" value="42"/>
   <item caption="Grün 204" value="50"/>
   <item caption="Gelb 601" value="58"/>
   <item caption="Orange 306" value="65"/>
   <item caption="Rot 304" value="73"/>
   <item caption="Pink 303" value="82"/>
   <item caption="Magenta 501" value="90"/>
   <item caption="Magenta 507" value="98"/>
   <item caption="Cyan 104" value="105"/>
   <item caption="Orange 302" value="113"/>
   <item caption="Türkis 208" value="121"/>
   <item caption="Pink 310" value="130"/>
   <item caption="Gelb 603" value="137"/>
   <item caption="UV blau 108" value="145"/>
   <item caption="Rot 301" value="153"/>
   <item caption="Offen" value="170"/>
   <item caption="Halbfarben" value="-1"/>
   <item caption="Rotation 1" value="-2"/>
   <item caption="Rotation Stopp" value="-3"/>
   <item caption="Rotation 2" value="-4"/>
  </dropdown>
  <label top="304" left="0" caption="Halbfarbe"/>
  <dropdown top="320" left="8" width="177" name="color_halb" action="SetColor">
   <item caption="Halbfarbe 1" value="1"/>
   <item caption="Halbfarbe 2" value="2"/>
   <item caption="Halbfarbe 3" value="3"/>
   <item caption="Halbfarbe 4" value="4"/>
   <item caption="Halbfarbe 5" value="5"/>
   <item caption="Halbfarbe 6" value="6"/>
   <item caption="Halbfarbe 7" value="7"/>
   <item caption="Halbfarbe 8" value="8"/>
   <item caption="Halbfarbe 9" value="9"/>
   <item caption="Halbfarbe 10" value="10"/>
   <item caption="Halbfarbe 11" value="11"/>
   <item caption="Halbfarbe 12" value="12"/>
   <item caption="Halbfarbe 13" value="13"/>
   <item caption="Halbfarbe 14" value="14"/>
   <item caption="Halbfarbe 15" value="15"/>
   <item caption="Halbfarbe 16" value="16"/>
   <item caption="Halbfarbe 17" value="17"/>
   <item caption="Halbfarbe 18" value="18"/>
   <item caption="Halbfarbe 19" value="19"/>
   <item caption="Halbfarbe 20" value="20"/>
  </dropdown>
  <label top="224" left="0" caption="Gobo" />
  <dropdown top="240" left="8" width="177" name="gobo_gobo" action="SetGobo">
   <item caption="Gobo 1" value="0"/>
   <item caption="Gobo 2" value="12"/>
   <item caption="Gobo 3" value="20"/>
   <item caption="Gobo 4" value="29"/>
   <item caption="Gobo 5" value="35"/>
   <item caption="Gobo 6" value="43"/>
   <item caption="Gobo 7" value="52"/>
   <item caption="Gobo 8" value="59"/>
   <item caption="Gobo 9" value="68"/>
   <item caption="Gobo 10" value="75"/>
   <item caption="Gobo 11" value="83"/>
   <item caption="Gobo 12" value="92"/>
   <item caption="Gobo 13" value="100"/>
   <item caption="Gobo 14" value="108"/>
   <item caption="Gobo 15" value="115"/>
   <item caption="Gobo 16" value="124"/>
   <item caption="Gobo 17" value="132"/>
   <item caption="Gobo 18" value="140"/>
   <item caption="Gobo 19" value="147"/>
   <item caption="Gobo 20" value="155"/>
   <item caption="Gobo 21" value="170"/>
   <item caption="Rotation" value="-1"/>
   <item caption="Rotation Stopp" value="-2"/>
  </dropdown>
<label top="344" left="0" caption="Bewegung Kopf" />
<dropdown top="360" left="8" width="177" name="move_head" action="SetMove">
   <item caption="Pos Min" value="1"/>
   <item caption="Pos Max" value="2"/>
   <item caption="Rotation links" value="3"/>
   <item caption="Rotation rechts" value="4"/>
  </dropdown>
<label top="384" left="0" caption="Bewegung Bügel" />
<dropdown top="400" left="8" width="177" name="move_grid" action="SetMove">
   <item caption="Pos Min" value="1"/>
   <item caption="Pos Max" value="2"/>
   <item caption="Rotation links" value="3"/>
   <item caption="Rotation rechts" value="4"/>
  </dropdown>
<dropdown top="360" left="200" width="150" name="shutter_shutter" action="SetShutter">
   <item caption="Shutter zu 1" value="0"/>
   <item caption="Shutter offen" value="10"/>
   <item caption="Shutter zu 2" value="20"/>
   <item caption="Shutterfrequenz" value="-1"/>
   <item caption="Shutter auf Color/Gobo" value="-2"/>
  </dropdown>
<label top="344" left="200" caption="Shutter"/>
<label top="40" left="200" caption="Pan Geschwindigkeit"/>
<slider channel="2" top="60" left="200" height="30" width="150" startvalue="0" endvalue="255" />
<label top="105" left="200" caption="Tilt Geschwindigkeit" />
<slider channel="3" top="125" left="200" height="30" width="150" startvalue="0" endvalue="255" />
<label top="170" left="200" caption="Gobo Rotation Speed" />
<slider top="190" left="200" height="30" width="150" startvalue="0" endvalue="32" tickfreq="4" name="gobo_speed" action="SetGobo" />
<label top="235" left="200" caption="Farbe Rotation Speed" />
<slider top="255" left="200" height="30" width="150" startvalue="0" endvalue="32" tickfreq="4" name="color_speed" action="SetColor" />
<label top="290" left="200" caption="Shutter Speed" />
<slider top="310" left="200" height="30" width="150" startvalue="0" endvalue="102" tickfreq="13" name="shutter_speed" action="SetShutter" />
  <line x1="32" y1="232" x2="192" y2="232"/>
  <line x1="32" y1="272" x2="192" y2="272"/>
<line x1="32" y1="352" x2="192" y2="352"/>
<line x1="32" y1="312" x2="192" y2="312"/>
<line x1="32" y1="392" x2="192" y2="392"/>
<command top="400" left="230" width="80" caption="Reset" clicksequence="save 4;set 4 255;hold 5500;restore 4"/>
 </form>
<code>
 <procedure name='INITCONTROLS'>
   !call|GetColor$
   !call|GetGobo$
   !call|GetMove$
   !call|GetShutter$
   !set_control|color_speed|0$
   !set_control|color_halb|1$
   !set_control|shutter_speed|0$
  </procedure>

<procedure name='GetColor'>
!if|({channel_5} &lt; 176) and ({channel_5} &gt; -1) and ({color_color} &gt; -1)|
 !set_control|color_color|{channel_5}$
|
!if|({channel_5} &lt; 176) and ({channel_5} &gt; -1) and ({color_color} = -1)|
 !set_control|color_color|-1$
 $
!if|({channel_5} &gt; 175) and ({channel_5} &lt; 209)|
  !set_control|color_color|-2$
  !set_control|color_speed|({channel_5}-176)$
 $
!if|({channel_5} &gt; 208) and ({channel_5} &lt; 222)|
  !set_control|color_color|-3$
 $
!if|({channel_5} &gt; 221) and ({channel_5} &lt; 256)|
  !set_control|color_color|-4$
  !set_control|color_speed|({channel_5}-222)$
 $
$
</procedure>

  <procedure name='SetColor'>
!if|{color_color}|gt|-1|
 !set_channel|5|{color_color}$
|
 !if|{color_color}|eq|-1|
  !set_channel|5|(({color_halb}*8)-3)$
 $
 !if|{color_color}|eq|-2|
  !set_channel|5|(176+{color_speed})$
 $
 !if|{color_color}|eq|-3|
  !set_channel|5|210$
 $
 !if|{color_color}|eq|-4|
  !set_channel|5|(222+{color_speed})$
 $
$
  </procedure>

<procedure name='GetGobo'>
!if|{channel_6} &lt; 176|
 !set_control|gobo_gobo|{channel_6}$
  !set_control|gobo_speed|0$
|
!if|({channel_6} &gt; 175) and ({channel_6} &lt; 209)|
  !set_control|gobo_gobo|-1$
  !set_control|gobo_speed|({channel_6}-176)$
 $
!if|({channel_6} &gt; 208) and ({channel_6} &lt; 256)|
  !set_control|gobo_gobo|-2$
 $
$
</procedure>

  <procedure name='SetGobo'>
!if|{gobo_gobo}|gt|-1|
 !set_channel|6|{gobo_gobo}$
|
 !if|{gobo_gobo}|eq|-1|
  !set_channel|6|(176+{gobo_speed})$
 $
 !if|{gobo_gobo}|eq|-2|
  !set_channel|6|255$
 $
$
  </procedure>

<procedure name='GetShutter'>
!if|{channel_7} &lt; 24|
 !set_control|shutter_shutter|{channel_7}$
|
!if|({channel_7} &gt; 23) and ({channel_7} &lt; 128)|
  !set_control|shutter_shutter|-1$
  !set_control|shutter_speed|({channel_7}-24)$
 $
!if|({channel_7} &gt; 127) and ({channel_7} &lt; 256)|
  !set_control|shutter_shutter|-2$
  !set_control|shutter_speed|({channel_7}-128)$
 $
$
</procedure>

  <procedure name='SetShutter'>
!if|{shutter_shutter}|gt|-1|
 !set_channel|7|{shutter_shutter}$
|
 !if|{shutter_shutter}|eq|-1|
  !set_channel|7|(24+{shutter_speed})$
 $
 !if|{shutter_shutter}|eq|-2|
  !set_channel|7|(128+{shutter_speed})$
 $
$
  </procedure>

<procedure name='GetMove'>
!if|{channel_4} = 7|
 !set_control|move_head|1$
 !set_control|move_grid|1$
|
!if|{channel_4} = 20|
 !set_control|move_head|1$
 !set_control|move_grid|2$
 $
!if|{channel_4} = 40|
 !set_control|move_head|2$
 !set_control|move_grid|1$
 $
!if|{channel_4} = 55|
 !set_control|move_head|2$
 !set_control|move_grid|2$
 $
!if|{channel_4} = 70|
 !set_control|move_head|3$
 !set_control|move_grid|1$
 $
!if|{channel_4} = 87|
 !set_control|move_head|3$
 !set_control|move_grid|2$
 $
!if|{channel_4} = 102|
 !set_control|move_head|4$
 !set_control|move_grid|1$
 $
!if|{channel_4} = 120|
 !set_control|move_head|4$
 !set_control|move_grid|2$
 $
!if|{channel_4} = 135|
 !set_control|move_head|1$
 !set_control|move_grid|3$
 $
!if|{channel_4} = 150|
 !set_control|move_head|2$
 !set_control|move_grid|3$
 $
!if|{channel_4} = 167|
 !set_control|move_head|1$
 !set_control|move_grid|4$
 $
!if|{channel_4} = 182|
 !set_control|move_head|2$
 !set_control|move_grid|4$
 $
!if|{channel_4} = 200|
 !set_control|move_head|3$
 !set_control|move_grid|3$
 $
!if|{channel_4} = 210|
 !set_control|move_head|4$
 !set_control|move_grid|4$
 $
!if|{channel_4} = 220|
 !set_control|move_head|3$
 !set_control|move_grid|4$
 $
!if|{channel_4} = 240|
 !set_control|move_head|4$
 !set_control|move_grid|3$
 $
$
</procedure>

<procedure name='SetMove'>
!if|({move_head} = 1) and ({move_grid} = 1)|
 !set_channel|4|7$
|
!if|({move_head} = 1) and ({move_grid} = 2)|
 !set_channel|4|20$
 $
!if|({move_head} = 2) and ({move_grid} = 1)|
 !set_channel|4|40$
 $
!if|({move_head} = 2) and ({move_grid} = 2)|
 !set_channel|4|55$
 $
!if|({move_head} = 3) and ({move_grid} = 1)|
 !set_channel|4|70$
 $
!if|({move_head} = 3) and ({move_grid} = 2)|
 !set_channel|4|87$
 $
!if|({move_head} = 4) and ({move_grid} = 1)|
 !set_channel|4|102$
 $
!if|({move_head} = 4) and ({move_grid} = 2)|
 !set_channel|4|120$
 $
!if|({move_head} = 1) and ({move_grid} = 3)|
 !set_channel|4|135$
 $
!if|({move_head} = 2) and ({move_grid} = 3)|
 !set_channel|4|150$
 $
!if|({move_head} = 1) and ({move_grid} = 4)|
 !set_channel|4|167$
 $
!if|({move_head} = 2) and ({move_grid} = 4)|
 !set_channel|4|182$
 $
!if|({move_head} = 3) and ({move_grid} = 3)|
 !set_channel|4|200$
 $
!if|({move_head} = 4) and ({move_grid} = 4)|
 !set_channel|4|210$
 $
!if|({move_head} = 3) and ({move_grid} = 4)|
 !set_channel|4|220$
 $
!if|({move_head} = 4) and ({move_grid} = 3)|
 !set_channel|4|240$
 $
$
</procedure>

</code>

</device>