<?xml version="1.0" encoding="ISO-8859-1"?>
<device image="Mh.gif" initsequence="set 0 128;set 1 128;set 2 128;set 3 128;set 8 0;set 12 0;set 13 0; set 14 0;set 15 0">
  <information>
    <comment>Based on the iSpot 575 EB-DDF by S. Hartmann &amp; Mario Lipinski</comment>
    <vendor>Coemar</vendor>
    <name>Pro Spot LX</name>
    <author>Marian Neubert</author>
  </information>
  <channels>
    <function channel="0" minvalue="0" maxvalue="255" name="pan" fade="yes" type="pan" />
    <function channel="1" minvalue="0" maxvalue="255" name="pan (fine)" fade="yes" type="panfine" />
    <function channel="2" minvalue="0" maxvalue="255" name="tilt" fade="yes" type="tilt" />
    <function channel="3" minvalue="0" maxvalue="255" name="tilt (fine)" fade="yes" type="tiltfine" />
    <function channel="4" minvalue="0" maxvalue="255" name="movement speed" fade="no" action="GetMovementSpeed" />
    <function channel="5" minvalue="0" maxvalue="255" name="dimmer" fade="yes" type="dimmer" />
    <function channel="6" minvalue="0" maxvalue="255" name="shutter, strobe" fade="no" action="GetShutter" />
    <function channel="7" minvalue="0" maxvalue="255" name="focus" fade="no" />
    <function channel="8" minvalue="0" maxvalue="255" name="gobo" fade="no" type="gobo" action="GetGobo" />
    <function channel="9" minvalue="0" maxvalue="255" name="gobo index" fade="yes" />
    <function channel="10" minvalue="0" maxvalue="255" name="gobo rotation" fade="no" action="GetGoboRotation" />
    <function channel="11" minvalue="0" maxvalue="255" name="prism" fade="no" action="GetPrism" />
    <function channel="12" minvalue="0" maxvalue="255" name="color" fade="no" type="color" action="GetColor" />
    <function channel="13" minvalue="0" maxvalue="255" name="gobo shake and black-out" fade="no" action="GetShake" />
    <function channel="14" minvalue="0" maxvalue="255" name="gobo shake anplitude" fade="no" />
    <function channel="15" minvalue="0" maxvalue="255" name="control" fade="no" action="GetControl" />
  </channels>
  <form width="581" height="413">
    <deviceimage top="0" left="0" />
    <devicename top="0" left="40" />
    <deviceadress top="16" left="40" />
    <label top="35" left="0" caption="Movement" />
    <position top="48" left="0" height="177" width="177" />
    <label top="272" left="0" caption="Movement speed" />
    <dropdown top="288" left="0" width="177" name="movementspeed_mode" action="SetMovementSpeed">
      <item caption="fast (standard)" value="1" />
      <item caption="ultra fast" value="2" />
      <item caption="vector mode*" value="3" />
      <item caption="tracking mode*" value="4" />
      <item caption="tracking mode (slow)" value="5" />
    </dropdown>
    <slider top="320" left="0" height="41" width="177" startvalue="0" endvalue="101" name="movementspeed_speed" action="SetMovementSpeed" largechange="10" smallchange="5" tickfreq="10" />
    <label top="160" left="384" caption="Dimmer" />
    <slider top="176" left="384" height="41" width="177" startvalue="0" endvalue="255" tickfreq="10" smallchange="1" largechange="5" channel="5" />
    <label top="216" left="384" caption="Focus" />
    <slider top="232" left="384" height="41" width="177" startvalue="0" endvalue="255" tickfreq="10" smallchange="1" largechange="5" channel="7" />
    <label top="32" left="192" caption="Color" />
    <dropdown top="48" left="192" width="177" name="color_dropdown" action="SetColor">
      <item caption="white" value="0" color="#FFFFFF" />
      <item caption="yellow" value="7" color="#FFFF00" />
      <item caption="light purple" value="12" color="#FF79FF" />
      <item caption="blue" value="17" color="#0000FF" />
      <item caption="light red" value="22" color="#FF0000" />
      <item caption="green" value="27" color="#00FF00" />
      <item caption="red" value="32" color="#800000" />
      <item caption="dark purple" value="37" color="#800080" />
      <item caption="light blue" value="42" color="#00FFFF" />
      <item caption="pink" value="47" color="#FF00FF" />
      <item caption="orange" value="52" color="#FF8000" />
      <item caption="magenta" value="57" color="#FF0080" />
      <item caption="rainbow clockwise*" value="-1" />
      <item caption="rainbow counter clockwise*" value="-2" />
    </dropdown>
    <label top="80" left="384" caption="Speed" />
    <slider top="72" left="232" height="41" width="138" startvalue="0" endvalue="63" tickfreq="10" smallchange="1" largechange="10" name="color_speed" action="SetColor" />
    <label top="112" left="192" caption="Gobo" />
    <dropdown top="128" left="192" width="177" name="gobo_dropbox" action="SetGobo">
      <item caption="no gobo" value="0" />
      <item caption="gobo 1" value="12" />
      <item caption="gobo 2" value="32" />
      <item caption="gobo 3" value="52" />
      <item caption="gobo 4" value="72" />
      <item caption="gobo 5" value="92" />
      <item caption="gobo 6" value="112" />
      <item caption="wheel rotate*" value="-1" />
    </dropdown>
    <label top="152" left="192" caption="Wheelrotation" />
    <slider top="152" left="264" height="30" width="97" startvalue="0" endvalue="62" tickfreq="10" smallchange="1" largechange="10" name="gobo_wheelrotationspeed" action="SetGobo" />
    <label top="176" left="192" caption="Index" />
    <slider top="176" left="264" height="30" width="97" startvalue="0" endvalue="255" tickfreq="10" smallchange="1" largechange="10" name="gobo_index" channel="9" />
    <options top="200" left="192" name="gobo_rotation_options" action="SetGoboRotation">
      <option caption="Stop" top="0" left="0" value="1" />
      <option caption="Rotate cw*" top="20" left="0" value="2" />
      <option caption="Rotate ccw*" top="35" left="0" value="3" />
    </options>
    <slider top="224" left="264" height="30" width="97" startvalue="0" endvalue="120" tickfreq="10" smallchange="1" largechange="10" name="gobo_rotation" action="SetGoboRotation" />
    <label top="272" left="192" caption="Shutter" />
    <dropdown top="288" left="192" width="177" name="shutter_mode" action="SetShutter">
      <item caption="shutter closed" value="1" />
      <item caption="shutter open" value="2" />
      <item caption="strobe*" value="3" />
      <item caption="pulse (slow close, fast open)*" value="4" />
      <item caption="pulse (fast close, slow open)*" value="5" />
      <item caption="random strobe*" value="6" />
    </dropdown>
    <slider top="288" left="384" height="41" width="177" startvalue="0" endvalue="56" tickfreq="5" smallchange="1" largechange="5" name="shutter_speed" action="SetShutter" />
    <label top="328" left="192" caption="Prism" />
    <dropdown top="344" left="192" width="177" name="prism_mode" action="SetPrism">
      <item caption="off" value="1" />
      <item caption="on" value="2" />
      <item caption="rotate cw*" value="3" />
      <item caption="rotate ccw*" value="4" />
    </dropdown>
    <slider top="344" left="384" height="41" width="177" startvalue="0" endvalue="115" tickfreq="10" smallchange="1" largechange="10" name="prism_speed" action="SetPrism" />
    <label top="376" left="0" caption="Control" />
    <dropdown top="392" left="0" width="372" name="control" action="DoNothing">
      <item caption="lamp off" value="1" />
      <item caption="no function (idle)" value="2" />
      <item caption="effects reset, except pan/tilt (once only)" value="3" />
      <item caption="reset of all the motors (once only)" value="4" />
      <item caption="fans off (if internal temperature allows)" value="5" />
      <item caption="lamp on" value="6" />
    </dropdown>
    <command top="392" left="392" width="49" caption="Set" height="20" action="SetControl" />
    <label top="0" left="424" caption="* use slider to set weight" />
    <label top="32" left="384" caption="Gobo Shake / Black Out" />
    <dropdown top="48" left="384" width="169" name="shakespeed_mode" action="SetShake">
      <item caption="no effect" value="1" />
      <item caption="gobo shake*" value="2" />
      <item caption="black out on move" value="3" />
    </dropdown>
    <slider top="72" left="424" height="41" width="129" startvalue="0" endvalue="239" name="shakespeed_speed" largechange="10" smallchange="1" tickfreq="10" action="SetShake" />
    <label top="80" left="192" caption="Speed" />
    <label top="112" left="384" caption="Gobo Shake Amplitude" />
    <dropdown top="128" left="384" width="169" name="amplitude_dropdown" channel="14">
      <item caption="max" value="0" />
      <item caption="size 2" value="24" />
      <item caption="size 3" value="48" />
      <item caption="size 4" value="72" />
      <item caption="size 5" value="96" />
      <item caption="size 6" value="120" />
      <item caption="size 7" value="144" />
      <item caption="size 8" value="168" />
      <item caption="size 9" value="192" />
      <item caption="size 10" value="216" />
      <item caption="min" value="240" />
    </dropdown>
    <label top="272" left="384" caption="Shutter Speed" />
    <label top="328" left="384" caption="Prism Speed" />
  </form>
  <code>
    <procedure name="INITCONTROLS"> !call|GetColor$
