<?xml version="1.0"?>
<device image="Showtec phantom 130 spot.gif" initsequence="set 0 128; set 1 128; set 2 128; set 3 128; set 4 0; set 5 0; set 6 8; set 7 0; set 8 0; set 9 0; set 10 0; set 11 0; set 12 0; set 13 0; set 14 0; set 15 0">
	<information>
		<name>Briteq BT Shark</name>
		<vendor>Briteq</vendor>
		<version>1.2</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 Fein" fade="yes" type="tilt" />
		<function channel="2" minvalue="0" maxvalue="255" name="Tilt" fade="yes" type="panfine" />
		<function channel="3" minvalue="0" maxvalue="255" name="Tilt Fein" fade="yes" type="tiltfine" />
		<function channel="4" minvalue="0" maxvalue="255" name="PAN/TILT Geschwindigkeit" fade="yes" />
		<function channel="5" minvalue="0" maxvalue="255" name="Dimmer" fade="yes" type="dimmer" />
		<function channel="6" minvalue="0" maxvalue="255" name="Dimmer Fein" fade="yes" />
		<function channel="7" minvalue="0" maxvalue="255" name="Shutter" fade="yes" action="GetShutter" />
		<function channel="8" minvalue="0" maxvalue="255" name="Farbrad" fade="yes" type="color" action="GetColor" />
		<function channel="9" minvalue="0" maxvalue="255" name="Rotierendes Goborad" fade="yes" type="gobo" action="GetGoboRot" />
		<function channel="10" minvalue="0" maxvalue="255" name="Goborad Rotation" fade="yes" action="GetGoboRot" />
		<function channel="11" minvalue="0" maxvalue="255" name="Statisches Goborad" fade="yes" type="gobo" action="GetGobo" />
		<function channel="12" minvalue="0" maxvalue="255" name="Prisma" fade="yes" action="GetPrisma" />
		<function channel="13" minvalue="0" maxvalue="255" name="Prisma Rotation" fade="yes" />
		<function channel="14" minvalue="0" maxvalue="255" name="Zoom" fade="yes" />
		<function channel="15" minvalue="0" maxvalue="255" name="Focus" fade="yes" />
		<function channel="16" minvalue="0" maxvalue="255" name="Auto Focus" fade="yes" />
		<function channel="17" minvalue="0" maxvalue="255" name="Frost" fade="yes" />
		<function channel="18" minvalue="0" maxvalue="255" name="Programme" fade="yes" action="GetPrograms" />
	</channels>
	<form width="580" height="614">
		<deviceimage top="0" left="0" width="33" height="33" />
		<devicename top="0" left="40" width="129" height="17" />
		<deviceadress top="16" left="40" width="129" height="17" />
		<position top="40" left="4" height="180" width="180" />
		<!--Color-->
		<!--Gobo 1-->
		<!--Gobo 2-->
		<line x1="184" y1="232" x2="184" y2="562" />
		<!--Dimmer-->
		<label top="312" left="0" caption="Dimmer" />
		<slider top="328" left="0" height="41" width="177" startvalue="0" endvalue="255" channel="5" name="slider_dimmer" />
		<!--Focus-->
		<label top="392" left="0" caption="Fokus" />
		<!--Shutter-->
		<!--Prisma-->
		<line x1="192" y1="160" x2="367" y2="160" />
		<!--Laser-->
		<!--Spezial-->
		<!--Buttons-->
		<slider top="248" left="0" height="41" width="177" startvalue="64" endvalue="95" name="slider_speed" channel="4" />
		<label top="232" left="0" caption="PAN/TILT Geschwindigkeit" />
		<slider top="408" left="0" height="41" width="177" startvalue="0" endvalue="255" name="slider_fokus" channel="12" />
		<label top="464" left="0" caption="Zoom" />
		<slider top="488" left="0" height="41" width="177" startvalue="0" endvalue="255" name="slider_zoom" channel="13" />
		<options top="24" left="384" action="SetGobo" name="options_gobowheel">
			<option value="0" caption="Rotierend" top="0" left="0" />
			<option value="1" caption="Statisch" top="0" left="112" />
		</options>
		<dropdown top="424" left="384" width="177" action="SetPrograms" name="drop_program">
			<item caption="NormalBetrieb" value="0" minvalue="0" maxvalue="7" />
			<item caption="Programm 1" value="8" minvalue="8" maxvalue="23" />
			<item caption="Programm 2" value="24" minvalue="24" maxvalue="39" />
			<item caption="Programm 3" value="40" minvalue="40" maxvalue="55" />
			<item caption="Programm 4" value="56" minvalue="56" maxvalue="71" />
			<item caption="Programm 5" value="72" minvalue="72" maxvalue="87" />
			<item caption="Programm 6" value="88" minvalue="88" maxvalue="103" />
			<item caption="Programm 7" value="104" minvalue="104" maxvalue="119" />
			<item caption="Programm 8" value="120" minvalue="120" maxvalue="135" />
		</dropdown>
		<onoff top="376" left="384" width="176" height="38" onvalue="1" offvalue="0" caption="MusikProgrammAuswahl" name="switch_program" action="SetPrograms" />
		<dropdown top="48" left="384" width="177" action="SetGobo" name="drop_gobo">
			<item caption="Offen" value="0" minvalue="0" maxvalue="7" />
			<item caption="Gobo 1" value="8" minvalue="8" maxvalue="15" />
			<item caption="Gobo 2" value="16" minvalue="16" maxvalue="23" />
			<item caption="Gobo 3" value="24" minvalue="24" maxvalue="31" />
			<item caption="Gobo 4" value="32" minvalue="32" maxvalue="39" />
			<item caption="Gobo 5" value="40" minvalue="40" maxvalue="47" />
			<item caption="Gobo 6" value="48" minvalue="48" maxvalue="55" />
			<item caption="Gobo 7" value="56" minvalue="56" maxvalue="63" />
		</dropdown>
		<line x1="8" y1="456" x2="175" y2="456" />
		<slider top="80" left="464" height="33" width="89" startvalue="0" endvalue="8" name="slider_goboshake" action="SetGobo" />
		<label top="80" left="384" caption="Schütteln" />
		<onoff top="112" left="384" width="80" height="30" onvalue="1" offvalue="0" caption="GoboVerlauf" name="switch_gobogradient" action="SetGobo" />
		<slider top="152" left="384" height="41" width="177" startvalue="127" endvalue="0" name="slider_gobogradient" action="SetGobo" />
		<options top="32" left="208" action="SetShutter" name="options_shutter">
			<option value="0" caption="Zu" top="0" left="0" />
			<option value="4" caption="Öffnend" top="16" left="80" />
			<option value="1" caption="Offen" top="0" left="40" />
			<option value="2" caption="Strobo" top="0" left="96" />
			<option value="3" caption="Schließend" top="16" left="0" />
			<option value="5" caption="Pulsierend" top="32" left="0" />
			<option value="6" caption="Zufall" top="32" left="80" />
		</options>
		<slider top="96" left="192" height="41" width="177" startvalue="0" endvalue="115" name="slider_shutter" action="SetShutter" />
		<line x1="384" y1="216" x2="559" y2="216" />
		<dropdown top="192" left="192" width="177" action="SetColor" name="drop_color">
			<item caption="Weiß" value="0" minvalue="0" maxvalue="7" color="#ffffff" />
			<item caption="Rot" value="8" minvalue="8" maxvalue="15" color="#ff0000" />
			<item caption="Gelb" value="16" minvalue="16" maxvalue="23" color="#ffff00" />
			<item caption="Grün" value="24" minvalue="24" maxvalue="31" color="#008000" />
			<item caption="Orange" value="32" minvalue="32" maxvalue="39" color="#ff8000" />
			<item caption="Pink" value="40" minvalue="40" maxvalue="47" color="#ff0080" />
			<item caption="Hellgrün" value="48" minvalue="48" maxvalue="55" color="#00ff00" />
			<item caption="Hellblau" value="56" minvalue="56" maxvalue="63" color="#0080c0" />
		</dropdown>
		<slider top="224" left="256" height="41" width="105" startvalue="0" endvalue="20" name="slider_halfcolor" action="SetColor" />
		<label top="224" left="192" caption="Halbfarben" />
		<label top="8" left="384" caption="Gobos" />
		<command top="272" left="288" width="56" height="30" caption=" " icon="RotateStop.gif" action="SetColorStop" name="cmd_color" />
		<onoff top="272" left="192" width="80" height="30" onvalue="1" offvalue="0" caption="Farbverlauf" name="switch_colorgradient" action="SetColor" />
		<slider top="320" left="192" height="41" width="177" startvalue="65" endvalue="0" name="slider_colorgradient" action="SetColor" />
		<label top="360" left="328" caption="Rechts" />
		<label top="360" left="192" caption="Links" />
		<label top="360" left="264" caption="Stop" />
		<label top="192" left="520" caption="Rechts" />
		<label top="192" left="384" caption="Links" />
		<label top="192" left="456" caption="Stop" />
		<command top="112" left="480" width="56" height="30" caption=" " icon="RotateStop.gif" action="SetGoboStop" name="cmd_gobo" />
		<slider top="504" left="192" height="41" width="177" startvalue="117" endvalue="0" name="slider_prism" action="SetPrism" />
		<onoff top="424" left="192" width="80" height="30" onvalue="1" offvalue="0" caption="Prisma 1" name="switch_prism1" action="SetPrism" />
		<onoff top="424" left="288" width="80" height="30" onvalue="1" offvalue="0" caption="Prisma 2" name="switch_prism2" action="SetPrism" />
		<line y1="8" x1="376" y2="560" x2="376" />
		<slider top="304" left="384" height="41" width="177" startvalue="167" endvalue="0" name="slider_rot" action="SetGoboRot" />
		<options top="248" left="384" action="SetGoboRot" name="options_goborot">
			<option value="0" caption="Index" top="0" left="0" />
			<option value="1" caption="Rotation" top="16" left="0" />
			<option value="2" caption="Springend" top="32" left="0" />
		</options>
		<label top="344" left="520" caption="Rechts" />
		<label top="344" left="384" caption="Links" />
		<label top="344" left="456" caption="Stop" />
		<command top="264" left="480" width="64" height="30" caption=" " icon="RotateStop.gif" action="SetGoboRotStop" name="cmd_goborotstop" />
		<command top="464" left="248" width="64" height="30" caption=" " icon="RotateStop.gif" action="SetPrismStop" name="cmd_prismstop" />
		<label top="544" left="328" caption="Rechts" />
		<label top="544" left="192" caption="Links" />
		<label top="544" left="264" caption="Stop" />
		<line x1="384" y1="368" x2="559" y2="368" />
		<dropdown top="464" left="384" width="177" action="SetFunctions" name="drop_blackout">
			<item caption="Keine Funktion" value="0" minvalue="0" maxvalue="7" />
			<item caption="Blackout bei Pan/Tilt" value="8" minvalue="8" maxvalue="15" />
			<item caption="Blackout bei Farbrad" value="16" minvalue="16" maxvalue="23" />
			<item caption="Blackout bei Goborad" value="24" minvalue="24" maxvalue="31" />
			<item caption="Blackout bei Pan/Tilt &amp; Farbrad" value="32" minvalue="32" maxvalue="39" />
			<item caption="Blackout bei Pan/Tilt &amp; Goborad" value="40" minvalue="40" maxvalue="47" />
			<item caption="Blackout bei Pan/Tilt &amp; Farbrad &amp; Goborad" value="48" minvalue="48" maxvalue="55" />
		</dropdown>
		<line x1="192" y1="400" x2="367" y2="400" />
		<dropdown top="496" left="384" width="177" action="SetFunctions" name="drop_reset">
			<item caption="Reset Pan" value="96" minvalue="96" maxvalue="103" />
			<item caption="Reset Tilt" value="104" minvalue="104" maxvalue="111" />
			<item caption="Reset Farbrad" value="112" minvalue="112" maxvalue="119" />
			<item caption="Reset Goborad" value="120" minvalue="120" maxvalue="135" />
			<item caption="Reset Prisma" value="136" minvalue="136" maxvalue="143" />
			<item caption="Reset Focus/Zoom" value="144" minvalue="144" maxvalue="151" />
			<item caption="Reset Alles" value="152" minvalue="152" maxvalue="159" />
		</dropdown>
		<onoff top="528" left="384" width="80" height="30" onvalue="1" offvalue="0" caption="Go!" name="switch_go" action="SetFunctions" color="#ff0000" />
		<line x1="384" y1="456" x2="559" y2="456" />
		<label top="224" left="384" caption="Gobo Rotation" />
		<label top="168" left="192" caption="Farbrad" />
		<label top="8" left="200" caption="Shutter" />
		<line x1="8" y1="296" x2="175" y2="296" />
		<line x1="8" y1="376" x2="175" y2="376" />
		<command top="528" left="480" width="80" height="30" caption="Reset Werte" color="#00ff00" action="SetReset" name="cmd_reset" />
		<label top="136" left="200" caption="Langsam" />
		<label top="136" left="320" caption="Schnell" />
		<slider top="576" left="0" height="41" width="177" startvalue="0" endvalue="255" />
		<line y1="539" x1="8" y2="539" x2="176" />
		<label top="552" left="8" caption="Frost" />
	</form>
	<code>
		<procedure name="INITCONTROLS">!set_control|slider_colorgradient|33$
