<?xml version="1.0"?>
<device image="Pilot300.gif" initsequence="set 0 128; set 1 0; set 2 128; set 3 0; set 5 0; set 5 0; set 6 0 ; set 7 0; set 8 0; set 9 0; set 10 0; set 11 0; set 12 32; set 13 0;">
	<information>
		<name>Indigo 4600</name>
		<author>McMaxxter</author>
		<vendor>Showtec</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="Pan Fine" 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 Fine" fade="yes" type="tiltfine" />
		<function channel="4" minvalue="0" maxvalue="255" name="Pan/Tilt" fade="yes" />
		<function channel="5" minvalue="0" maxvalue="255" name="Colors" fade="yes" type="color" action="GetColor" />
		<function channel="6" minvalue="0" maxvalue="255" name="FGobo" fade="yes" type="gobo" action="GetFGobo" />
		<function channel="7" minvalue="0" maxvalue="255" name="RGobo" fade="yes" type="gobo" action="GetRGobo" />
		<function channel="8" minvalue="0" maxvalue="255" name="Gobo Rot." fade="yes" action="GetGoboRotation" />
		<function channel="9" minvalue="0" maxvalue="255" name="Prism" fade="yes" action="GetPrism" />
		<function channel="10" minvalue="0" maxvalue="255" name="Focus" fade="yes" />
		<function channel="11" minvalue="0" maxvalue="255" name="Dimmer" fade="yes" type="dimmer" />
		<function channel="12" minvalue="0" maxvalue="255" name="Shutter" fade="yes" action="GetShutter" />
		<function channel="13" minvalue="0" maxvalue="255" name="Programs" fade="no" />
	</channels>
	<form width="700" height="461">
		<deviceimage top="0" left="0" />
		<devicename top="0" left="40" />
		<deviceadress top="16" left="40" />
		<label top="256" left="16" caption="Pan 540°" />
		<label top="40" left="136" caption="Tilt 270°" />
		<label top="8" left="248" caption="Colors" />
		<label top="24" left="432" caption="Rainbow" />
		<slider top="296" left="8" height="41" width="177" startvalue="255" endvalue="0" channel="4" />
		<label top="280" left="16" caption="P/T-Speed" />
		<label top="80" left="248" caption="Static Gobos" />
		<label top="152" left="248" caption="Rotating Gobos" />
		<label top="336" left="16" caption="Focus" />
		<slider top="352" left="8" height="41" width="169" startvalue="0" endvalue="255" name="Focus" channel="10" />
		<label top="392" left="16" caption="Dimmer" />
		<slider top="408" left="8" height="41" width="177" startvalue="0" endvalue="255" name="Dimmer" channel="11" />
		<label top="408" left="248" caption="Programs" />
		<dropdown top="424" left="248" width="174" name="programs_mode" channel="13">
			<item caption="No Function" value="0" minvalue="0" maxvalue="19" />
			<item caption="Pan/Tilt Blackout" value="20" minvalue="20" maxvalue="39" />
			<item caption="Pan/Til Blackout Off" value="40" minvalue="40" maxvalue="59" />
			<item caption="Custom" value="170" minvalue="170" maxvalue="179" />
			<item caption="Fan Auto" value="60" minvalue="60" maxvalue="79" />
			<item caption="Fan Slow" value="80" minvalue="80" maxvalue="99" />
			<item caption="Fan Standard" value="100" minvalue="100" maxvalue="119" />
			<item caption="Fan High Speed" value="120" minvalue="120" maxvalue="139" />
			<item caption="Auto 1" value="140" minvalue="140" maxvalue="149" />
			<item caption="Auto 2" value="150" minvalue="150" maxvalue="159" />
			<item caption="Sound 1" value="180" minvalue="180" maxvalue="189" />
			<item caption="Sound 2" value="190" minvalue="190" maxvalue="199" />
			<item caption="DIM 0" value="236" minvalue="236" maxvalue="239" />
			<item caption="DIM 1" value="240" minvalue="240" maxvalue="243" />
			<item caption="DIM 2" value="244" minvalue="244" maxvalue="247" />
			<item caption="DIM 3" value="248" minvalue="248" maxvalue="251" />
			<item caption="DIM 4" value="252" minvalue="252" maxvalue="255" />
			<item caption="Test" value="160" minvalue="160" maxvalue="169" />
		</dropdown>
		<position top="64" left="12" height="190" width="190" />
		<slider top="24" left="488" height="25" width="161" startvalue="0" endvalue="35" name="color_speed" action="SetColor" />
		<dropdown top="24" left="248" width="177" action="SetColor" name="color_color">
			<item caption="White" value="0" />
			<item caption="Red" value="10" />
			<item caption="Green" value="20" />
			<item caption="Yellow" value="30" />
			<item caption="Blue" value="40" />
			<item caption="Orange" value="50" />
			<item caption="Magenta" value="60" />
			<item caption="Light Blue" value="70" />
			<item caption="Red/White" value="200" />
			<item caption="Green/Red" value="180" />
			<item caption="Yellow/Green" value="160" />
			<item caption="Blue/Yellow" value="140" />
			<item caption="Orange/Blue" value="120" />
			<item caption="Magenta/Orange" value="100" />
			<item caption="Light Blue/Magenta" value="80" />
			<item caption="Rainbow CW" value="-1" />
		</dropdown>
		<dropdown top="96" left="248" width="177" action="SetFGobo" name="gobo_Fgobo">
			<item caption="Open" value="0" />
			<item caption="Gobo 1" value="11" />
			<item caption="Gobo 2" value="21" />
			<item caption="Gobo 3" value="31" />
			<item caption="Gobo 4" value="41" />
			<item caption="Gobo 5" value="51" />
			<item caption="Gobo 6" value="61" />
			<item caption="Gobo 7" value="71" />
			<item caption="Gobo 8" value="81" />
			<item caption="Shake 1" value="-8" />
			<item caption="Shake 2" value="-7" />
			<item caption="Shake 3" value="-6" />
			<item caption="Shake 4" value="-5" />
			<item caption="Shake 5" value="-4" />
			<item caption="Shake 6" value="-3" />
			<item caption="Shake 7" value="-2" />
			<item caption="Shake 8" value="-1" />
			<item caption="Rainbow CW" value="-9" />
		</dropdown>
		<dropdown top="168" left="248" width="177" action="SetRGobo" name="gobo_Rgobo">
			<item caption="Open" value="0" />
			<item caption="Gobo 1" value="11" />
			<item caption="Gobo 2" value="21" />
			<item caption="Gobo 3" value="31" />
			<item caption="Gobo 4" value="41" />
			<item caption="Gobo 5" value="51" />
			<item caption="Gobo 6" value="61" />
			<item caption="Gobo 7" value="71" />
			<item caption="Shake 1" value="-7" />
			<item caption="Shake 2" value="-6" />
			<item caption="Shake 3" value="-5" />
			<item caption="Shake 4" value="-4" />
			<item caption="Shake 5" value="-3" />
			<item caption="Shake 6" value="-2" />
			<item caption="Shake 7" value="-1" />
			<item caption="Rainbow CW" value="-8" />
		</dropdown>
		<line y1="8" x1="224" y2="440" x2="224" />
		<slider top="96" left="488" height="25" width="161" startvalue="0" endvalue="14" name="gobo_Fshake" action="SetFGobo" />
		<slider top="120" left="488" height="25" width="161" startvalue="0" endvalue="69" name="gobo_Fspeed" action="SetFGobo" />
		<label top="96" left="432" caption="Shake" />
		<label top="120" left="432" caption="Rainbow" />
		<slider top="168" left="488" height="25" width="161" startvalue="0" endvalue="14" name="gobo_Rshake" action="SetRGobo" />
		<label top="168" left="432" caption="Shake" />
		<slider top="192" left="488" height="25" width="161" startvalue="0" endvalue="69" name="gobo_Rspeed" action="SetRGobo" />
		<label top="192" left="432" caption="Rainbow" />
		<dropdown top="240" left="248" width="177" action="SetGoboRotation" name="gobo_rotation">
			<item caption="Index CCW" value="-1" />
			<item caption="Rotation CW" value="-2" />
			<item caption="Rotation CCW" value="-3" />
		</dropdown>
		<label top="224" left="248" caption="Gobo Rotation" />
		<slider top="240" left="488" height="25" width="161" startvalue="0" endvalue="60" name="gobo_index" action="SetGoboRotation" />
		<slider top="264" left="488" height="25" width="161" startvalue="0" endvalue="89" name="gobo_rotation_speed" action="SetGoboRotation" />
		<label top="240" left="432" caption="Index" />
		<label top="264" left="432" caption="Speed" />
		<dropdown top="304" left="248" width="177" action="SetPrism" name="prism_mode">
			<item caption="Prism Out" value="0" minvalue="0" maxvalue="4" />
			<item caption="No Rotation" value="5" />
			<item caption="Rotation CW" value="-2" />
			<item caption="Rotation CCW" value="-1" />
		</dropdown>
		<label top="288" left="248" caption="Prism" />
		<slider top="304" left="488" height="25" width="161" startvalue="0" endvalue="117" name="prism_speed" action="SetPrism" />
		<label top="304" left="432" caption="Speed" />
		<dropdown top="360" left="248" width="177" action="SetShutter" name="shutter_mode">
			<item caption="Closed" value="0" minvalue="0" maxvalue="31" />
			<item caption="Opened" value="32" />
			<item caption="Strobe" value="-1" />
			<item caption="Pulse" value="-2" />
			<item caption="Random Strobe" value="-3" />
		</dropdown>
		<label top="344" left="248" caption="Shutter" />
		<slider top="360" left="488" height="25" width="161" startvalue="0" endvalue="31" name="shutter_speed" action="SetShutter" />
		<label top="360" left="432" caption="Speed" />
		<command top="416" left="568" width="80" height="30" caption="Reset" color="#ff0000" name="reset" clicksequence="save 13; set 13 200; hold 5500; restore 13" />
	</form>
	<code>
		<procedure name="INITCONTROLS">
   !call|GetColor$
   !call|GetFGobo$
   !call|GetRGobo$
   !call|GetGoboRotation$
   !call|GetPrism$
   !call|GetShutter$
   </procedure>
		<procedure name="GetColor">