!call|GetControl$
!call|GetGobo$
!call|GetGoboRotation$
!call|GetMovementSpeed$
!call|GetPrism$
!call|GetShutter$
!call|GetShake$
</procedure>
    <procedure name="GetColor">!if|({channel_12} &gt; -1) and ({channel_12} &lt; 5)|
 !set_control|color_dropdown|0$
 !set_control|color_speed|0$
$
!if|({channel_12} &gt; 4) and ({channel_12} &lt; 10)|
 !set_control|color_dropdown|7$
 !set_control|color_speed|0$
$
!if|({channel_12} &gt; 9) and ({channel_12} &lt; 15)|
 !set_control|color_dropdown|12$
 !set_control|color_speed|0$
$
!if|({channel_12} &gt; 14) and ({channel_12} &lt; 20)|
 !set_control|color_dropdown|17$
 !set_control|color_speed|0$
$
!if|({channel_12} &gt; 19) and ({channel_12} &lt; 25)|
 !set_control|color_dropdown|22$
 !set_control|color_speed|0$
$
!if|({channel_12} &gt; 24) and ({channel_12} &lt; 30)|
 !set_control|color_dropdown|27$
 !set_control|color_speed|0$
$
!if|({channel_12} &gt; 29) and ({channel_12} &lt; 35)|
 !set_control|color_dropdown|32$
 !set_control|color_speed|0$