!set_control|slider_goboshake|0$
!set_control|slider_gobogradient|64$
!set_control|drop_gobo|0$
!set_control|slider_prism|59$
!set_control|drop_reset|96$

!if|({channel_14} &gt; 55) and ({channel_14} &lt; 256)|
  !set_control|switch_go|0$
  !set_control|drop_blackout|0$
  !set_channel|14|0$
$

   !call|GetShutter$
   !call|GetColor$
   !call|GetGobo$
   !call|GetGoboRot$
   !call|GetPrism$
   !call|GetFunctions$
   !call|GetPrograms$
</procedure>
		<procedure name="SetShutter">
!if|{options_shutter}|eq|0|
  !set_channel|6|0$
$

!if|{options_shutter}|eq|1|
  !set_channel|6|8$
$

!if|{options_shutter}|eq|2|
  !set_channel|6|(16+{slider_shutter})$
$

!if|{options_shutter}|eq|3|
  !set_channel|6|(132+{slider_shutter}/23*7)$
$

!if|{options_shutter}|eq|4|
  !set_channel|6|(168+{slider_shutter}/23*7)$
$

!if|{options_shutter}|eq|5|
  !set_channel|6|(204+{slider_shutter}/23*7)$
$

!if|{options_shutter}|eq|6|
  !set_channel|6|(240+{slider_shutter}/23*2)$
