<?xml version="1.0" encoding="ISO-8859-1"?>
<device image="ispot575.gif" initsequence="set 21 0;set 0 128;set 1 128;set 2 128;set 3 128">
 <information>
  <name>Coemar ISpot575eb</name>
  <author>Version:0.1 </author>
  <vendor>Coemar</vendor>
  
 </information>
 <channels>
  <function channel="0" minvalue="0" maxvalue="255" name="Pan" fade="yes" type="pan"/>
  <function channel="1" minvalue="0" maxvalue="255" name="Pan (Fein)" 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 (Fein)" fade="yes" type="tiltfine"/>
  <function channel="4" minvalue="0" maxvalue="255" name="Movement Speed" fade="no"/>
  <function channel="5" minvalue="0" maxvalue="255" name="Dimmer" fade="yes" type="dimmer"/>
  <function channel="6" minvalue="0" maxvalue="255" name="Shutter" fade="no" action="GetShutter"/>
  <function channel="7" minvalue="0" maxvalue="255" name="Iris" fade="no" action="GetIris"/>
  <function channel="8" minvalue="0" maxvalue="255" name="Zoom" fade="no" action="GetZoom"/>
  <function channel="9" minvalue="0" maxvalue="255" name="Fokus" fade="no"/>
  <function channel="10" minvalue="0" maxvalue="255" name="Gobo" fade="no" action="GetGobo" type="gobo"/>
  <function channel="11" minvalue="0" maxvalue="255" name="Goboorientation" fade="yes" action="GetGobo"/>
  <function channel="12" minvalue="0" maxvalue="255" name="Goborotation" fade="no" action="GetGobo"/>
  <function channel="13" minvalue="0" maxvalue="255" name="Gobo" fade="no" action="GetGobo2" type="gobo"/>
  <function channel="14" minvalue="0" maxvalue="255" name="Goboorientation" fade="yes" action="GetGobo2"/>
  <function channel="15" minvalue="0" maxvalue="255" name="Goborotation" fade="no" action="GetGobo2"/>
  <function channel="16" minvalue="0" maxvalue="255" name="Prisma" fade="no" action="GetPrism"/>
  <function channel="17" minvalue="0" maxvalue="255" name="Color1" fade="no" action="GetColor" type="color"/>
  <function channel="18" minvalue="0" maxvalue="255" name="Color2" fade="no" action="GetColor2" type="color"/>
  <function channel="19" minvalue="0" maxvalue="255" name="Gobo" fade="no" action="GetGobo" type="gobo"/>
  <function channel="20" minvalue="0" maxvalue="255" name="Slide+Zap" fade="no" action="GetZap" />
  <function channel="21" minvalue="0" maxvalue="255" name="Spezials" fade="no" action="GetSpezials"/>
  
 </channels>
 <form width="485" height="320">
  <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="224" left="8" caption="Helligkeit"/>
  <slider top="240" left="16" height="25" width="169" startvalue="0" endvalue="255" tickfreq="51" smallchange="10" largechange="50" channel="5"/>

  <label top="0" left="200" caption="Farbe"/>
  <dropdown top="20" left="200" width="120" name="color_color" action="SetColor">
   <item caption="{colorname_1}" value="0"/>
   <item caption="{colorname_2}" value="18"/>
   <item caption="{colorname_3}" value="38"/>
   <item caption="{colorname_4}" value="58"/>
   <item caption="{colorname_5}" value="78"/>
   <item caption="{colorname_6}" value="98"/>
   <item caption="{colorname_7}" value="118"/>
  </dropdown>
  <slider top="40" left="200" height="25" width="113" startvalue="128" endvalue="255" tickfreq="9" smallchange="1" largechange="5" name="color_speed" action="SetColor"/>
  
  <dropdown top="20" left="325" width="120" name="color_color2" action="SetColor2">
   <item caption="{colorname_1}" value="0"/>
   <item caption="{colorname_2}" value="18"/>
   <item caption="{colorname_3}" value="38"/>
   <item caption="{colorname_4}" value="58"/>
   <item caption="{colorname_5}" value="78"/>
   <item caption="{colorname_6}" value="98"/>
   <item caption="{colorname_7}" value="118"/>
  </dropdown>
  <slider top="40" left="325" height="25" width="113" startvalue="128" endvalue="255" tickfreq="9" smallchange="1" largechange="5" name="color_speed2" action="SetColor2"/>
  
  <label top="65" left="200" caption="Gobo"/>
  <dropdown top="90" left="200" width="120" name="gobos_gobo" action="SetGobo">
   <item caption="{goboname_1}" value="0"/>
   <item caption="{goboname_2}" value="1"/>
   <item caption="{goboname_3}" value="2"/>
   <item caption="{goboname_4}" value="3"/>
   <item caption="{goboname_5}" value="4"/>
   <item caption="{goboname_6}" value="5"/>
   <item caption="{goboname_7}" value="6"/>
  </dropdown>
  <slider top="110" left="200" height="25" width="55" startvalue="193" endvalue="255" tickfreq="8" smallchange="5" largechange="11" name="gobos_wheelspeed" action="SetGobo"/>
  <slider top="110" left="260" height="25" width="55" startvalue="0" endvalue="255" tickfreq="8" smallchange="5" largechange="11" channel="11"/>
  
  <dropdown top="90" left="325" width="120" name="gobos_gobo2" action="SetGobo2">
   <item caption="{goboname_1}" value="0"/>
   <item caption="{goboname_2}" value="1"/>
   <item caption="{goboname_3}" value="2"/>
   <item caption="{goboname_4}" value="3"/>
   <item caption="{goboname_5}" value="4"/>
   <item caption="{goboname_6}" value="5"/>
   <item caption="{goboname_7}" value="6"/>
  </dropdown>
  <slider top="110" left="325" height="25" width="55" startvalue="193" endvalue="255" tickfreq="8" smallchange="5" largechange="11" name="gobos_wheelspeed2" action="SetGobo2"/>
  <slider top="110" left="385" height="25" width="55" startvalue="0" endvalue="255" tickfreq="8" smallchange="5" largechange="11" channel="14"/>

  <label top="140" left="200" caption="Shutter:"/>
  <dropdown top="160" left="200" width="120" name="shutter_mode" action="SetShutter">
   <item caption="Shutter geschlossen" value="0"/>
   <item caption="Shutter offen" value="20"/>
   <item caption="Strobe" value="-1"/>
   <item caption="Pulsierend öffnen" value="-2"/>
   <item caption="Pulsierend schliessen" value="-3"/>
   <item caption="Zufälliges Strobe langsam" value="178"/>
   <item caption="Zufälliges Strobe mittel" value="158"/>
   <item caption="Zufälliges Strobe schnell" value="138"/>
   <item caption="Zuf. puls. öffnen langsam" value="192"/>
   <item caption="Zuf. puls. öffnen schnell" value="195"/>
   <item caption="Zuf. puls. schliessen langsam" value="201"/>
   <item caption="Zuf. puls. schliessen schnell" value="198"/>
  </dropdown>
  <slider top="160" left="330" height="25" width="120" startvalue="0" endvalue="19" tickfreq="5" smallchange="1" largechange="5" name="shutter_speed" action="SetShutter"/>

  <label top="190" left="200" caption="Prisma:"/>
  <dropdown top="210" left="200" width="120" name="prism_mode" action="SetPrism">
   <item caption="Prisma aus" value="0"/>
   <item caption="Rotieren UZ" value="-1"/>
   <item caption="Rotieren GUZ" value="-2"/>
   <item caption="Prisma an" value="1"/>
  </dropdown>
  <slider top="210" left="325" height="25" width="120" startvalue="0" endvalue="115" tickfreq="20" smallchange="10" largechange="20" name="prism_speed" action="SetPrism"/>

  <label top="240" left="200" caption="Iris:"/>
  <slider top="260" left="200" height="25" width="120" startvalue="0" endvalue="255" tickfreq="20" smallchange="10" largechange="20" name="iris" channel="7"/>
  <label top="240" left="325" caption="Zoom:"/>
  <slider top="260" left="325" height="25" width="120" startvalue="0" endvalue="255" tickfreq="20" smallchange="10" largechange="20" name="zoom" channel="8"/>

  <label top="330" left="200" caption="Fokus:"/>
  <slider top="350" left="200" height="25" width="113" startvalue="0" endvalue="255" tickfreq="51" smallchange="50" largechange="100" channel="5"/>


  <command top="300" left="192" width="41" caption="Reset" clicksequence="save 21;set 21 138;hold 6100;restore 21"/>
  <command top="300" left="88" width="105" caption="Lampe abschalten" clicksequence="save 21;set 21 13;hold 6100;restore 21"/>
  <command top="300" left="0" width="89" caption="Lampe zünden" clicksequence="save 21;set 21 255;hold 6100;restore 21"/>
  
  
 </form>
 <code>
  <procedure name='INITCONTROLS'>
   !call|GetShutter$
   !call|GetColor$
   !call|GetColor2$
   !call|GetGobo$
   !call|GetGobo2$
   !call|GetPrism$
   !call|GetIris$
   !call|GetZoom$
  </procedure>
  