$
!if|({channel_12} &gt; 34) and ({channel_12} &lt; 40)|
 !set_control|color_dropdown|37$
 !set_control|color_speed|0$
$
!if|({channel_12} &gt; 39) and ({channel_12} &lt; 45)|
 !set_control|color_dropdown|42$
 !set_control|color_speed|0$
$
!if|({channel_12} &gt; 44) and ({channel_12} &lt; 50)|
 !set_control|color_dropdown|47$
 !set_control|color_speed|0$
$
!if|({channel_12} &gt; 49) and ({channel_12} &lt; 55)|
 !set_control|color_dropdown|52$
 !set_control|color_speed|0$
$
!if|({channel_12} &gt; 54) and ({channel_12} &lt; 60)|
 !set_control|color_dropdown|57$
 !set_control|color_speed|0$
$
!if|({channel_12} &gt; 127) and ({channel_12} &lt; 191)|
 !set_control|color_dropdown|-1$
 !set_control|color_speed|(191-{channel_12})$
$
!if|({channel_12} &gt; 192) and ({channel_12} &lt; 256)|
 !set_control|color_dropdown|-2$
 !set_control|color_speed|({channel_12}-192)$
$</procedure>
    <procedure name="GetControl">!if|({channel_15} &gt; -1) and ({channel_15} &lt; 20)|
 !set_control|control|1$
$
!if|({channel_15} &gt; 19) and ({channel_15} &lt; 101)|
 !set_control|control|2$
$
!if|({channel_15} &gt; 100) and ({channel_15} &lt; 171)|
 !set_control|control|3$
$
!if|({channel_15} &gt; 170) and ({channel_15} &lt; 201)|
 !set_control|control|4$
$
!if|({channel_15} &gt; 200) and ({channel_15} &lt; 241)|
 !set_control|control|5$
$
!if|({channel_15} &gt; 240) and ({channel_15} &lt; 256)|
 !set_control|control|6$
$</procedure>
    <procedure name="GetGobo">!if|({channel_8} &gt; -1) and ({channel_8} &lt; 11)|
 !set_control|gobo_dropbox|0$
 !set_control|gobo_wheelrotationspeed|0$
$
!if|({channel_8} &gt; 10) and ({channel_8} &lt; 31)|
 !set_control|gobo_dropbox|12$
 !set_control|gobo_wheelrotationspeed|0$
$
!if|({channel_8} &gt; 30) and ({channel_8} &lt; 51)|
 !set_control|gobo_dropbox|32$
 !set_control|gobo_wheelrotationspeed|0$