$</procedure>
		<procedure name="GetShutter">!if|({channel_6} &gt; -1) and ({channel_6} &lt; 7)|
  !set_control|options_shutter|0$
  !set_control|slider_shutter|{slider_shutter}$
$

!if|({channel_6} &gt; 7) and ({channel_6} &lt; 16)|
  !set_control|options_shutter|1$
  !set_control|slider_shutter|{slider_shutter}$
$

!if|({channel_6} &gt; 15) and ({channel_6} &lt; 132)|
  !set_control|options_shutter|2$
  !set_control|slider_shutter|({channel_6}-16)$
$

!if|({channel_6} &gt; 131) and ({channel_6} &lt; 168)|
  !set_control|options_shutter|3$
  !set_control|slider_shutter|(({channel_6}-132)/7*23)$
$

!if|({channel_6} &gt; 167) and ({channel_6} &lt; 204)|
  !set_control|options_shutter|4$
  !set_control|slider_shutter|(({channel_6}-168)/7*23)$
$

!if|({channel_6} &gt; 203) and ({channel_6} &lt; 240)|
  !set_control|options_shutter|5$
  !set_control|slider_shutter|(({channel_6}-204)/7*23)$
$

!if|({channel_6} &gt; 239) and ({channel_6} &lt; 251)|
  !set_control|options_shutter|6$
  !set_control|slider_shutter|(({channel_6}-240)/2*23)$
