<?xml version="1.0" encoding="ISO-8859-1"?>
<device image="Mh.gif" initsequence="set 0 128;set 1 128;set 2 0;set 3 0;set 4 0;set 5 0;set 6 0;set 7 0;set 8 0;set 9 0;set 10 0;set 11 0;set 12 0;set 13 128;set 14 128">
  <information>
    <name>PHS-260</name>
    <author>JR-Musik</author>
    <vendor>Futurelight</vendor>
  </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="PTSpeed" fade="no" type="ptspeed" />
    <function channel="3" minvalue="0" maxvalue="255" name="Color" fade="no" type="color" action="GetColor" />
    <function channel="4" minvalue="0" maxvalue="255" name="Gobo1" fade="no" type="gobo" action="GetGobo1" />
    <function channel="5" minvalue="0" maxvalue="255" name="Gobo2" fade="no" type="gobo" action="GetGobo2" />
    <function channel="6" minvalue="0" maxvalue="255" name="GoboRot" fade="yes" type="goborot" action="GetGoboRot" />
    <function channel="7" minvalue="0" maxvalue="255" name="Prisma" fade="no" type="prisma" action="GetPrisma" />
    <function channel="8" minvalue="0" maxvalue="255" name="Focus &amp; Zoom" fade="yes" type="focus" action="GetZoom" />
    <function channel="9" minvalue="0" maxvalue="255" name="Shutter" fade="no" type="shutter" action="GetShutter" />
    <function channel="10" minvalue="0" maxvalue="255" name="Dimmer" fade="yes" type="dimmer" />
    <function channel="11" minvalue="0" maxvalue="255" name="Frost" fade="yes" type="frost" action="GetFrost" />
    <function channel="12" minvalue="0" maxvalue="255" name="Control" fade="no" type="control" />
    <function channel="13" minvalue="0" maxvalue="255" name="Pan Fine" fade="yes" type="panfine" />
    <function channel="14" minvalue="0" maxvalue="255" name="Tilt Fine" fade="yes" type="tiltfine" />
  </channels>
  <form width="380" height="435">
    <deviceimage top="0" left="0" />
    <devicename top="0" left="40" />
    <deviceadress top="16" left="40" />
    <position top="36" left="0" height="180" width="180" />
    <line y1="8" x1="188" y2="430" x2="188" />
    <label top="216" left="4" caption="Shutter:" />
    <dropdown top="236" left="4" width="177" name="shutterdrop" action="SetShutter">
      <item caption="Geschlossen" value="0" />
      <item caption="Offen" value="34" />
      <item caption="Strobo" value="-1" />
      <item caption="Puls-Effekt" value="-2" />
      <item caption="Strobo Zufall" value="-3" />
      <item caption="Offen (ohne Dimmer)" value="255" />
    </dropdown>
    <label top="264" left="4" caption="Geschwindigkeit:" />
    <slider top="284" left="4" height="29" width="177" startvalue="0" endvalue="31" name="shutterslider" action="SetShutter" tickfreq="7" />
    <command top="376" left="8" width="80" height="22" caption="Lampe An" clicksequence="set 12 70;hold 5500;set 12 0" />
    <command top="376" left="96" width="80" height="22" caption="Lampe Aus" clicksequence="set 12 230;hold 5500;set 12 0" />
    <command top="408" left="52" width="80" height="22" caption="Reset" clicksequence="set 12 85;hold 5500;set 12 0" />
    <label top="6" left="196" caption="Farbe:" />
    <dropdown top="24" left="196" width="89" name="colordrop" action="SetColor">
      <item caption="Offen/Weiß" value="0" color="#ffffff" />
      <item caption="Rot" value="16" color="#ff0000" />
      <item caption="Blau" value="30" color="#0000ff" />
      <item caption="Grün" value="44" color="#00ff00" />
      <item caption="Gelb" value="58" color="#ffff00" />
      <item caption="Magenta" value="72" color="#ff59ff" />
      <item caption="Orange" value="86" color="#ff8000" />
      <item caption="UV Filter" value="100" color="#d700d7" />
      <item caption="Pink" value="114" color="#ff00ff" />
      <item caption="Rainbow CW" value="-1" />
      <item caption="Rainbow CCW" value="-2" />
    </dropdown>
    <slider top="24" left="284" height="29" width="93" startvalue="0" endvalue="63" name="colorslider" action="SetColor" tickfreq="13" />
    <label top="62" left="196" caption="Gobo 1:" />
    <dropdown top="80" left="196" width="89" name="gobo1drop" action="SetGobo1">
      <item caption="Offen" value="0" />
      <item caption="Gobo 1" value="16" />
      <item caption="Gobo 2" value="30" />
      <item caption="Gobo 3" value="44" />
      <item caption="Gobo 4" value="58" />
      <item caption="Gobo 5" value="72" />
      <item caption="Gobo 6" value="86" />
      <item caption="Gobo 7" value="100" />
      <item caption="Gobo 1 Shake" value="112" />
      <item caption="Gobo 2 Shake" value="128" />
      <item caption="Gobo 3 Shake" value="144" />
      <item caption="Gobo 4 Shake" value="160" />
      <item caption="Gobo 5 Shake" value="176" />
      <item caption="Gobo 6 Shake" value="192" />
      <item caption="Gobo 7 Shake" value="208" />
      <item caption="Gobo CW" value="-1" />
    </dropdown>
    <slider top="80" left="284" height="29" width="93" startvalue="0" endvalue="15" name="gobo1slider" action="SetGobo1" tickfreq="3" />
    <label top="104" left="196" caption="Gobo 2:" />
    <dropdown top="122" left="196" width="89" name="gobo2drop" action="SetGobo2">
      <item caption="Offen" value="0" />
      <item caption="Gobo 1" value="12" />
      <item caption="Gobo 2" value="22" />
      <item caption="Gobo 3" value="32" />
      <item caption="Gobo 4" value="42" />
      <item caption="Gobo 5" value="52" />
      <item caption="Gobo 6" value="62" />
      <item caption="Gobo 7" value="70" />
      <item caption="Gobo 1 Shake" value="80" />
      <item caption="Gobo 2 Shake" value="100" />
      <item caption="Gobo 3 Shake" value="120" />
      <item caption="Gobo 4 Shake" value="140" />
      <item caption="Gobo 5 Shake" value="160" />
      <item caption="Gobo 6 Shake" value="180" />
      <item caption="Gobo 7 Shake" value="200" />
      <item caption="Gobo CW" value="-1" />
    </dropdown>
    <slider top="122" left="284" height="29" width="93" startvalue="0" endvalue="19" name="gobo2slider" action="SetGobo2" tickfreq="4" />
    <label top="6" left="288" caption="Geschwindigkeit:" />
    <label top="62" left="288" caption="Geschwindigkeit:" />
    <label top="104" left="288" caption="Geschwindigkeit:" />
    <label top="144" left="196" caption="Gobo Rotation:" />
    <dropdown top="162" left="196" width="181" name="goborotdrop" action="SetGoboRot">
      <item caption="Index" value="0" />
      <item caption="Rotation CW" value="128" />
      <item caption="Rotation Stop" value="191" />
      <item caption="Rotation CCW" value="193" />
    </dropdown>
    <slider top="204" left="196" height="29" width="181" startvalue="0" endvalue="124" name="goborotslider" action="SetGoboRot" tickfreq="25" />
    <label top="186" left="196" caption="Index / Geschwindigkeit:" />
    <label top="240" left="196" caption="Prisma:" />
    <dropdown top="260" left="196" width="89" name="prismadrop" action="SetPrisma">
      <item caption="Offen" value="0" />
      <item caption="Prisma CW" value="-1" />
      <item caption="Prisma Stop" value="65" />
      <item caption="Prisma CCW" value="-2" />
      <item caption="Makro 1" value="130" />
      <item caption="Makro 2" value="138" />
      <item caption="Makro 3" value="146" />
      <item caption="Makro 4" value="154" />
      <item caption="Makro 5" value="162" />
      <item caption="Makro 6" value="170" />
      <item caption="Makro 7" value="178" />
      <item caption="Makro 8" value="186" />
      <item caption="Makro 9" value="194" />
      <item caption="Makro 10" value="202" />
      <item caption="Makro 11" value="210" />
      <item caption="Makro 12" value="218" />
      <item caption="Makro 13" value="226" />
      <item caption="Makro 14" value="234" />
      <item caption="Makro 15" value="242" />
      <item caption="Makro 16" value="250" />
    </dropdown>
    <slider top="260" left="284" height="29" width="93" startvalue="0" endvalue="59" name="prismaslider" action="SetPrisma" tickfreq="12" />
    <label top="240" left="288" caption="Geschwindigkeit:" />
    <dropdown top="304" left="196" width="89" name="zoomdrop" action="SetZoom">
      <item caption="Zoom 1" value="0" />
      <item caption="Zoom 2" value="86" />
      <item caption="Zoom 3" value="172" />
    </dropdown>
    <slider top="304" left="284" height="29" width="93" startvalue="0" endvalue="83" name="zoomslider" action="SetZoom" tickfreq="17" />
    <label top="286" left="196" caption="Zoom:" />
    <label top="288" left="288" caption="Focus:" />
    <dropdown top="352" left="196" width="89" name="frostdrop" action="SetFrost">
      <item caption="0-100%" value="0" />
      <item caption="Puls Öffnend" value="192" />
      <item caption="Puls Schließend" value="224" />
      <item caption="100% Frost" value="255" />
    </dropdown>
    <slider top="352" left="284" height="29" width="93" startvalue="0" endvalue="191" name="frostslider" action="SetFrost" tickfreq="39" />
    <label top="336" left="196" caption="Frost:" />
    <label top="336" left="290" caption="0-100%:" />
    <label top="312" left="4" caption="Dimmer:" />
    <slider top="332" left="4" height="29" width="177" startvalue="0" endvalue="255" channel="10" tickfreq="51" />
    <line y1="54" x1="196" y2="54" x2="374" />
    <line y1="234" x1="198" y2="234" x2="372" />
    <dropdown top="408" left="196" width="181" name="multi" channel="12">
      <item caption="Norm-Farbw./Pos-Su kürz Weg" value="0" />
      <item caption="iFarbw jed.Pos/Pos-Su kürz Weg" value="32" />
      <item caption="Internes Prog. 1" value="96" />
      <item caption="Internes Prog. 2" value="112" />
      <item caption="Internes Prog. 3" value="128" />
      <item caption="Internes Prog. 4" value="144" />
      <item caption="Internes Prog. 5" value="160" />
      <item caption="Internes Prog. 6" value="176" />
      <item caption="Internes Prog. 7" value="192" />
      <item caption="Internes Prog. 8" value="208" />
    </dropdown>
    <label top="389" left="196" caption="Multifunktion" />
  </form>
  <code>
    <procedure name="INITCONTROLS">
   !call|GetColor$
   !call|GetGobo1$
   !call|GetGobo2$
   !call|GetGoboRot$
   !call|GetPrisma$
   !call|GetZoom$
   !call|GetFrost$
   !call|GetShutter$</procedure>
    <procedure name="SetColor">