$
!if|({channel_8} &gt; 50) and ({channel_8} &lt; 71)|
 !set_control|gobo_dropbox|52$
 !set_control|gobo_wheelrotationspeed|0$
$
!if|({channel_8} &gt; 70) and ({channel_8} &lt; 91)|
 !set_control|gobo_dropbox|72$
 !set_control|gobo_wheelrotationspeed|0$
$
!if|({channel_8} &gt; 90) and ({channel_8} &lt; 111)|
 !set_control|gobo_dropbox|92$
 !set_control|gobo_wheelrotationspeed|0$
$
!if|({channel_8} &gt; 110) and ({channel_8} &lt; 128)|
 !set_control|gobo_dropbox|112$
 !set_control|gobo_wheelrotationspeed|0$
$
!if|({channel_8} &gt; 192) and ({channel_8} &lt; 256)|
 !set_control|gobo_dropbox|-1$
 !set_control|gobo_wheelrotationspeed|({channel_8}-193)$
$</procedure>
    <procedure name="GetGoboRotation">!if|({channel_10} &gt; -1) and ({channel_10} &lt; 11)|
 !set_control|gobo_rotation_options|1$
 !set_control|gobo_rotation|0$
$
!if|({channel_10} &gt; 10) and ({channel_10} &lt; 132)|
 !set_control|gobo_rotation_options|2$
 !set_control|gobo_rotation|((1)*(131-{channel_10}))$
$
!if|({channel_10} &gt; 134) and ({channel_10} &lt; 256)|
 !set_control|gobo_rotation_options|3$
 !set_control|gobo_rotation|((1)*({channel_10}-135))$
$</procedure>
    <procedure name="GetMovementSpeed">!if|({channel_4} &gt; -1) and ({channel_4} &lt; 11)|
  !set_control|movementspeed_mode|1$
  !set_control|movementspeed_speed|0$
$
!if|({channel_4} &gt; 10) and ({channel_4} &lt; 26)|
  !set_control|movementspeed_mode|2$
  !set_control|movementspeed_speed|0$
$
!if|({channel_4} &gt; 25) and ({channel_4} &lt; 128)|
  !set_control|movementspeed_mode|3$
  !set_control|movementspeed_speed|(127-{channel_4})$
$
!if|({channel_4} &gt; 127) and ({channel_4} &lt; 248)|
  !set_control|movementspeed_mode|4$
  !set_control|movementspeed_speed|(247-{channel_4})$
$
!if|({channel_4} &gt; 247)|
  !set_control|movementspeed_mode|5$
  !set_control|movementspeed_speed|0$
$</procedure>
    <procedure name="GetPrism">!if|({channel_11} &gt; -1) and ({channel_11} &lt; 11)|
  !set_control|prism_mode|1$
  !set_control|prism_speed|0$
$
!if|({channel_11} &gt; 10) and ({channel_11} &lt; 21)|
  !set_control|prism_mode|2$
  !set_control|prism_speed|0$
$
!if|({channel_11} &gt; 20) and ({channel_11} &lt; 137)|
  !set_control|prism_mode|3$
  !set_control|prism_speed|(136-{channel_11})$
$
!if|({channel_11} &gt; 136) and ({channel_11} &lt; 140)|
  !set_control|prism_mode|1$
  !set_control|prism_speed|0$
$
!if|({channel_11} &gt; 139) and ({channel_11} &lt; 256)|
  !set_control|prism_mode|4$
  !set_control|prism_speed|({channel_11}-140)$
$</procedure>
    <procedure name="GetShutter">!if|({channel_6} &gt; -1) and ({channel_6} &lt; 10)|
 !set_control|shutter_mode|1$
 !set_control|shutter_speed|0$
$
!if|(({channel_6} &gt; 66) and ({channel_6} &lt; 69)) or (({channel_6} &gt; 125) and ({channel_6} &lt; 128)) or (({channel_6} &gt; 184) and ({channel_6} &lt; 188)) or (({channel_6} &gt; 244) and ({channel_6} &lt; 256))|
 !set_control|shutter_mode|2$
 !set_control|shutter_speed|0$
$
!if|({channel_6} &gt; 9) and ({channel_6} &lt; 67)|
 !set_control|shutter_mode|3$
 !set_control|shutter_speed|({channel_6}-10)$
$
!if|({channel_6} &gt; 68) and ({channel_6} &lt; 126)|
 !set_control|shutter_mode|4$
 !set_control|shutter_speed|({channel_6}-69)$