<procedure name='GetIris'>
!set_control|iris|{channel_7}$
</procedure>

<procedure name='GetZoom'>
!set_control|zoom|{channel_8}$
</procedure>

<procedure name='GetColor2'>
!if|{prism_mode} = 0|
$
</procedure>

<procedure name='SetColor2'>
!if|{prism_mode} = 0|
$
</procedure>

<procedure name='GetGobo2'>
!if|{prism_mode} = 0|
$
</procedure>

<procedure name='SetGobo2'>
!if|{prism_mode} = 0|
$
</procedure>

<procedure name='GetPrism'>
!if|({channel_16} &lt; 10)|
  !set_control|prism_mode|0$
  !set_control|prism_speed|0$
|
  !if({channel_16} &lt; 20)|
    !set_control|prism_mode|1$
    !set_control|prism_speed|0$
  |
    !if({channel_16} &lt; 136)|
      !set_control|prism_mode|-1$
      !set_control|prism_speed|({channel_16}-21)$
    |
      !if({channel_16} &lt; 139)|
        !set_control|prism_mode|0$
        !set_control|prism_speed|0$ 
      |
        !set_control|prism_mode|-2$
        !set_control|prism_speed|({channel_16}-139)$
      $
    $
  $
$
</procedure>
<procedure name='SetPrism'>
!if|{prism_mode} eq 0|
  !set_channel|16|0$