$

!if|({channel_6} &gt; 250) and ({channel_6} &lt; 256)|
  !set_control|options_shutter|1$
  !set_control|slider_shutter|{slider_shutter}$
$</procedure>
		<procedure name="SetColor">
!if|{switch_colorgradient}|eq|0|

!if|{slider_halfcolor}|eq|0|

  !set_channel|7|{drop_color}$

$

!if|{slider_halfcolor}|gt|0|

  !if|{drop_color}|eq|0|
    !set_channel|7|(63+{slider_halfcolor})$
  $

  !if|{drop_color}|eq|8|
    !set_channel|7|(84+({slider_halfcolor}/20*15))$
  $

  !if|{drop_color}|eq|16|
    !set_channel|7|(100+({slider_halfcolor}/20*14))$
  $

  !if|{drop_color}|eq|24|
    !set_channel|7|(115+({slider_halfcolor}/20*15))$
  $

  !if|{drop_color}|eq|32|
    !set_channel|7|(131+({slider_halfcolor}/20*15))$
  $

  !if|{drop_color}|eq|40|
    !set_channel|7|(147+({slider_halfcolor}/20*14))$
  $

  !if|{drop_color}|eq|48|
    !set_channel|7|(162+({slider_halfcolor}/20*15))$
  $

  !if|{drop_color}|eq|56|
    !set_channel|7|(178+({slider_halfcolor}/20*11))$
  $


$

$

!if|{switch_colorgradient}|eq|1|

  !set_channel|7|(190+{slider_colorgradient})$

$</procedure>
		<procedure name="SetColorStop">!set_control|slider_colorgradient|33$</procedure>
		<procedure name="GetColor">!if|({channel_7} &gt; -1) and ({channel_7} &lt; 8)|
  !set_control|drop_color|0$
  !set_control|slider_halfcolor|0$
  !set_control|switch_colorgradient|0$
  !set_control|slider_colorgradient|{slider_colorgradient}$
$

!if|({channel_7} &gt; 7) and ({channel_7} &lt; 16)|
  !set_control|drop_color|8$
  !set_control|slider_halfcolor|0$
  !set_control|switch_colorgradient|0$
  !set_control|slider_colorgradient|{slider_colorgradient}$
$

!if|({channel_7} &gt; 15) and ({channel_7} &lt; 24)|
  !set_control|drop_color|16$
  !set_control|slider_halfcolor|0$
  !set_control|switch_colorgradient|0$
  !set_control|slider_colorgradient|{slider_colorgradient}$
$

!if|({channel_7} &gt; 23) and ({channel_7} &lt; 32)|
  !set_control|drop_color|24$
  !set_control|slider_halfcolor|0$
  !set_control|switch_colorgradient|0$
  !set_control|slider_colorgradient|{slider_colorgradient}$
$

!if|({channel_7} &gt; 31) and ({channel_7} &lt; 40)|
  !set_control|drop_color|32$
  !set_control|slider_halfcolor|0$
  !set_control|switch_colorgradient|0$
  !set_control|slider_colorgradient|{slider_colorgradient}$
$

!if|({channel_7} &gt; 39) and ({channel_7} &lt; 48)|
  !set_control|drop_color|40$
  !set_control|slider_halfcolor|0$
  !set_control|switch_colorgradient|0$
  !set_control|slider_colorgradient|{slider_colorgradient}$
$

!if|({channel_7} &gt; 47) and ({channel_7} &lt; 56)|
  !set_control|drop_color|48$
  !set_control|slider_halfcolor|0$
  !set_control|switch_colorgradient|0$
  !set_control|slider_colorgradient|{slider_colorgradient}$
$

!if|({channel_7} &gt; 55) and ({channel_7} &lt; 64)|
  !set_control|drop_color|56$
  !set_control|slider_halfcolor|0$
  !set_control|switch_colorgradient|0$
  !set_control|slider_colorgradient|{slider_colorgradient}$
$

!if|({channel_7} &gt; 63) and ({channel_7} &lt; 84)|
  !set_control|drop_color|0$
  !set_control|slider_halfcolor|({channel_7}-63)$
  !set_control|switch_colorgradient|0$
  !set_control|slider_colorgradient|{slider_colorgradient}$
$