!if|({channel_5} &lt; 220)|
 !set_control|color_color|{channel_5}$
 !set_control|color_speed|0$
 |
 !if|({channel_5} &gt; 219)|
  !set_control|color_color|-1$
  !set_control|color_speed|({channel_5}-220)$
 $
$</procedure>
		<procedure name="SetColor">
!if|{color_color}|gt|-1|
 !set_channel|5|{color_color}$
 |
 !if|{color_color}|eq|-1|
  !set_channel|5|({color_speed}+220)$
 $
$</procedure>
		<procedure name="GetFGobo">
!if|({channel_6} &lt; 91)|
 !set_control|gobo_Fgobo|{channel_6}$
 !set_control|gobo_Fshake|0$
 !set_control|gobo_Fspeed|0$
 |
 !if|({channel_6} &gt; 90) and ({channel_6} &lt; 106)|
  !set_control|gobo_Fgobo|-1$
  !set_control|gobo_Fshake|({channel_6}-91)$
  !set_control|gobo_Fspeed|0$
 $
 !if|({channel_6} &gt; 105) and ({channel_6} &lt; 121)|
  !set_control|gobo_Fgobo|-2$
  !set_control|gobo_Fshake|({channel_6}-106)$
  !set_control|gobo_Fspeed|0$
 $
 !if|({channel_6} &gt; 120) and ({channel_6} &lt; 136)|
  !set_control|gobo_Fgobo|-3$
  !set_control|gobo_Fshake|({channel_6}-121)$
  !set_control|gobo_Fspeed|0$
 $
 !if|({channel_6} &gt; 135) and ({channel_6} &lt; 151)|
  !set_control|gobo_Fgobo|-4$
  !set_control|gobo_Fshake|({channel_6}-136)$
  !set_control|gobo_Fspeed|0$
 $
 !if|({channel_6} &gt; 150) and ({channel_6} &lt; 166)|
  !set_control|gobo_Fgobo|-5$
  !set_control|gobo_Fshake|({channel_6}-151)$
  !set_control|gobo_Fspeed|0$
 $
 !if|({channel_6} &gt; 165) and ({channel_6} &lt; 181)|
  !set_control|gobo_Fgobo|-6$
  !set_control|gobo_Fshake|({channel_6}-166)$
  !set_control|gobo_Fspeed|0$
 $
 !if|({channel_6} &gt; 180) and ({channel_6} &lt; 196)|
  !set_control|gobo_Fgobo|-7$
  !set_control|gobo_Fshake|({channel_6}-181)$
  !set_control|gobo_Fspeed|0$
 $
 !if|({channel_6} &gt; 195) and ({channel_6} &lt; 211)|
  !set_control|gobo_Fgobo|-8$
  !set_control|gobo_Fshake|({channel_6}-196)$
  !set_control|gobo_Fspeed|0$
 $
 !if|({channel_6} &gt; 210)|
  !set_control|gobo_Fgobo|-9$
  !set_control|gobo_Fshake|0$
  !set_control|gobo_Fspeed|({channel_6}-211)$
 $
