﻿<?xml version="1.0"?>
<device image="Ch-4play.gif" initsequence="set 0 128;set 4 128;set 5 128;set 6 128; set 7 128; set 33 255; set 34 255; set 35 255; set 36 255;">
	<information>
		<name>Center-4/RGBW</name>
		<author>MMK</author>
		<vendor>IMG Stage Line</vendor>
		<comment>33ch</comment>
		<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="panfine" fade="yes" type="panfine" />
		<function channel="2" minvalue="0" maxvalue="255" name="panspeed" fade="yes" />
		<function channel="3" minvalue="0" maxvalue="255" name="rotation" fade="yes" />
		<function channel="4" minvalue="0" maxvalue="255" name="tilt1" fade="yes" />
		<function channel="5" minvalue="0" maxvalue="255" name="tilt2" fade="yes" />
		<function channel="6" minvalue="0" maxvalue="255" name="tilt3" fade="yes" />
		<function channel="7" minvalue="0" maxvalue="255" name="tilt4" fade="yes" />
		<function channel="8" minvalue="0" maxvalue="255" name="Auto Tilt" fade="no" />
		<function channel="9" minvalue="0" maxvalue="255" name="Auto Tilt Speed" fade="yes" />
		<function channel="10" minvalue="0" maxvalue="255" name="red1" fade="yes" type="r" />
		<function channel="11" minvalue="0" maxvalue="255" name="green1" fade="yes" type="g" />
		<function channel="12" minvalue="0" maxvalue="255" name="blue1" fade="yes" type="b" />
		<function channel="13" minvalue="0" maxvalue="255" name="white1" fade="yes" type="w" />
		<function channel="14" minvalue="0" maxvalue="255" name="red2" fade="yes" type="r" />
		<function channel="15" minvalue="0" maxvalue="255" name="green2" fade="yes" type="g" />
		<function channel="16" minvalue="0" maxvalue="255" name="blue2" fade="yes" type="b" />
		<function channel="17" minvalue="0" maxvalue="255" name="white2" fade="yes" type="w" />
		<function channel="18" minvalue="0" maxvalue="255" name="red3" fade="yes" type="r" />
		<function channel="19" minvalue="0" maxvalue="255" name="green3" fade="yes" type="g" />
		<function channel="20" minvalue="0" maxvalue="255" name="blue3" fade="yes" type="b" />
		<function channel="21" minvalue="0" maxvalue="255" name="white3" fade="yes" type="w" />
		<function channel="22" minvalue="0" maxvalue="255" name="red4" fade="yes" type="r" />
		<function channel="23" minvalue="0" maxvalue="255" name="green4" fade="yes" type="g" />
		<function channel="24" minvalue="0" maxvalue="255" name="blue4" fade="yes" type="b" />
		<function channel="25" minvalue="0" maxvalue="255" name="white4" fade="yes" type="w" />
		<function channel="26" minvalue="0" maxvalue="255" name="Auto Color" fade="yes" />
		<function channel="27" minvalue="0" maxvalue="255" name="Head Selection" fade="yes" />
		<function channel="28" minvalue="0" maxvalue="255" name="Auto Head Selection" fade="no" />
		<function channel="29" minvalue="0" maxvalue="255" name="Selection Speed" fade="yes" />
		<function channel="30" minvalue="0" maxvalue="255" name="Dimmer" fade="yes" type ="dimmer"/>
		<function channel="31" minvalue="0" maxvalue="255" name="Shutter" fade="yes" />
		<function channel="32" minvalue="0" maxvalue="255" name="Settings" fade="no" />
		<virtual channel="33" minvalue="0" maxvalue="255" name="Dimmer 1" fade="yes" type ="dimmer">
			<channel channel="10" />
			<channel channel="11" />
			<channel channel="12" />
			<channel channel="13" />
		</virtual>
		<virtual channel="34" minvalue="0" maxvalue="255" name="Dimmer 2" fade="yes" type ="dimmer">
			<channel channel="14" />
			<channel channel="15" />
			<channel channel="16" />
			<channel channel="17" />
		</virtual>
		<virtual channel="35" minvalue="0" maxvalue="255" name="Dimmer 3" fade="yes" type ="dimmer">
			<channel channel="18" />
			<channel channel="19" />
			<channel channel="20" />
			<channel channel="21" />
		</virtual>
		<virtual channel="36" minvalue="0" maxvalue="255" name="Dimmer 4" fade="yes" type ="dimmer">
			<channel channel="22" />
			<channel channel="23" />
			<channel channel="24" />
			<channel channel="25" />
		</virtual>
		<function channel="37" minvalue="0" maxvalue="255" name="tiltfake" fade="yes" type="tilt" />
		<function channel="38" minvalue="0" maxvalue="255" name="tiltfake2" fade="yes" type="tiltfine" />
	</channels>
	<form width="850" height="550">
		<deviceimage top="0" left="0" />
		<devicename top="0" left="40" />
		<deviceadress top="16" left="40" />
		<position top="40" left="4" height="44" width="220" />
		<slider top="240" left="40" height="33" width="177" startvalue="0" endvalue="255" channel="4" />
		<slider top="272" left="40" height="33" width="177" startvalue="0" endvalue="255" channel="5" />
		<slider top="304" left="40" height="33" width="177" startvalue="0" endvalue="255" channel="6" />
		<slider top="336" left="40" height="33" width="177" startvalue="0" endvalue="255" channel="7" />
		<label top="240" left="8" caption="Tilt 1" />
		<label top="272" left="8" caption="Tilt 2" />
		<label top="304" left="8" caption="Tilt 3" />
		<label top="336" left="8" caption="Tilt 4" />
		<slider top="96" left="8" height="41" width="137" startvalue="0" endvalue="255" channel="2" />
		<label top="136" left="16" caption="fast    P/T Speed     slow" />
		<dropdown top="168" left="16" width="193" name="rotationdrop" action="setrotation">
			<item caption="no Rotation" value="0" minvalue="0" maxvalue="0" />
			<item caption="Rotation CCW" value="-1" />
			<item caption="Rotation CW" value="-2" />
		</dropdown>
		<slider top="198" left="56" height="33" width="153" startvalue="0" endvalue="126" name="rotationslider" action="setrotation" />
		<label top="200" left="16" caption="Speed" />
		<dropdown top="392" left="8" width="209" channel="8">
			<item caption="no Auto" value="0" minvalue="0" maxvalue="47" />
			<item caption="Welle 0°-90°" value="53" minvalue="48" maxvalue="55" />
			<item caption="Welle 0°-180°" value="60" minvalue="56" maxvalue="63" />
			<item caption="Welle 0°-45°" value="68" minvalue="64" maxvalue="71" />
			<item caption="Welle 45°-135°" value="76" minvalue="72" maxvalue="79" />
			<item caption="Welle 135°-180°" value="85" minvalue="80" maxvalue="87" />
			<item caption="Welle 90°-180°" value="92" minvalue="88" maxvalue="95" />
			<item caption="0°-90° synchron" value="100" minvalue="96" maxvalue="103" />
			<item caption="0°-180° synchron" value="107" minvalue="104" maxvalue="111" />
			<item caption="0°-45° synchron" value="115" minvalue="112" maxvalue="119" />
			<item caption="45°-135° synchron" value="124" minvalue="120" maxvalue="127" />
			<item caption="135°-180° synchron" value="132" minvalue="128" maxvalue="135" />
			<item caption="90°-180° synchron" value="139" minvalue="136" maxvalue="143" />
			<item caption="0°-90° asynchron" value="147" minvalue="144" maxvalue="151" />
			<item caption="0°-180° asynchron" value="155" minvalue="152" maxvalue="159" />
			<item caption="0°-45° asynchron" value="164" minvalue="160" maxvalue="167" />
			<item caption="45°-135° asynchron" value="172" minvalue="168" maxvalue="175" />
			<item caption="135°-180° asynchron" value="180" minvalue="176" maxvalue="183" />
			<item caption="90°-180° asynchron" value="188" minvalue="184" maxvalue="191" />
			<item caption="0°-90° alternierend" value="196" minvalue="192" maxvalue="199" />
			<item caption="0°-180° alternierend" value="204" minvalue="200" maxvalue="207" />
			<item caption="0°-45° alternierend" value="212" minvalue="208" maxvalue="215" />
			<item caption="45°-135° alternierend" value="220" minvalue="216" maxvalue="223" />
			<item caption="135°-180° alternierend" value="228" minvalue="224" maxvalue="231" />
			<item caption="90°-180° alternierend" value="236" minvalue="232" maxvalue="239" />
			<item caption="Alle Auto" value="244" minvalue="240" maxvalue="247" />
			<item caption="Sound Control" value="252" minvalue="248" maxvalue="255" />
		</dropdown>
		<label top="368" left="8" caption="Tilt Auto" />
		<label top="432" left="8" caption="Speed" />
		<slider top="424" left="56" height="33" width="153" startvalue="255" endvalue="0" channel="9" />
		<colorpicker top="40" left="256" height="100" width="150" mode="rgb" layout="2" channel1="10" channel2="11" channel3="12" />
		<slider top="144" left="256" height="33" width="153" startvalue="0" endvalue="255" channel="13" />
		<label top="176" left="248" caption="White" />
		<label top="16" left="496" caption="Head 2" />
		<label top="16" left="296" caption="Head 1" />
		<colorpicker top="40" left="456" height="100" width="150" mode="rgb" layout="2" channel1="14" channel2="15" channel3="16" />
		<slider top="144" left="456" height="33" width="153" startvalue="0" endvalue="255" channel="13" />
		<label top="176" left="456" caption="White" />
		<label top="248" left="504" caption="Head 4" />
		<colorpicker top="272" left="264" height="100" width="150" mode="rgb" layout="2" channel1="18" channel2="19" channel3="20" />
		<slider top="376" left="264" height="33" width="153" startvalue="0" endvalue="255" channel="21" />
		<label top="408" left="464" caption="White" />
		<label top="248" left="314" caption="Head 3" />
		<colorpicker top="272" left="456" height="100" width="150" mode="rgb" layout="2" channel1="22" channel2="23" channel3="24" />
		<slider top="376" left="456" height="33" width="153" startvalue="0" endvalue="255" channel="25" />
		<label top="408" left="264" caption="White" />
		<slider top="192" left="264" height="33" width="145" startvalue="0" endvalue="255" channel="33" />
		<label top="224" left="248" caption="Dimmer" />
		<slider top="192" left="464" height="33" width="145" startvalue="0" endvalue="255" channel="34" />
		<label top="224" left="456" caption="Dimmer" />
		<slider top="432" left="272" height="33" width="145" startvalue="0" endvalue="255" channel="35" />
		<label top="464" left="256" caption="Dimmer" />
		<slider top="432" left="464" height="33" width="145" startvalue="0" endvalue="255" channel="36" />
		<label top="464" left="464" caption="Dimmer" />
		<slider top="488" left="328" height="41" width="233" startvalue="0" endvalue="255" channel="30" />
		<label top="496" left="248" caption="Master Dimmer" />
		<dropdown top="280" left="640" width="177" action="setshutter" name="shutterdrop">
			<item caption="Shutter off" value="0" minvalue="0" maxvalue="19" />
			<item caption="Shutter on" value="22" minvalue="20" maxvalue="24" />
			<item caption="Strobe" value="-1" />
		</dropdown>
		<label top="256" left="624" caption="Shutter" />
		<dropdown top="40" left="632" width="177" action="setfixcolor" name="colordrop">
			<item caption="Color mixing" value="0" minvalue="0" maxvalue="7" />
			<item caption="Rot" value="10" minvalue="8" maxvalue="15" />
			<item caption="Grün" value="18" minvalue="16" maxvalue="23" />
			<item caption="Blau" value="26" minvalue="24" maxvalue="31" />
			<item caption="Weiß" value="34" minvalue="32" maxvalue="39" />
			<item caption="Rot/Grün" value="42" minvalue="40" maxvalue="47" />
			<item caption="Rot/Blau" value="50" minvalue="48" maxvalue="55" />
			<item caption="Rot/Weiß" value="58" minvalue="56" maxvalue="63" />
			<item caption="Grün/Blau" value="66" minvalue="64" maxvalue="71" />
			<item caption="Grün/Weiß" value="74" minvalue="72" maxvalue="79" />
			<item caption="Blau/Weiß" value="82" minvalue="80" maxvalue="87" />
			<item caption="Rot/Grün/Blau" value="90" minvalue="88" maxvalue="95" />
			<item caption="Rot/Grün/Weiß" value="98" minvalue="96" maxvalue="103" />
			<item caption="Rot/Blau/Weiß" value="106" minvalue="104" maxvalue="111" />
			<item caption="Blau/Grün/Weiß" value="114" minvalue="112" maxvalue="119" />
			<item caption="Rot/Grün(Blau/weiß" value="122" minvalue="120" maxvalue="127" />
			<item caption="no function" value="130" minvalue="128" maxvalue="179" />
			<item caption="Color fade CW" value="-1" minvalue="180" maxvalue="201" />
			<item caption="stop" value="204" minvalue="202" maxvalue="207" />
			<item caption="Color fade CCW" value="-2" minvalue="208" maxvalue="229" />
			<item caption="Color cut" value="-3" minvalue="235" maxvalue="249" />
			<item caption="Music Color" value="253" minvalue="250" maxvalue="255" />
		</dropdown>
		<slider top="72" left="672" height="33" width="145" startvalue="21" endvalue="0" name="colorslider" action="setfixcolor" />
		<dropdown top="128" left="632" width="177" channel="27">
			<item caption="all on" value="0" minvalue="0" maxvalue="7" />
			<item caption="oOOO" value="12" minvalue="8" maxvalue="15" />
			<item caption="ooOO" value="20" minvalue="16" maxvalue="23" />
			<item caption="oooO" value="28" minvalue="24" maxvalue="31" />
			<item caption="oooo" value="36" minvalue="32" maxvalue="39" />
			<item caption="Oooo" value="44" minvalue="40" maxvalue="47" />
			<item caption="OOoo" value="52" minvalue="48" maxvalue="55" />
			<item caption="OOOo" value="60" minvalue="56" maxvalue="63" />
			<item caption="OOOO" value="68" minvalue="64" maxvalue="71" />
			<item caption="oooo" value="76" minvalue="72" maxvalue="79" />
			<item caption="Oooo" value="84" minvalue="80" maxvalue="87" />
			<item caption="oOoo" value="92" minvalue="88" maxvalue="95" />
			<item caption="ooOo" value="100" minvalue="96" maxvalue="103" />
			<item caption="oooO" value="108" minvalue="104" maxvalue="111" />
			<item caption="oooo" value="116" minvalue="112" maxvalue="119" />
			<item caption="OOoo" value="124" minvalue="120" maxvalue="127" />
			<item caption="oOOo" value="132" minvalue="128" maxvalue="135" />
			<item caption="ooOO" value="140" minvalue="136" maxvalue="143" />
			<item caption="OooO" value="148" minvalue="144" maxvalue="151" />
			<item caption="oooo" value="156" minvalue="152" maxvalue="159" />
			<item caption="oOOO" value="164" minvalue="160" maxvalue="167" />
			<item caption="OoOO" value="172" minvalue="168" maxvalue="175" />
			<item caption="OOoO" value="180" minvalue="176" maxvalue="183" />
			<item caption="OOOo" value="188" minvalue="184" maxvalue="191" />
			<item caption="oooo" value="196" minvalue="192" maxvalue="199" />
			<item caption="OOOO" value="204" minvalue="200" maxvalue="255" />
		</dropdown>
		<label top="104" left="632" caption="Head Selection" />
		<dropdown top="184" left="632" width="177" channel="28">
			<item caption="kein Programm" value="0" minvalue="0" maxvalue="15" />
			<item caption="Head Program 1" value="18" minvalue="16" maxvalue="20" />
			<item caption="Head Program 2" value="23" minvalue="21" maxvalue="25" />
			<item caption="Head Program 3" value="28" minvalue="26" maxvalue="30" />
			<item caption="Head Program 4" value="33" minvalue="31" maxvalue="35" />
			<item caption="Head Program 5" value="38" minvalue="36" maxvalue="40" />
			<item caption="Head Program 6" value="43" minvalue="41" maxvalue="45" />
			<item caption="Head Program 7" value="48" minvalue="46" maxvalue="50" />
			<item caption="Head Program 8" value="53" minvalue="51" maxvalue="55" />
			<item caption="Head Program 9" value="58" minvalue="56" maxvalue="60" />
			<item caption="Head Program 10" value="63" minvalue="61" maxvalue="65" />
			<item caption="Head Program 11" value="68" minvalue="66" maxvalue="70" />
			<item caption="Head Program 12" value="73" minvalue="71" maxvalue="75" />
			<item caption="Head Program 13" value="78" minvalue="76" maxvalue="80" />
			<item caption="Head Program 14" value="83" minvalue="81" maxvalue="85" />
			<item caption="Head Program 15" value="88" minvalue="86" maxvalue="90" />
			<item caption="Head Program 16" value="93" minvalue="91" maxvalue="95" />
			<item caption="Head Program 17" value="98" minvalue="96" maxvalue="100" />
			<item caption="Head Program 18" value="103" minvalue="101" maxvalue="105" />
			<item caption="Head Program 19" value="108" minvalue="106" maxvalue="110" />
			<item caption="Head Program 20" value="113" minvalue="111" maxvalue="115" />
			<item caption="Head Program 21" value="118" minvalue="116" maxvalue="120" />
			<item caption="Head Program 22" value="123" minvalue="121" maxvalue="125" />
			<item caption="Head Program 23" value="128" minvalue="126" maxvalue="130" />
			<item caption="Head Program 24 (1-23)" value="133" minvalue="131" maxvalue="135" />
			<item caption="Head + Color Program 25" value="138" minvalue="136" maxvalue="140" />
			<item caption="Head + Color Program 26" value="143" minvalue="141" maxvalue="145" />
			<item caption="Head + Color Program 27" value="148" minvalue="146" maxvalue="150" />
			<item caption="Head + Color Program 28" value="153" minvalue="151" maxvalue="155" />
			<item caption="Head + Color Program 29" value="158" minvalue="156" maxvalue="160" />
			<item caption="Head + Color Program 30" value="163" minvalue="161" maxvalue="165" />
			<item caption="Head + Color Program 31" value="168" minvalue="166" maxvalue="170" />
			<item caption="Head + Color Program 32" value="173" minvalue="171" maxvalue="175" />
			<item caption="Head + Color Program 33" value="178" minvalue="176" maxvalue="180" />
			<item caption="Head + Color Program 34" value="183" minvalue="181" maxvalue="185" />
			<item caption="Head + Color Program 35" value="188" minvalue="186" maxvalue="190" />
			<item caption="Head + Color Program 36" value="193" minvalue="191" maxvalue="195" />
			<item caption="Head + Color Program 37" value="198" minvalue="196" maxvalue="200" />
			<item caption="Head + Color Program 38" value="203" minvalue="201" maxvalue="205" />
			<item caption="Head + Color Program 39" value="208" minvalue="206" maxvalue="210" />
			<item caption="Head + Color Program 40" value="213" minvalue="211" maxvalue="215" />
			<item caption="Head + Color Program 41" value="218" minvalue="216" maxvalue="220" />
			<item caption="Head + Color Program 42" value="223" minvalue="221" maxvalue="225" />
			<item caption="Head + Color Program 43" value="228" minvalue="226" maxvalue="230" />
			<item caption="Head + Color Program 44" value="233" minvalue="231" maxvalue="235" />
			<item caption="Head + Color Program 45" value="238" minvalue="236" maxvalue="240" />
			<item caption="Head + Color Program 46" value="243" minvalue="241" maxvalue="245" />
			<item caption="Head + Color Program 47" value="248" minvalue="246" maxvalue="250" />
			<item caption="Head + Color Program 48 (25-47)" value="253" minvalue="251" maxvalue="255" />
		</dropdown>
		<slider top="224" left="683" height="33" width="137" startvalue="0" endvalue="255" channel="29" />
		<label top="164" left="632" caption="Auto Programme" />
		<label top="232" left="640" caption="Speed" />
		<label top="80" left="632" caption="Speed" />
		<label top="20" left="632" caption="Color Mode" />
		<slider top="312" left="688" height="33" width="129" startvalue="1" endvalue="40" name="shutterslider" action="setshutter" />
		<label top="320" left="648" caption="Speed" />
		<command top="496" left="24" width="80" height="35" caption="Soundcontrol on" clicksequence="set 8 250; set 26 252" />
		<command top="496" left="112" width="80" height="35" caption="Soundcontrol off" clicksequence="set 8 0; set 26 0" />
		<command top="456" left="24" width="80" height="35" caption="Dim and Shut on" clicksequence="set 30 255; set 31 22" />
		<command top="456" left="112" width="80" height="35" caption="Dim and Shut off" clicksequence="set 30 0; set 31 0" />
	</form>
	<code>
		<procedure name="setrotation"> !if|{rotationdrop}|eq|0|
  !set_channel|3|(0)$
 !set_control|rotationslider|(0)$

 $
 !if|{rotationdrop}|eq|-1|
  !set_channel|3|(1+{rotationslider})$
 $
 !if|{rotationdrop}|eq|-2|
  !set_channel|3|(128+{rotationslider})$
 $</procedure>
		<procedure name="getrotation">!if|({channel_3} = 0)|
   !set_control|rotationdrop|0$
  !set_control|rotationslider|0$