!if|({channel_7} &gt; 83) and ({channel_7} &lt; 100)|
  !set_control|drop_color|8$
  !set_control|slider_halfcolor|(({channel_7}-84)/15*20)$
  !set_control|switch_colorgradient|0$
  !set_control|slider_colorgradient|{slider_colorgradient}$
$

!if|({channel_7} &gt; 99) and ({channel_7} &lt; 115)|
  !set_control|drop_color|16$
  !set_control|slider_halfcolor|(({channel_7}-100)/14*20)$
  !set_control|switch_colorgradient|0$
  !set_control|slider_colorgradient|{slider_colorgradient}$
$

!if|({channel_7} &gt; 114) and ({channel_7} &lt; 131)|
  !set_control|drop_color|24$
  !set_control|slider_halfcolor|(({channel_7}-115)/15*20)$
  !set_control|switch_colorgradient|0$
  !set_control|slider_colorgradient|{slider_colorgradient}$
$

!if|({channel_7} &gt; 130) and ({channel_7} &lt; 147)|
  !set_control|drop_color|32$
  !set_control|slider_halfcolor|(({channel_7}-131)/15*20)$
  !set_control|switch_colorgradient|0$
  !set_control|slider_colorgradient|{slider_colorgradient}$
$

!if|({channel_7} &gt; 146) and ({channel_7} &lt; 162)|
  !set_control|drop_color|40$
  !set_control|slider_halfcolor|(({channel_7}-147)/14*20)$
  !set_control|switch_colorgradient|0$
  !set_control|slider_colorgradient|{slider_colorgradient}$
$

!if|({channel_7} &gt; 161) and ({channel_7} &lt; 178)|
  !set_control|drop_color|48$
  !set_control|slider_halfcolor|(({channel_7}-162)/15*20)$
  !set_control|switch_colorgradient|0$
  !set_control|slider_colorgradient|{slider_colorgradient}$
$

!if|({channel_7} &gt; 177) and ({channel_7} &lt; 190)|
  !set_control|drop_color|56$
  !set_control|slider_halfcolor|(({channel_7}-178)/11*20)$
  !set_control|switch_colorgradient|0$
  !set_control|slider_colorgradient|{slider_colorgradient}$
$

!if|({channel_7} &gt; 189) and ({channel_7} &lt; 256)|
  !set_control|drop_color|{drop_color}$
  !set_control|slider_halfcolor|{slider_halfcolor}$
  !set_control|switch_colorgradient|1$
  !set_control|slider_colorgradient|({channel_7}-190)$
$

</procedure>
		<procedure name="SetGobo">!if|{options_gobowheel}|eq|0|

 !if|{switch_gobogradient}|eq|0|

  !if|{slider_goboshake}|eq|0|

   !set_channel|8|{drop_gobo}$
   !set_channel|10|0$

  $

  !if|{slider_goboshake}|gt|0|

   !if|{drop_gobo}|lt|8|

    !set_channel|8|0$
    !set_channel|10|0$

   $

   !if|{drop_gobo}|eq|8|

    !set_channel|8|(111+{slider_goboshake})$
    !set_channel|10|0$

   $

   !if|{drop_gobo}|eq|16|

    !set_channel|8|(103+{slider_goboshake})$
    !set_channel|10|0$

   $

   !if|{drop_gobo}|eq|24|

    !set_channel|8|(95+{slider_goboshake})$
    !set_channel|10|0$

   $

   !if|{drop_gobo}|eq|32|

    !set_channel|8|(87+{slider_goboshake})$
    !set_channel|10|0$

   $

   !if|{drop_gobo}|eq|40|

    !set_channel|8|(79+{slider_goboshake})$
    !set_channel|10|0$

   $

   !if|{drop_gobo}|eq|48|

    !set_channel|8|(71+{slider_goboshake})$
    !set_channel|10|0$

   $

   !if|{drop_gobo}|eq|56|

    !set_channel|8|(63+{slider_goboshake})$
    !set_channel|10|0$

   $
  $
 $

 !if|{switch_gobogradient}|eq|1|

  !set_channel|8|(128+{slider_gobogradient})$
  !set_channel|10|0$

 $
$






!if|{options_gobowheel}|eq|1|

 !if|{switch_gobogradient}|eq|0|

  !if|{slider_goboshake}|eq|0|

   !set_channel|10|{drop_gobo}$
   !set_channel|8|0$

  $

  !if|{slider_goboshake}|gt|0|

   !if|{drop_gobo}|lt|8|

    !set_channel|10|0$
    !set_channel|8|0$

   $

   !if|{drop_gobo}|eq|8|

    !set_channel|10|(111+{slider_goboshake})$
    !set_channel|8|0$

   $

   !if|{drop_gobo}|eq|16|

    !set_channel|10|(103+{slider_goboshake})$
    !set_channel|8|0$

   $

   !if|{drop_gobo}|eq|24|

    !set_channel|10|(95+{slider_goboshake})$
    !set_channel|8|0$

   $

   !if|{drop_gobo}|eq|32|

    !set_channel|10|(87+{slider_goboshake})$
    !set_channel|8|0$

   $

   !if|{drop_gobo}|eq|40|

    !set_channel|10|(79+{slider_goboshake})$
    !set_channel|8|0$

   $

   !if|{drop_gobo}|eq|48|

    !set_channel|10|(71+{slider_goboshake})$
    !set_channel|8|0$

   $

   !if|{drop_gobo}|eq|56|

    !set_channel|10|(63+{slider_goboshake})$
    !set_channel|8|0$

   $
  $
 $

 !if|{switch_gobogradient}|eq|1|

  !set_channel|10|(128+{slider_gobogradient})$
  !set_channel|8|0$

 $