!if|{colordrop}|gt|-1|
 !set_channel|3|{colordrop}$
|
 !if|{colordrop}|eq|-1|
  !set_channel|3|(191 - {colorslider})$
 $
 !if|{colordrop}|eq|-2|
  !set_channel|3|({colorslider} + 192)$
 $
$
    </procedure>
    <procedure name="GetColor">
!if|({channel_3} &lt; 128)|
 !set_control|colordrop|{channel_3}$
|
!if|({channel_3} &gt; 127) and ({channel_3} &lt; 192)|
  !set_control|colordrop|-1$
  !set_control|colorslider|(191 - {channel_3})$
 $
!if|({channel_3} &gt; 191)|
  !set_control|colordrop|-2$
  !set_control|colorslider|({channel_3} - 192)$
 $
$
    </procedure>
    <procedure name="SetGobo1">!if|({gobo1drop} &lt; 112) and ({gobo1drop} &gt; -1)|
 !set_channel|4|{gobo1drop}$
|
!if|({gobo1drop} &gt; 111)|
 !set_channel|4|({gobo1drop} + {gobo1slider})$
 $
!if|({gobo1drop} &lt; 0)|
 !set_channel|4|(({gobo1slider} * 2) + 224)$
 $
$</procedure>
    <procedure name="GetGobo1"> !if|({channel_4} &lt; 112)|
 !set_control|gobo1drop|{channel_4}$