$</procedure>
		<procedure name="SetFGobo">
!if|{gobo_Fgobo}|gt|-1|
 !set_channel|6|{gobo_Fgobo}$
 |
 !if|{gobo_Fgobo}|eq|-1|
  !set_channel|6|({gobo_Fshake}+91)$
 $
 !if|{gobo_Fgobo}|eq|-2|
  !set_channel|6|({gobo_Fshake}+106)$
 $
 !if|{gobo_Fgobo}|eq|-3|
  !set_channel|6|({gobo_Fshake}+121)$
 $
 !if|{gobo_Fgobo}|eq|-4|
  !set_channel|6|({gobo_Fshake}+136)$
 $
 !if|{gobo_Fgobo}|eq|-5|
  !set_channel|6|({gobo_Fshake}+151)$
 $
 !if|{gobo_Fgobo}|eq|-6|
  !set_channel|6|({gobo_Fshake}+166)$
 $
 !if|{gobo_Fgobo}|eq|-7|
  !set_channel|6|({gobo_Fshake}+181)$
 $
 !if|{gobo_Fgobo}|eq|-8|
  !set_channel|6|({gobo_Fshake}+196)$
 $
 !if|{gobo_Fgobo}|eq|-9|
  !set_channel|6|({gobo_Fspeed}+211)$
 $