$</procedure>
		<procedure name="SetGoboStop">!set_control|slider_gobogradient|64$</procedure>
		<procedure name="GetGobo">!if|({channel_8} &gt; 0) and ({channel_10} &lt; 1)|
 !set_control|options_gobowheel|0$

 !if|({channel_8} &gt; -1) and ({channel_8} &lt; 8)|
  !set_control|drop_gobo|0$
  !set_control|slider_goboshake|0$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_8} &gt; 7) and ({channel_8} &lt; 16)|
  !set_control|drop_gobo|8$
  !set_control|slider_goboshake|0$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_8} &gt; 15) and ({channel_8} &lt; 24)|
  !set_control|drop_gobo|16$
  !set_control|slider_goboshake|0$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_8} &gt; 23) and ({channel_8} &lt; 32)|
  !set_control|drop_gobo|24$
  !set_control|slider_goboshake|0$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_8} &gt; 31) and ({channel_8} &lt; 40)|
  !set_control|drop_gobo|32$
  !set_control|slider_goboshake|0$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_8} &gt; 39) and ({channel_8} &lt; 48)|
  !set_control|drop_gobo|40$
  !set_control|slider_goboshake|0$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_8} &gt; 47) and ({channel_8} &lt; 56)|
  !set_control|drop_gobo|48$
  !set_control|slider_goboshake|0$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_8} &gt; 55) and ({channel_8} &lt; 64)|
  !set_control|drop_gobo|56$
  !set_control|slider_goboshake|0$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_8} &gt; 63) and ({channel_8} &lt; 72)|
  !set_control|drop_gobo|56$
  !set_control|slider_goboshake|({channel_8}-63)$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_8} &gt; 71) and ({channel_8} &lt; 80)|
  !set_control|drop_gobo|48$
  !set_control|slider_goboshake|({channel_8}-71)$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_8} &gt; 79) and ({channel_8} &lt; 88)|
  !set_control|drop_gobo|40$
  !set_control|slider_goboshake|({channel_8}-79)$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_8} &gt; 87) and ({channel_8} &lt; 96)|
  !set_control|drop_gobo|32$
  !set_control|slider_goboshake|({channel_8}-87)$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_8} &gt; 95) and ({channel_8} &lt; 104)|
  !set_control|drop_gobo|24$
  !set_control|slider_goboshake|({channel_8}-95)$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_8} &gt; 103) and ({channel_8} &lt; 112)|
  !set_control|drop_gobo|16$
  !set_control|slider_goboshake|({channel_8}-103)$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_8} &gt; 111) and ({channel_8} &lt; 120)|
  !set_control|drop_gobo|8$
  !set_control|slider_goboshake|({channel_8}-111)$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_8} &gt; 119) and ({channel_8} &lt; 128)|
  !set_control|drop_gobo|0$
  !set_control|slider_goboshake|0$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_8} &gt; 127) and ({channel_8} &lt; 256)|
  !set_control|drop_gobo|{drop_gobo}$
  !set_control|slider_goboshake|{slider_goboshake}$
  !set_control|switch_gobogradient|1$
  !set_control|slider_gobogradient|({channel_8}-128)$
 $
$