$

!if|({channel_3} &gt; 0) and ({channel_3} &lt; 128)|
  !set_control|rotationdrop|-1$
  !set_control|rotationslider|(0 + {channel_3})$
$

!if|({channel_3} &gt; 127) and ({channel_3} &lt; 256)|
  !set_control|rotationdrop|-2$
  !set_control|rotationslider|({channel_3} - 127)$
$</procedure>
		<procedure name="INITCONTROLS">!call|getrotation$
!call|getfixcolor$
!call|getshutter$</procedure>
		<procedure name="setfixcolor"> !if|{colordrop}|gt|-1|
  !set_channel|26|{colordrop}$
 |
 !if|{colordrop}|eq|-1|
  !set_channel|26|(201-{colorslider})$
 $
 !if|{colordrop}|eq|-2|
  !set_channel|26|(229-{colorslider})$
 $
 !if|{colordrop}|eq|-3|
  !set_channel|26|(249-{colorslider})$
 $
$
</procedure>
		<procedure name="getfixcolor">!if|({channel_26} &lt; 180)|
   !set_control|colordrop|{channel_26}$
  !set_control|colorslider|0$
$

!if|({channel_3} &gt; 0) and ({channel_3} &lt; 128)|
  !set_control|rotationdrop|-1$
  !set_control|rotationslider|(0 + {channel_3})$
$

!if|({channel_3} &gt; 127) and ({channel_3} &lt; 256)|
  !set_control|rotationdrop|-2$
  !set_control|rotationslider|({channel_3} - 127)$
$</procedure>
		<procedure name="setshutter"> !if|{shutterdrop}|gt|-1|
  !set_channel|31|{shutterdrop}$
 |
 !if|{shutterdrop}|eq|-1|
  !set_channel|31|(24+{shutterslider})$
 $

$</procedure>
		<procedure name="getshutter">!if|({channel_31} &lt; 25)|
   !set_control|shutterdrop|{channel_31}$
  !set_control|shutterslider|0$
$

!if|({channel_31} &gt; 24) and ({channel_31} &lt; 65)|
  !set_control|shutterdrop|-1$
  !set_control|shutterslider|({channel_3} - 24)$
$
</procedure>
	</code>
</device>