<?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 127;set 5 0;set 6 4;set 7 0;set 8 0;set 9 0;set 10 0;set 11 0;">
  <information>
    <name>MH X-25</name>
    <author>C.Vogt</author>
    <vendor>Stairville</vendor>
  <version>1</version></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="Pan fine" fade="yes" type="panfine"/>
    <function channel="3" minvalue="0" maxvalue="255" name="Tilt fine" fade="yes" type="tiltfine"/>
    <function channel="4" minvalue="0" maxvalue="255" name="Moving Speed" fade="yes" type="dimmer"/>
    <function channel="5" minvalue="0" maxvalue="255" name="Color Wheel" fade="no" type="dimmer" action="SetColor"/>
    <function channel="6" minvalue="0" maxvalue="255" name="Shutter" fade="no" type="dimmer" action="SetStrobe"/>
    <function channel="7" minvalue="0" maxvalue="255" name="Dimmer" fade="yes" type="dimmer"/>
    <function channel="8" minvalue="0" maxvalue="255" name="Gobo" fade="no" type="gobo" action="SetGobo"/>
    <function channel="9" minvalue="0" maxvalue="255" name="GoboRotation" fade="no" type="dimmer" action="SetGoboRotation"/>
    <function channel="10" minvalue="0" maxvalue="255" name="Functions" fade="no" type="dimmer"/>
    <function channel="11" minvalue="0" maxvalue="255" name="Programs" fade="no" type="dimmer"/>
  </channels>
  <form width="564" height="403">
    <deviceimage top="8" left="5"/>
    <devicename top="8" left="45"/>
    <deviceadress top="24" left="45"/>
    <slider top="248" left="0" height="35" width="177" startvalue="0" endvalue="255" channel="4" largechange="10" smallchange="1" name="Speed"/>
    <label top="232" left="8" caption="Moving Speed"/>
    <dropdown top="104" left="200" width="160" channel="6" name="DropShutter" action="SetStrobe">
      <item caption="Closed" value="0" icon="Close.gif"/>
      <item caption="Open" value="4" icon="scan25-Open.gif"/>
      <item caption="Strobe" value="8" icon="Flash.gif"/>
    </dropdown>
    <slider top="360" left="8" height="43" width="177" startvalue="0" endvalue="255" channel="7" largechange="10" smallchange="1" name="Dimmer"/>
    <label top="344" left="8" caption="Master Brightness"/>
    <label top="88" left="200" caption="Shutter"/>
    <dropdown top="56" left="200" width="160" name="DropColor" action="SetColor" channel="5">
      <item caption="White" value="0" color="#ffffff"/>
      <item caption="Yellow" value="7" color="#ffff80"/>
      <item caption="Pink" value="12" color="#ff80ff"/>
      <item caption="Green" value="17" color="#00d700"/>
      <item caption="Peachblow" value="22" color="#d200d2"/>
      <item caption="Blue" value="27" color="#00ffff"/>
      <item caption="Kelly" value="32" color="#00ff40"/>
      <item caption="Red" value="37" color="#ff0000"/>
      <item caption="Dark Blue" value="42" color="#0000ff"/>
      <item caption="White/Yellow" value="50" icon="white-yellow.GIF"/>
      <item caption="Yellow/Pink" value="60" icon="yellow-pink.GIF"/>
      <item caption="Pink/Green" value="70" icon="pink-cyan.GIF"/>
      <item caption="Green/Peachblow" value="80" icon="mix2.gif"/>
      <item caption="Peachblow/Blue" value="90"/>
      <item caption="Blue/Kelly" value="100"/>
      <item caption="Kelly/Red" value="105"/>
      <item caption="Red/Dark Blue" value="115"/>
      <item caption="Dark Blue/White" value="125"/>
      <item caption="Rainbow+" value="128"/>
      <item caption="Rainbow-" value="192"/>
    </dropdown>
    <label top="88" left="376" caption="Strobe Speed"/>
    <dropdown top="152" left="200" width="160" channel="8" name="DropGobo" action="SetGobo">
      <item caption="No Gobo" value="0" icon="Offen.GIF"/>
      <item caption="Gobo 1" value="8" icon="stairville_sc_x50_gobo1.gif"/>
      <item caption="Gobo 2" value="16" icon="stairville_sc_x50_gobo2.gif"/>
      <item caption="Gobo 3" value="24" icon="stairville_sc_x50_gobo3.gif"/>
      <item caption="Gobo 4" value="32" icon="stairville_sc_x50_gobo4.gif"/>
      <item caption="Gobo 5" value="40" icon="stairville_sc_x50_gobo5.gif"/>
      <item caption="Gobo 6" value="48" icon="stairville_sc_x50_gobo6.gif"/>
      <item caption="Gobo 7" value="56" icon="stairville_sc_x50_gobo7.gif"/>
      <item caption="Shake 1" value="112" icon="stairville_sc_x50_gobo1.gif"/>
      <item caption="Shake 2" value="104" icon="stairville_sc_x50_gobo2.gif"/>
      <item caption="Shake 3" value="96" icon="stairville_sc_x50_gobo3.gif"/>
      <item caption="Shake 4" value="88" icon="stairville_sc_x50_gobo4.gif"/>
      <item caption="Shake 5" value="80" icon="stairville_sc_x50_gobo5.gif"/>
      <item caption="Shake 6" value="72" icon="stairville_sc_x50_gobo6.gif"/>
      <item caption="Shake 7" value="64" icon="stairville_sc_x50_gobo7.gif"/>
      <item caption="GoboRainbow +" value="128" icon="UZS.gif"/>
      <item caption="GoboRainbow -" value="192" icon="GUZ.gif"/>
    </dropdown>
    <label top="40" left="200" caption="Color"/>
    <label top="136" left="200" caption="Gobo"/>
    <dropdown top="248" left="200" width="160" channel="11" name="DropPrograms">
      <item caption="Off" value="0"/>
      <item caption="Prog 1" value="8"/>
      <item caption="Prog 2" value="24"/>
      <item caption="Prog 3" value="40"/>
      <item caption="Prog 4" value="56"/>
      <item caption="Prog 5" value="72"/>
      <item caption="Prog 6" value="88"/>
      <item caption="Prog 7" value="104"/>
      <item caption="Prog 8" value="120"/>
      <item caption="Sound 1" value="136"/>
      <item caption="Sound 2" value="152"/>
      <item caption="Sound 3" value="168"/>
      <item caption="Sound 4" value="184"/>
      <item caption="Sound 5" value="200"/>
      <item caption="Sound 6" value="216"/>
      <item caption="Sound 7" value="232"/>
      <item caption="Sound 8" value="248"/>
    </dropdown>
    <label top="184" left="200" caption="Gobo Rotation"/>
    <label top="232" left="200" caption="Built-in Programs"/>
    <position top="48" left="4" height="180" width="180"/>
    <dropdown top="200" left="200" width="161" name="DropRotation" channel="9" action="SetGoboRotation">
      <item caption="Fixed" value="0"/>
      <item caption="Rotation +" value="64"/>
      <item caption="Rotation -" value="148"/>
      <item caption="Bouncing" value="232"/>
    </dropdown>
    <command top="296" left="432" width="80" height="30" caption="Reset Hardware" color="#ff8080" clicksequence="save 10;set 10 152;hold 5500;restore 10"/>
    <command top="360" left="432" width="80" height="30" caption="Reset Values" color="#80ff80" clicksequence="set 0 128;set 1 128;set 2 0;set 3 0;set 4 127;set 5 0;set 6 4;set 7 0;set 8 0;set 9 0;set 10 0;set 11 0;"/>
    <label top="285" left="8" caption="BlackOut Options"/>
    <onoff top="304" left="16" width="80" height="22" onvalue="8" offvalue="16" caption="Pan/Tilt" name="BO_PanTilt" channel="10"/>
    <onoff top="304" left="104" width="80" height="22" onvalue="24" offvalue="32" caption="Colorwheel" name="BO_ColorWheel" channel="10"/>
    <onoff top="304" left="192" width="80" height="22" onvalue="40" offvalue="48" caption="Gobowheel" name="BO_Gobowheel" channel="10"/>
    <onoff top="304" left="280" width="80" height="22" onvalue="88" offvalue="0" caption="All" name="BO_All" channel="10"/>
    <slider top="104" left="368" height="33" width="177" startvalue="0" endvalue="207" name="SliderStrobeSpeed" largechange="10" smallchange="1" action="SetStrobe"/>
    <label top="40" left="376" caption="Rainbow Speed (Color and Gobo)"/>
    <slider top="56" left="368" height="33" width="177" startvalue="0" endvalue="63" name="SliderRainbowSpeed" largechange="5" smallchange="1" action="SetColorAndGobo"/>
    <label top="136" left="376" caption="Shake Speed"/>
    <slider top="152" left="368" height="33" width="177" startvalue="0" endvalue="7" name="SliderShakeSpeed" largechange="2" smallchange="1" action="SetGobo" tickfreq="1"/>
    <label top="184" left="376" caption="Gobo Rotation Speed"/>
    <slider top="200" left="368" height="33" width="177" startvalue="0" endvalue="83" name="SliderRotationSpeed" largechange="5" smallchange="1" action="SetGoboRotation"/>
  </form>
  <code>
    <procedure name="SetColor">