!if|({channel_8} &lt; 1) and ({channel_10} &gt; 0)|
 !set_control|options_gobowheel|1$

 !if|({channel_10} &gt; -1) and ({channel_10} &lt; 8)|
  !set_control|drop_gobo|0$
  !set_control|slider_goboshake|0$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_10} &gt; 7) and ({channel_10} &lt; 16)|
  !set_control|drop_gobo|8$
  !set_control|slider_goboshake|0$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_10} &gt; 15) and ({channel_10} &lt; 24)|
  !set_control|drop_gobo|16$
  !set_control|slider_goboshake|0$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_10} &gt; 23) and ({channel_10} &lt; 32)|
  !set_control|drop_gobo|24$
  !set_control|slider_goboshake|0$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_10} &gt; 31) and ({channel_10} &lt; 40)|
  !set_control|drop_gobo|32$
  !set_control|slider_goboshake|0$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_10} &gt; 39) and ({channel_10} &lt; 48)|
  !set_control|drop_gobo|40$
  !set_control|slider_goboshake|0$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_10} &gt; 47) and ({channel_10} &lt; 56)|
  !set_control|drop_gobo|48$
  !set_control|slider_goboshake|0$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_10} &gt; 55) and ({channel_10} &lt; 64)|
  !set_control|drop_gobo|56$
  !set_control|slider_goboshake|0$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_10} &gt; 63) and ({channel_10} &lt; 72)|
  !set_control|drop_gobo|56$
  !set_control|slider_goboshake|({channel_10}-63)$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_10} &gt; 71) and ({channel_10} &lt; 80)|
  !set_control|drop_gobo|48$
  !set_control|slider_goboshake|({channel_10}-71)$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_10} &gt; 79) and ({channel_10} &lt; 88)|
  !set_control|drop_gobo|40$
  !set_control|slider_goboshake|({channel_10}-79)$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_10} &gt; 87) and ({channel_10} &lt; 96)|
  !set_control|drop_gobo|32$
  !set_control|slider_goboshake|({channel_10}-87)$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_10} &gt; 95) and ({channel_10} &lt; 104)|
  !set_control|drop_gobo|24$
  !set_control|slider_goboshake|({channel_10}-95)$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_10} &gt; 103) and ({channel_10} &lt; 112)|
  !set_control|drop_gobo|16$
  !set_control|slider_goboshake|({channel_10}-103)$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_10} &gt; 111) and ({channel_10} &lt; 120)|
  !set_control|drop_gobo|8$
  !set_control|slider_goboshake|({channel_10}-111)$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_10} &gt; 119) and ({channel_10} &lt; 128)|
  !set_control|drop_gobo|0$
  !set_control|slider_goboshake|0$
  !set_control|switch_gobogradient|0$
  !set_control|slider_gobogradient|{slider_gobogradient}$
 $

 !if|({channel_10} &gt; 127) and ({channel_10} &lt; 256)|
  !set_control|drop_gobo|{drop_gobo}$
  !set_control|slider_goboshake|{slider_goboshake}$
  !set_control|switch_gobogradient|1$
  !set_control|slider_gobogradient|({channel_10}-128)$
 $
$

!if|({channel_8} &gt; 0) and ({channel_10} &gt;0)|
 !set_control|drop_gobo|{drop_gobo}$
 !set_control|slider_goboshake|{slider_goboshake}$
 !set_control|switch_gobogradient|{switch_gobogradient}$
 !set_control|slider_gobogradient|{slider_gobogradient}$
$

!if|({channel_8} = 0) and ({channel_10} =0)|
 !set_control|options_gobowheel|0$
 !set_control|drop_gobo|0$
 !set_control|switch_gobogradient|0$
 !set_control|slider_gobogradient|{slider_gobogradient}$
$</procedure>
		<procedure name="SetGoboRot">!if|{options_goborot}|eq|0|

 !set_channel|9|({slider_rot}/167*63)$

$

!if|{options_goborot}|eq|1|

 !set_channel|9|(64+{slider_rot})$

$

!if|{options_goborot}|eq|2|

 !set_channel|9|(232+{slider_rot}/167*23)$

$</procedure>
		<procedure name="SetGoboRotStop">!if|{options_goborot}|eq|1|
 !set_control|slider_rot|84$
$</procedure>
		<procedure name="GetGoboRot">!if|({channel_9} &gt; -1) and ({channel_9} &lt; 64)|
  !set_control|options_goborot|0$
  !set_control|slider_rot|({channel_9}/63*167)$
$

!if|({channel_9} &gt; 63) and ({channel_9} &lt; 232)|
  !set_control|options_goborot|1$
  !set_control|slider_rot|({channel_9}-64)$
$

!if|({channel_9} &gt; 231) and ({channel_9} &lt; 256)|
  !set_control|options_goborot|2$
  !set_control|slider_rot|({channel_9}/23*167)$
$

</procedure>
		<procedure name="SetPrism">!if|({switch_prism1} = 0) and ({switch_prism2} = 0)|
  !set_channel|11|0$
$

!if|({switch_prism1} = 1) and ({switch_prism2} = 0)|
  !if|{slider_prism}|lt|59|
    !set_channel|11|(7+{slider_prism})$
  $
  !if|{slider_prism}|eq|59|
    !set_channel|11|124$
  $
  !if|{slider_prism}|gt|59|
    !set_channel|11|(6+{slider_prism})$
  $
$

!if|({switch_prism1} = 0) and ({switch_prism2} = 1)|
  !if|{slider_prism}|lt|59|
    !set_channel|11|(135+{slider_prism})$
  $
  !if|{slider_prism}|eq|59|
    !set_channel|11|252$
  $
  !if|{slider_prism}|gt|59|
    !set_channel|11|(134+{slider_prism})$
  $
$

!if|({switch_prism1} = 1) and ({switch_prism2} = 1)|
  !set_control|switch_prism2|0$
  !set_control|switch_prism1|0$
$</procedure>
		<procedure name="SetPrismStop">!set_control|slider_prism|59$</procedure>
		<procedure name="GetPrism">!if|({channel_11} &gt; -1) and ({channel_11} &lt; 4)|
  !set_control|switch_prism1|0$
  !set_control|switch_prism2|0$
  !set_control|slider_prism|{slider_prism}$
$

!if|({channel_11} &gt; 3) and ({channel_11} &lt; 7)|
  !set_control|switch_prism1|1$
  !set_control|switch_prism2|0$
  !set_control|slider_prism|59$
$

!if|({channel_11} &gt; 6) and ({channel_11} &lt; 66)|
  !set_control|switch_prism1|1$
  !set_control|switch_prism2|0$
  !set_control|slider_prism|({channel_11}-7)$
