<?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 5; set 7 0; set 8 0;set 9 0;set 10 0;set 11 0;">
  <information>
    <name>MH X-50</name>
    <author>Frantec</author>
    <vendor>Stairville</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="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="Pan/Tilt Speed" fade="yes" type="speed" />
    <function channel="5" minvalue="0" maxvalue="255" name="Color" fade="yes" type="Colour" />
    <function channel="6" minvalue="0" maxvalue="255" name="Shutter" fade="yes" type="strobe" />
    <function channel="7" minvalue="0" maxvalue="255" name="Dimmer" fade="yes" type="dimmer" />
    <function channel="8" minvalue="0" maxvalue="255" name="Gobo" fade="yes" type="gobo" />
    <function channel="9" minvalue="0" maxvalue="255" name="GoboRotation" fade="yes" type="gobo" />
    <function channel="10" minvalue="0" maxvalue="255" name="Funktion" fade="yes" type="kanal" />
    <function channel="11" minvalue="0" maxvalue="255" name="Auto Programme" fade="yes" type="aotu" />
    <function channel="12" minvalue="0" maxvalue="255" name="Prisma" fade="yes" type="prisma" />
    <function channel="13" minvalue="0" maxvalue="255" name="Focus" fade="Yes" type="fokus" />
  </channels>
  <form width="600" height="460">
    <deviceimage top="24" left="5" />
    <devicename top="16" left="40" />
    <deviceadress top="40" left="45" />
    <label top="275" left="225" caption="Split Color" />
    <slider top="75" left="205" height="35" width="177" startvalue="0" endvalue="255" channel="4" largechange="25" smallchange="1" tickfreq="10" name="Speed" />
    <label top="55" left="235" caption="Pan/Tilt Speed" />
    <dropdown top="312" left="25" width="160" channel="6">
      <item caption="Geschlossen" value="0" icon="Close.gif" />
      <item caption="Offen" value="5" icon="scan25-Open.gif" />
      <item caption="Strobe" value="8" icon="Flash.gif" />
      <item caption="Offen" value="218" />
    </dropdown>
    <slider top="355" left="15" height="35" width="177" startvalue="0" endvalue="255" name="Strobe-Fader" largechange="25" smallchange="1" tickfreq="10" channel="6" />
    <slider top="415" left="15" height="35" width="177" startvalue="0" endvalue="255" channel="7" tickfreq="10" largechange="25" smallchange="1" name="Dimmer" />
    <label top="395" left="35" caption="Dimmer" />
    <label top="288" left="35" caption="Shutter" />
    <slider top="295" left="205" height="35" width="177" startvalue="66" endvalue="127" name="Color" channel="5" largechange="25" smallchange="1" tickfreq="10" />
    <dropdown top="235" left="215" width="160" channel="5">
      <item caption="weiß" value="0" color="#ffffff" />
      <item caption="Yellow" value="10" color="#ffff80" />
      <item caption="Pink" value="16" color="#ff80ff" />
      <item caption="Green" value="24" color="#00d700" />
      <item caption="Peachblow" value="30" color="#d200d2" />
      <item caption="Blue" value="38" color="#00ffff" />
      <item caption="Kelly" value="45" color="#00ff40" />
      <item caption="Red" value="52" color="#ff0000" />
      <item caption="Dark Blue" value="60" color="#0000ff" />
    </dropdown>
    <label top="335" left="35" caption="Strobo" />
    <dropdown top="30" left="400" width="160" channel="8">
      <item caption="Offen" value="5" icon="Offen.GIF" />
      <item caption="Gobo 1" value="10" icon="barbelroxx.gif" />
      <item caption="Gobo 2" value="19" icon="gobo4.gif" />
      <item caption="Gobo 3" value="28" icon="PAT252Gobo15.gif" />
      <item caption="Gobo 4" value="36" icon="ts2 Gobo07 49-55.gif" />
      <item caption="Gobo 5" value="44" icon="Worms3.GIF" />
      <item caption="Gobo 6" value="51" icon="Web.GIF" />
      <item caption="Gobo 7" value="60" icon="inf multi dot.GIF" />
    </dropdown>
    <label top="215" left="235" caption="Color" />
    <label top="7" left="418" caption="Gobo" />
    <slider top="352" left="395" height="35" width="177" startvalue="232" endvalue="255" channel="9" largechange="25" smallchange="1" tickfreq="10" />
    <slider top="355" left="205" height="35" width="177" startvalue="128" endvalue="255" largechange="25" smallchange="1" tickfreq="10" channel="5" />
    <label top="328" left="416" caption="Gobo Bouncing" />
    <slider top="415" left="205" height="35" width="177" startvalue="0" endvalue="255" largechange="25" smallchange="1" tickfreq="10" channel="13" />
    <label top="335" left="225" caption="Rainbow " />
    <label top="395" left="225" caption="Focus" />
    <dropdown top="135" left="215" width="160" channel="11">
      <item caption="Aus" value="0" />
      <item caption="Auto 1" value="14" />
      <item caption="Auto 2" value="28" />
      <item caption="Auto 3" value="45" />
      <item caption="Auto 4" value="60" />
      <item caption="Auto 5" value="78" />
      <item caption="Auto 6" value="95" />
      <item caption="Auto 7" value="108" />
      <item caption="Auto 8" value="125" />
    </dropdown>
    <dropdown top="185" left="215" width="160" channel="11">
      <item caption="Aus" value="0" />
      <item caption="Sound 1" value="142" />
      <item caption="Sound 2" value="160" />
      <item caption="Sound 3" value="175" />
      <item caption="Sound 4" value="190" />
      <item caption="Sound 5" value="207" />
      <item caption="Sound 6" value="220" />
      <item caption="Sound 7" value="240" />
      <item caption="Sound 8" value="251" />
    </dropdown>
    <slider top="416" left="400" height="35" width="177" startvalue="0" endvalue="255" channel="12" largechange="25" smallchange="1" tickfreq="10" />
    <label top="384" left="424" caption="Prisma" />
    <slider top="295" left="395" height="35" width="177" startvalue="0" endvalue="231" channel="9" largechange="25" smallchange="1" tickfreq="10" />
    <label top="275" left="415" caption="Gobo Rotation " />
    <slider top="240" left="395" height="35" width="177" startvalue="0" endvalue="255" channel="10" largechange="25" smallchange="1" tickfreq="10" />
    <label top="220" left="415" caption="Kanal-Funktionen" />
    <label top="115" left="235" caption="Auto Programme" />
    <label top="165" left="235" caption="Sound Programme" />
    <slider top="185" left="395" height="35" width="177" startvalue="192" endvalue="255" channel="8" largechange="25" smallchange="1" tickfreq="10" />
    <label top="165" left="415" caption="Gobo Wechsel -" />
    <slider top="130" left="395" height="35" width="177" startvalue="128" endvalue="191" channel="8" largechange="25" smallchange="1" tickfreq="10" />
    <label top="110" left="415" caption="Gobo Wechsel +" />
    <slider top="75" left="395" height="35" width="177" startvalue="64" endvalue="119" channel="8" largechange="25" smallchange="1" tickfreq="10" />
    <label top="55" left="415" caption="Gobo Shake" />
    <position top="80" left="12" height="180" width="180" />
  </form>
  <code>
    <procedure name="SetStrobe">!if|{StrobeMode}=2|
  !set_channel|6|(1 + ({StrobeFader}/1))$
$
!if|{StrobeMode}=1|
 !set_channel|6|{StrobeFader}$
$
!if|{StrobeFader} = 1 and  {StrobeMode}=0|
   !set_control|StrobeMode|1$
   !set_channel|6|1$
$	
!if|{StrobeMode}=0|
   !set_control|StrobeFader|0$
   !set_channel|6|2$
$	</procedure>
    <procedure name="GetStrobe">!if|{channel_6} &lt; 8|
 !set_control|StrobeFader|0$
 !set_control|StrobeMode|0$
|
!if|{channel_6} &lt; 215|
 !set_control|StrobeFader|{channel_6}$
 !set_control|StrobeMode|1$
|
 !if|({channel_6} &lt;255) and ({channel_6} &gt; 214)|
  !set_control|StrobeMode|2$
  !set_control|StrobeFader|((({channel_3}-128)*1))$
 $
 $
$
  </procedure>
  </code>
</device>