!if|{DropColor}|lt|128|
 !set_channel|5|{DropColor}$
|
 !if|{DropColor}|eq|128|
  !set_channel|5|(128+{SliderRainbowSpeed})$
 $
 !if|{DropColor}|eq|192|
  !set_channel|5|(192+{SliderRainbowSpeed})$
 $
$
    </procedure>
    <procedure name="SetGobo">
!if|{DropGobo}|lt|64|
 !set_channel|8|{DropGobo}$
|
 !if|({DropGobo} &gt; 63) and ({DropGobo} &lt; 120)|
  !set_channel|8|({DropGobo}+{SliderShakeSpeed})$
 $
 !if|{DropGobo}|gt|127|
  !set_channel|8|({DropGobo}+{SliderRainbowSpeed})$
 $
$</procedure>
    <procedure name="SetGoboRotation">
!if|({DropRotation} &lt; 64) or ({DropRotation} &gt; 231)|
 !set_channel|9|{DropRotation}$
|
 !if|{DropRotation}|eq|64|
  !set_channel|9|(64+{SliderRotationSpeed})$
 $
 !if|{DropRotation}|eq|148|
  !set_channel|9|(148+{SliderRotationSpeed})$
 $
$</procedure>
    <procedure name="SetStrobe">
!if|{DropShutter}|lt|8|
 !set_channel|6|{DropShutter}$