$

!if|({channel_11} &gt; 65) and ({channel_11} &lt; 124)|
  !set_control|switch_prism1|1$
  !set_control|switch_prism2|0$
  !set_control|slider_prism|({channel_11}-6)$
$

!if|({channel_11} &gt; 123) and ({channel_11} &lt; 128)|
  !set_control|switch_prism1|1$
  !set_control|switch_prism2|0$
  !set_control|slider_prism|59$
$

!if|({channel_11} &gt; 127) and ({channel_11} &lt; 132)|
  !set_control|switch_prism1|0$
  !set_control|switch_prism2|0$
  !set_control|slider_prism|{slider_prism}$
$

!if|({channel_11} &gt; 131) and ({channel_11} &lt; 135)|
  !set_control|switch_prism1|0$
  !set_control|switch_prism2|1$
  !set_control|slider_prism|59$
$

!if|({channel_11} &gt; 134) and ({channel_11} &lt; 194)|
  !set_control|switch_prism1|0$
  !set_control|switch_prism2|1$
  !set_control|slider_prism|({channel_11}-135)$
$

!if|({channel_11} &gt; 193) and ({channel_11} &lt; 252)|
  !set_control|switch_prism1|0$
  !set_control|switch_prism2|1$
  !set_control|slider_prism|({channel_11}-134)$
$

!if|({channel_11} &gt; 251) and ({channel_11} &lt; 256)|
  !set_control|switch_prism1|0$
  !set_control|switch_prism2|1$
  !set_control|slider_prism|59$
$
</procedure>
		<procedure name="SetFunctions">!if|{switch_go}|eq|0|
  !set_channel|14|{drop_blackout}$
$

!if|{switch_go}|eq|1|
  !set_channel|14|{drop_reset}$
$</procedure>
		<procedure name="GetFunctions">!if|({channel_14} &gt; -1) and ({channel_14} &lt; 136)|
  !set_control|switch_go|0$
  !set_control|drop_blackout|{channel_14}$
  !set_control|drop_reset|{drop_reset}$
$

!if|({channel_14} &gt; 55) and ({channel_14} &lt; 96)|
  !set_control|switch_go|0$
  !set_control|drop_blackout|0$
  !set_control|drop_reset|96$
$

!if|({channel_14} &gt; 95) and ({channel_14} &lt; 128)|
  !set_control|switch_go|1$
  !set_control|drop_blackout|{drop_blackout}$
  !set_control|drop_reset|{channel_14}$
$

!if|({channel_14} &gt; 127) and ({channel_14} &lt; 136)|
  !set_control|switch_go|0$
  !set_control|drop_blackout|0$
  !set_control|drop_reset|96$
$

!if|({channel_14} &gt; 135) and ({channel_14} &lt; 160)|
  !set_control|switch_go|1$
  !set_control|drop_blackout|{drop_blackout}$
  !set_control|drop_reset|{channel_14}$
$

!if|({channel_14} &gt; 159) and ({channel_14} &lt; 156)|
  !set_control|switch_go|0$
  !set_control|drop_blackout|0$
  !set_control|drop_reset|96$
$
</procedure>
		<procedure name="SetPrograms">!if|{switch_program}|eq|0|
  !set_channel|15|{drop_program}$
$

!if|{switch_program}|eq|1|
  !if|{drop_program}|lt|8|
    !set_channel|15|0$
  $

  !if|{drop_program}|gt|7|
    !set_channel|15|(128+{drop_program})$
  $
$</procedure>
		<procedure name="GetPrograms">!if|({channel_15} &gt; -1) and ({channel_15} &lt; 136)|
  !set_control|switch_program|0$
  !set_control|drop_program|{channel_15}$
$

!if|({channel_15} &gt; 135) and ({channel_15} &lt; 256)|
  !set_control|switch_program|1$
  !set_control|drop_program|({channel_15}-128)$
$
</procedure>
		<procedure name="SetReset">!set_channel|0|128$
!set_channel|1|128$
!set_channel|2|128$
!set_channel|3|128$
!set_channel|4|0$
!set_channel|5|0$
!set_channel|6|8$
!set_channel|7|0$
!set_channel|8|0$
!set_channel|9|0$
!set_channel|10|0$
!set_channel|11|0$
!set_channel|12|0$
!set_channel|13|0$
!set_channel|14|0$
!set_channel|15|0$
!set_control|slider_shutter|0$
!set_control|options_shutter|1$
!set_control|drop_color|0$
!set_control|slider_halfcolor|0$
!set_control|switch_colorgradient|0$
!set_control|slider_colorgradient|33$
!set_control|switch_prism1|0$
!set_control|switch_prism2|0$
!set_control|slider_prism|59$
!set_control|options_gobowheel|0$
!set_control|drop_gobo|0$
!set_control|slider_goboshake|0$
!set_control|switch_gobogradient|0$
!set_control|slider_gobogradient|64$
!set_control|options_goborot|0$
!set_control|slider_rot|84$
!set_control|switch_program|0$
!set_control|drop_program|0$
!set_control|drop_blackout|0$
!set_control|drop_reset|96$
!set_control|switch_go|0$
</procedure>
	</code>
</device>