|
!if|({channel_4} &gt; 111) and ({channel_4} &lt; 224)|
  !set_control|gobo1slider|({channel_4} mod 16)$
  !set_control|gobo1drop|({channel_4} - ({channel_4} mod 16))$
 $
!if|({channel_4} &gt; 223)|
  !set_control|gobo1drop|-1$
  !set_control|gobo1slider|(({channel_4} - 224) / 2)$
 $
$</procedure>
    <procedure name="SetGobo2">!if|({gobo2drop} &lt; 70) and ({gobo2drop} &gt; -1)|
 !set_channel|5|{gobo2drop}$
|
!if|({gobo2drop} &gt; 69)|
 !set_channel|5|({gobo2drop} + {gobo2slider})$
 $
!if|({gobo2drop} &lt; 0)|
 !set_channel|5|(({gobo2slider} * 3) + 190)$
 $
$</procedure>
    <procedure name="GetGobo2"> !if|({channel_5} &lt; 70)|
 !set_control|gobo2drop|{channel_5}$
|
!if|({channel_5} &gt; 69) and ({channel_5} &lt; 190)|
  !set_control|gobo2slider|(({channel_5} - 10) mod 20)$
  !set_control|gobo2drop|({channel_5} - (({channel_5} - 10) mod 20))$
 $
!if|({channel_5} &gt; 189)|
  !set_control|gobo2drop|-1$
  !set_control|gobo2slider|(({channel_5} - 190) / 3)$
 $
$</procedure>
    <procedure name="SetGoboRot">!if|({goborotdrop} = 0)|
 !set_channel|6|{goborotslider}$