$
!if|({channel_6} &gt; 127) and ({channel_6} &lt; 185)|
 !set_control|shutter_mode|5$
 !set_control|shutter_speed|(184-{channel_6})$
$
!if|({channel_6} &gt; 187) and ({channel_6} &lt; 245)|
 !set_control|shutter_mode|6$
 !set_control|shutter_speed|({channel_6}-188)$
$</procedure>
    <procedure name="GetShake">!if|({channel_13} &gt; -1) and ({channel_13} &lt; 10)|
  !set_control|shakespeed_mode|1$
  !set_control|shakespeed_speed|0$
$
!if|({channel_13} &gt; 9) and ({channel_13} &lt; 250)|
  !set_control|shakespeed_mode|2$
  !set_control|shakespeed_speed|({channel_13}-10)$
$
!if|({channel_13} &gt; 249) and ({channel_13} &lt; 256)|
  !set_control|shakespeed_mode|3$
  !set_control|shakespeed_speed|0$
$</procedure>
    <procedure name="SetColor">!if|{color_dropdown}|gt|-1|
 !set_channel|12|{color_dropdown}$
|
 !if|{color_dropdown}|eq|-1|
  !set_channel|12|(190-{color_speed})$
 $
 !if|{color_dropdown}|eq|-2|
  !set_channel|12|(193+{color_speed})$
 $
$</procedure>
    <procedure name="SetControl">!if|{control} = 1|
  !set_channel|15|0$
$
!if|{control} = 2|
  !set_channel|15|21$
$
!if|{control} = 3|
  !set_channel|15|102$
$
!if|{control} = 4|
  !set_channel|15|172$
$
!if|{control} = 5|
  !set_channel|15|202$
$
!if|{control} = 6|
  !set_channel|15|242$
$</procedure>
    <procedure name="SetGobo">!if|{gobo_dropbox}|gt|-1|
 !set_channel|8|{gobo_dropbox}$
$
!if|{gobo_dropbox}|eq|-1|
 !set_channel|8|(193+{gobo_wheelrotationspeed})$
$</procedure>
    <procedure name="SetGoboRotation">!if|{gobo_rotation_options}|eq|1|
 !set_control|gobo_rotation|0$
 !set_channel|10|0$
$
!if|{gobo_rotation_options}|eq|2|
 !set_channel|10|(131-{gobo_rotation})$
$
!if|{gobo_rotation_options}|eq|3|
 !set_channel|10|(135+{gobo_rotation})$
$</procedure>
    <procedure name="SetMovementSpeed">!if|{movementspeed_mode} = 1|
  !set_channel|4|0$
$
!if|{movementspeed_mode} = 2|
  !set_channel|4|12$
$
!if|{movementspeed_mode} = 3|
  !set_channel|4|(127-{movementspeed_speed})$
$
!if|{movementspeed_mode} = 4|
  !set_channel|4|(247-{movementspeed_speed})$
$
!if|{movementspeed_mode} = 5|
  !set_channel|4|249$
$</procedure>
    <procedure name="SetPrism">!if|{prism_mode} = 1|
  !set_channel|11|0$
$
!if|{prism_mode} = 2|
  !set_channel|11|11$
$
!if|{prism_mode} = 3|
  !set_channel|11|(136-{prism_speed})$
$
!if|{prism_mode} = 4|
  !set_channel|11|(140+{prism_speed})$
$</procedure>
    <procedure name="SetShutter">!if|{shutter_mode}|eq|1|
 !set_channel|6|0$
$
!if|{shutter_mode}|eq|2|
 !set_channel|6|67$
$
!if|{shutter_mode}|eq|3|
 !set_channel|6|(10+{shutter_speed})$
$
!if|{shutter_mode}|eq|4|
 !set_channel|6|(69+{shutter_speed})$
$
!if|{shutter_mode}|eq|5|
 !set_channel|6|(184-{shutter_speed})$
$
!if|{shutter_mode}|eq|6|
 !set_channel|6|(188+{shutter_speed})$
$</procedure>
    <procedure name="SetShake">!if|{shakespeed_mode} = 1|
  !set_channel|13|0$
$
!if|{shakespeed_mode} = 2|
  !set_channel|13|(10+{shakespeed_speed})$
$
!if|{shakespeed_mode} = 3|
  !set_channel|13|251$
$</procedure>
    <procedure name="DoNothing">!set_channel|15|{channel_15}$</procedure>
  </code>
</device>