$</procedure>
		<procedure name="GetRGobo">
!if|({channel_7} &lt; 81)|
 !set_control|gobo_Rgobo|{channel_7}$
 !set_control|gobo_Rshake|0$
 !set_control|gobo_Rspeed|0$
 |
 !if|({channel_7} &gt; 80) and ({channel_7} &lt; 96)|
  !set_control|gobo_Rgobo|-1$
  !set_control|gobo_Rshake|({channel_7}-81)$
  !set_control|gobo_Rspeed|0$
 $
 !if|({channel_7} &gt; 95) and ({channel_7} &lt; 111)|
  !set_control|gobo_Rgobo|-2$
  !set_control|gobo_Rshake|({channel_7}-96)$
  !set_control|gobo_Rspeed|0$
 $
 !if|({channel_7} &gt; 110) and ({channel_7} &lt; 126)|
  !set_control|gobo_Rgobo|-3$
  !set_control|gobo_Rshake|({channel_7}-111)$
  !set_control|gobo_Rspeed|0$
 $
 !if|({channel_7} &gt; 125) and ({channel_7} &lt; 141)|
  !set_control|gobo_Rgobo|-4$
  !set_control|gobo_Rshake|({channel_7}-126)$
  !set_control|gobo_Rspeed|0$
 $
 !if|({channel_7} &gt; 140) and ({channel_7} &lt; 156)|
  !set_control|gobo_Rgobo|-5$
  !set_control|gobo_Rshake|({channel_7}-141)$
  !set_control|gobo_Rspeed|0$
 $
 !if|({channel_7} &gt; 155) and ({channel_7} &lt; 171)|
  !set_control|gobo_Rgobo|-6$
  !set_control|gobo_Rshake|({channel_7}-156)$
  !set_control|gobo_Rspeed|0$
 $
 !if|({channel_7} &gt; 170) and ({channel_7} &lt; 186)|
  !set_control|gobo_Rgobo|-7$
  !set_control|gobo_Rshake|({channel_7}-171)$
  !set_control|gobo_Rspeed|0$
 $
 !if|({channel_7} &gt; 185)|
  !set_control|gobo_Rgobo|-8$
  !set_control|gobo_Rshake|0$
  !set_control|gobo_Rspeed|({channel_7}-186)$
 $
$</procedure>
		<procedure name="SetRGobo">
!if|{gobo_Rgobo}|gt|-1|
 !set_channel|7|{gobo_Rgobo}$
 |
 !if|{gobo_Rgobo}|eq|-1|
  !set_channel|7|({gobo_Rshake}+81)$
 $
 !if|{gobo_Rgobo}|eq|-2|
  !set_channel|7|({gobo_Rshake}+96)$
 $
 !if|{gobo_Rgobo}|eq|-3|
  !set_channel|7|({gobo_Rshake}+111)$
 $
 !if|{gobo_Rgobo}|eq|-4|
  !set_channel|7|({gobo_Rshake}+126)$
 $
 !if|{gobo_Rgobo}|eq|-5|
  !set_channel|7|({gobo_Rshake}+141)$
 $
 !if|{gobo_Rgobo}|eq|-6|
  !set_channel|7|({gobo_Rshake}+156)$
 $
 !if|{gobo_Rgobo}|eq|-7|
  !set_channel|7|({gobo_Rshake}+171)$
 $
 !if|{gobo_Rgobo}|eq|-8|
  !set_channel|7|({gobo_Rspeed}+186)$
 $