|
!if|({goborotdrop} = 191)|
 !set_channel|6|191$
 $
!if|({goborotdrop} = 128)|
 !set_channel|6|(190 -  ({goborotslider} / 2))$
 $
!if|({goborotdrop} = 193)|
 !set_channel|6|(({goborotslider} / 2) + 193)$
 $
$</procedure>
    <procedure name="GetGoboRot"> !if|({channel_6} &lt; 128)|
 !set_control|goborotdrop|0$
 !set_control|goborotslider|{channel_6}$
|
!if|({channel_6} &gt; 127) and ({channel_6} &lt; 191)|
  !set_control|goborotslider|((190 - {channel_6}) * 2)$
  !set_control|goborotdrop|128$
 $
!if|({channel_6} &gt; 190) and ({channel_6} &lt; 193)|
  !set_control|goborotdrop|191$
 $
!if|({channel_6} &gt; 192)|
  !set_control|goborotslider|(({channel_6} - 193) * 2)$
  !set_control|goborotdrop|193$
 $
$</procedure>
    <procedure name="SetPrisma">!if|{prismadrop}|gt|-1|
 !set_channel|7|{prismadrop}$
|
 !if|{prismadrop}|eq|-1|
  !set_channel|7|(63 - {prismaslider})$
 $
 !if|{prismadrop}|eq|-2|
  !set_channel|7|({prismaslider} + 68)$
 $
$</procedure>
    <procedure name="GetPrisma">!if|({channel_7} &lt; 4) or ({channel_7} &gt; 127)|
 !set_control|prismadrop|{channel_7}$
|
!if|({channel_7} &gt; 63) and ({channel_7} &lt; 68)|
  !set_control|prismadrop|65$
 $
!if|({channel_7} &gt; 3) and ({channel_7} &lt; 64)|
  !set_control|prismadrop|-1$
  !set_control|prismaslider|(63 - {channel_7})$
 $
!if|({channel_7} &gt; 67) and ({channel_7} &lt; 128)|
  !set_control|prismadrop|-2$
  !set_control|prismaslider|({channel_7} - 68)$
 $
$</procedure>
    <procedure name="SetZoom"> !set_channel|8|({zoomdrop} + {zoomslider})$</procedure>
    <procedure name="GetZoom">  !set_control|zoomslider|({channel_8} mod 86)$
  !set_control|zoomdrop|({channel_8} - ({channel_8} mod 86))
$</procedure>
    <procedure name="SetFrost">!if|{frostdrop}|eq|0|
 !set_channel|11|{frostslider}$
|
 !if|{frostdrop}|eq|192|
  !set_channel|11|(223 - (({frostslider} - ({frostslider} mod 31)) / 6))$
 $
 !if|{frostdrop}|eq|224|
  !set_channel|11|((({frostslider} - ({frostslider} mod 31)) / 6) + 224)$
 $
$</procedure>
    <procedure name="GetFrost">!if|({channel_11} &lt; 192)|
 !set_control|frostdrop|0$
 !set_control|frostslider|{channel_11}$
|
!if|({channel_11} &gt; 191) and ({channel_11} &lt; 224)|
  !set_control|frostdrop|192$
  !set_control|frostslider|((223 - {channel_11}) * 6)$
 $
!if|({channel_11} &gt; 223)|
  !set_control|frostdrop|224$
  !set_control|frostslider|(({channel_11} - 224) * 6)$
 $
$</procedure>
    <procedure name="SetShutter">!if|{shutterdrop}|gt|-1|
 !set_channel|9|{shutterdrop}$
|
 !if|{shutterdrop}|eq|-1|
  !set_channel|9|({shutterslider} + 64)$
 $
 !if|{shutterdrop}|eq|-2|
  !set_channel|9|({shutterslider} + 128)$
 $
 !if|{shutterdrop}|eq|-3|
  !set_channel|9|({shutterslider} + 192)$
 $
$</procedure>
    <procedure name="GetShutter">!if|({channel_9} &lt; 64) or ({channel_9} &gt; 223)|
 !set_control|shutterdrop|{channel_9}$
|
!if|({channel_9} &gt; 63) and ({channel_9} &lt; 96)|
  !set_control|shutterdrop|-1$
  !set_control|shutterslider|({channel_9} - 64)$
 $
!if|({channel_9} &gt; 127) and ({channel_9} &lt; 160)|
  !set_control|shutterdrop|-2$
  !set_control|shutterslider|({channel_9} - 128)$
 $
!if|({channel_9} &gt; 191) and ({channel_9} &lt; 224)|
  !set_control|shutterdrop|-3$
  !set_control|shutterslider|({channel_9} - 192)$
 $
$</procedure>
  </code>
</device>