|
 !if|{DropShutter}|eq|8|
  !set_channel|6|(8+{SliderStrobeSpeed})$
 $
 !if|{DropShutter}|gt|215|
  !set_channel|6|{DropShutter}$
 $
$
</procedure>
    <procedure name="SetColorAndGobo">
!if|{DropColor}|lt|128|
 !set_channel|5|{DropColor}$
$
 !if|{DropColor}|eq|128|
  !set_channel|5|(128+{SliderRainbowSpeed})$
 $
 !if|{DropColor}|eq|192|
  !set_channel|5|(192+{SliderRainbowSpeed})$
 $
 !if|{DropGobo}|lt|64|
 !set_channel|8|{DropGobo}$
 $
 !if|({DropGobo} &gt; 63) and ({DropGobo} &lt; 120)|
  !set_channel|8|({DropGobo}+{SliderShakeSpeed})$
 §
 !if|{DropGobo}|gt|127|
  !set_channel|8|({DropGobo}+{SliderRainbowSpeed})$
$
$</procedure>
    <procedure name="INITCONTROLS">
   !set_control|SliderRainbowSpeed|31$
   !set_control|SliderStrobeSpeed|103$
   !set_control|SliderShakeSpeed|3$
   !set_control|SliderRotationSpeed|41$
   !set_control|DropShutter|4$

</procedure>
  </code>
</device>