$
!if|{prism_mode} eq 1|
  !set_channel|16|12$
$
!if|{prism_mode} eq -1|
  !set_channel|16|(21+{prism_speed})$
$
!if|{prism_mode} eq -2|
  !set_channel|16|(140+{prism_speed})$
$
</procedure>
  
  
  <procedure name='GetShutter'>
!if|({channel_0} &lt; 50) or ({channel_0} &gt; 120)|
 !set_control|shutter_mode|{channel_0}$
 !set_control|shutter_speed|0$
|
 !if|({channel_0} &gt; 49) and ({channel_0} &lt; 73)|
  !set_control|shutter_mode|-1$
  !set_control|shutter_speed|(69-{channel_0})$
 $
 !if|({channel_0} &gt; 79) and ({channel_0} &lt; 100)|
  !set_control|shutter_mode|-2$
  !set_control|shutter_speed|(99-{channel_0})$
 $
 !if|({channel_0} &gt; 99) and ({channel_0} &lt; 120)|
  !set_control|shutter_mode|-3$
  !set_control|shutter_speed|(119-{channel_0})$
 $
$
  </procedure>
  <procedure name='SetShutter'>
!if|{shutter_mode}|gt|-1|
 !set_channel|0|{shutter_mode}$
|
 !if|{shutter_mode}|eq|-1|
  !set_channel|0|(69-{shutter_speed})$
 $
 !if|{shutter_mode}|eq|-2|
  !set_channel|0|(99-{shutter_speed})$
 $
 !if|{shutter_mode}|eq|-3|
  !set_channel|0|(119-{shutter_speed})$
 $
$
  </procedure>


  <procedure name='GetColor'>
!if|{channel_2} &lt; 208|
 !set_control|color_color|{channel_2}$
 !set_control|color_speed|0$
|
 !if|({channel_2} &gt; 207) and ({channel_2} &lt; 227)|
  !set_control|color_color|-1$
  !set_control|color_speed|(226-{channel_2})$
 $
 !if|({channel_2} &gt; 226) and ({channel_2} &lt; 246)|
  !set_control|color_color|-2$
  !set_control|color_speed|({channel_2}-227)$
 $
 !if|({channel_2} &gt; 245) and ({channel_2} &lt; 256)|
  !set_control|color_color|-3$
  !set_control|color_speed|((255-{channel_2}) * 2)$
 $
$
  </procedure>
  <procedure name='SetColor'>
!if|{color_color}|gt|-1|
 !set_channel|2|{color_color}$
|
 !if|{color_color}|eq|-1|
  !set_channel|2|(226-{color_speed})$
 $
 !if|{color_color}|eq|-2|
  !set_channel|2|(227+{color_speed})$
 $
 !if|{color_color}|eq|-3|
  !set_channel|2|(255-({color_speed} / 2))$
 $
$
  </procedure>


  <procedure name='GetGobo'>
!set_control|zoom|{channel_8}$
  </procedure>
  <procedure name='SetGobo'>
!set_control|zoom|{channel_8}$
  </procedure>
  
 </code>
</device>