$</procedure>
		<procedure name="GetGoboRotation">
!if|({channel_8} &gt; 150) and ({channel_8} &lt; 166)|
 !set_control|gobo_rotation|{channel_8}$
 !set_control|gobo_index|0$
 !set_control|gobo_rotation_speed|0$
 |
 !if|({channel_8} &lt; 61)|
  !set_control|gobo_rotation|-1$
  !set_control|gobo_index|{channel_8}$
  !set_control|gobo_rotation_speed|0$
 $
 !if|({channel_8} &gt; 60) and ({channel_8} &lt; 151)|
  !set_control|gobo_rotation|-2$
  !set_control|gobo_index|0$
  !set_control|gobo_rotation_speed|({channel_8}-61)$
 $
 !if|({channel_8} &gt; 165)|
  !set_control|gobo_rotation|-3$
  !set_control|gobo_index|0$
  !set_control|gobo_rotation_speed|({channel_8}-166)$
 $
$</procedure>
		<procedure name="SetGoboRotation">
!if|{gobo_rotation}|gt|-1|
 !set_channel|8|{gobo_rotation}$
 |
 !if|{gobo_rotation}|eq|-1|
  !set_channel|8|{gobo_index}$
 $
 !if|{gobo_rotation}|eq|-2|
  !set_channel|8|({gobo_rotation_speed}+61)$
 $
 !if|{gobo_rotation}|eq|-3|
  !set_channel|8|({gobo_rotation_speed}+166)$
 $
$</procedure>
		<procedure name="GetPrism">
!if|({channel_9} &lt; 10) or ({channel_9} &gt; 127) and ({channel_9} &lt; 133)|
 !set_control|prism_mode|{channel_9}$
 !set_control|prism_speed|0$
 |
 !if|({channel_9} &gt; 9) and ({channel_9} &lt; 128)|
  !set_control|prism_mode|-1$
  !set_control|prism_speed|({channel_9}-10)$
 $
 !if|({channel_9} &gt; 132)|
  !set_control|prism_mode|-2$
  !set_control|prism_speed|({channel_9}-133)$
 $
$</procedure>
		<procedure name="SetPrism">
!if|{prism_mode}|gt|-1|
 !set_channel|9|{prism_mode}$
 |
 !if|{prism_mode}|eq|-1|
  !set_channel|9|({prism_speed}+10)$
 $
 !if|{prism_mode}|eq|-2|
  !set_channel|9|({prism_speed}+133)$
 $
$</procedure>
		<procedure name="GetShutter">
!if|({channel_12} &lt; 64) or ({channel_12} &gt; 95) and ({channel_12} &lt; 128) or ({channel_12} &gt; 159) and ({channel_12} &lt; 192) or ({channel_12} &gt; 223)|
 !set_control|shutter_mode|{channel_12}$
 !set_control|shutter_speed|0$
 |
 !if|({channel_12} &gt; 63) and ({channel_12} &lt; 96)|
  !set_control|shutter_mode|-1$
  !set_control|shutter_speed|({channel_12}-64)$
 $
 !if|({channel_12} &gt; 127) and ({channel_12} &lt; 160)|
  !set_control|shutter_mode|-2$
  !set_control|shutter_speed|({channel_12}-128)$
 $
 !if|({channel_12} &gt; 191) and ({channel_12} &lt; 224)|
  !set_control|shutter_mode|-3$
  !set_control|shutter_speed|({channel_12}-192)$
 $
$</procedure>
		<procedure name="SetShutter">
!if|{shutter_mode}|gt|-1|
 !set_channel|12|{shutter_mode}$
 |
 !if|{shutter_mode}|eq|-1|
  !set_channel|12|({shutter_speed}+64)$
 $
 !if|{shutter_mode}|eq|-2|
  !set_channel|12|({shutter_speed}+128)$
 $
 !if|{shutter_mode}|eq|-3|
  !set_channel|12|({shutter_speed}+192)$
 $
$</procedure>
	</code>
</device>