<?xml version="1.0"?>
<device image="Mh.gif" initsequence="set 0 128; set 2 128; set 8 255; set 9 255; set 12 1">
	<information>
		<author>Dennis Behrens</author>
		<name>YPOC 250 Basic</name>
		<panarea degree="530"/>
		<tiltarea degree="285"/>
		<vendor>GLP</vendor>
	<version>1</version></information>
	<channels>
		<function channel="0" minvalue="0" maxvalue="255" name="PAN-grob" fade="yes" type="pan"/>
		<function channel="1" minvalue="0" maxvalue="255" name="PAN-fein" fade="yes" type="panfine"/>
		<function channel="2" minvalue="0" maxvalue="255" name="TILT-grob" fade="yes" type="tilt"/>
		<function channel="3" minvalue="0" maxvalue="255" name="TILT-fein" fade="yes" type="tiltfine"/>
		<function channel="4" minvalue="0" maxvalue="255" name="Farbe" fade="no" type="color" action="GetColor"/>
		<function channel="5" minvalue="0" maxvalue="255" name="Gobo 1" fade="no" type="gobo" action="GetGobo1"/>
		<function channel="6" minvalue="0" maxvalue="255" name="Shutter" fade="no" action="GetShutter"/>
		<function channel="7" minvalue="0" maxvalue="255" name="Dimmer" fade="yes" type="dimmer"/>
		<function channel="8" minvalue="0" maxvalue="255" name="Spezial" fade="no" action="GetSpecial"/>
		<function channel="9" minvalue="0" maxvalue="255" name="Movement" fade="no"/>
		<function channel="10" minvalue="0" maxvalue="255" name="Speed" fade="no"/>
		<function channel="11" minvalue="0" maxvalue="255" name="Laser" fade="no"/>
	</channels>
	<form width="462" height="379">
		<deviceimage top="8" left="16" width="33" height="33"/>
		<devicename top="8" left="56" width="129" height="17"/>
		<deviceadress top="24" left="56" width="129" height="17"/>
		<!--Color-->
		<label top="16" left="264" caption="Color"/>
		<dropdown top="16" left="312" width="135" name="color_color" action="SetColor">
			<item caption="White" value="0" color="#ffffff"/>
			<item caption="White / Brilliant Blue" value="2"/>
			<item caption="Brilliant Blue" value="4"/>
			<item caption="Brilliant Blue / Blue" value="6"/>
			<item caption="Blue" value="8" color="#0000ff"/>
			<item caption="Blue / Blue Purple" value="10"/>
			<item caption="Blue Purple" value="12"/>
			<item caption="Blue Purple / Magenta" value="14"/>
			<item caption="Magenta" value="16" color="#ff0080"/>
			<item caption="Magenta / Pink" value="19"/>
			<item caption="Pink" value="20" color="#ff00ff"/>
			<item caption="Pink / Orange" value="22"/>
			<item caption="Orange" value="24" color="#ff8000"/>
			<item caption="Orange / Canary" value="26"/>
			<item caption="Canary" value="28" color="#ffff00"/>
			<item caption="Canary / Italian Blue" value="30"/>
			<item caption="Italian Blue" value="32"/>
			<item caption="Italian Blue / Turquoise" value="34"/>
			<item caption="Turquoise" value="36" color="#00ffff"/>
			<item caption="Turquoise / Jade" value="38"/>
			<item caption="Jade" value="40"/>
			<item caption="Jade / Red" value="42"/>
			<item caption="Red" value="44" color="#ff0000"/>
			<item caption="Wechsel Stop" value="128"/>
			<item caption="Wechsel UZ" value="130"/>
			<item caption="Wechsel GUZ" value="192"/>
			<item caption="Audiowechsel langsam" value="254"/>
			<item caption="Audiowechsel schnell" value="255"/>
		</dropdown>
		<label top="48" left="264" caption="Speed"/>
		<slider top="48" left="312" height="25" width="135" startvalue="0" endvalue="61" tickfreq="6" smallchange="6" largechange="12" action="SetColor" name="color_speed"/>
		<label top="72" left="264" caption="Wechsel"/>
		<options top="72" left="320" action="SetColor" name="color_changespeed">
			<option top="0" left="0" caption="Schnell" value="1"/>
			<option top="0" left="60" caption="Langsam" value="0"/>
		</options>
		<line x1="256" y1="104" x2="454" y2="104"/>
		<!--Gobo 1-->
		<label top="120" left="264" caption="Gobo 1"/>
		<dropdown top="120" left="312" width="135" name="gobo1_gobo" action="SetGobo1">
			<item caption="Offen" value="0"/>
			<item caption="Gobo 2" value="8"/>
			<item caption="Gobo 3" value="16"/>
			<item caption="Gobo 4" value="24"/>
			<item caption="Gobo 5" value="32"/>
			<item caption="Gobo 6" value="40"/>
			<item caption="Gobo 7" value="48"/>
			<item caption="Gobo 8" value="56"/>
		</dropdown>
		<label top="152" left="264" caption="Wechsel"/>
		<line x1="256" y1="176" x2="451" y2="176"/>
		<!--Gobo 2-->
		<line x1="256" y1="248" x2="452" y2="248"/>
		<!--Dimmer-->
		<label top="288" left="16" caption="Dimmer"/>
		<slider top="288" left="56" height="25" width="170" startvalue="0" endvalue="255" tickfreq="6" smallchange="6" largechange="12" channel="7" name="dimmer_dimmer"/>
		<line x1="8" y1="272" x2="255" y2="272"/>
		<!--Focus-->
		<line x1="8" y1="376" x2="255" y2="376"/>
		<!--Iris-->
		<!--Shutter-->
		<label top="184" left="264" caption="Shutter"/>
		<dropdown top="184" left="312" width="135" name="shutter_state" action="SetShutter">
			<item caption="Gesschlossen" value="0"/>
			<item caption="Random Strobe" value="16"/>
			<item caption="Strobe Pulse langsam" value="32"/>
			<item caption="Strobe Pulse mittel" value="39"/>
			<item caption="Strobe Pulse schnell" value="47"/>
			<item caption="Audioshutter" value="48"/>
			<item caption="Strobeeffekt" value="64"/>
			<item caption="Offen" value="255"/>
		</dropdown>
		<label top="216" left="264" caption="Speed"/>
		<slider top="216" left="312" height="25" width="135" startvalue="0" endvalue="175" tickfreq="10" smallchange="6" largechange="12" action="SetShutter" name="shutter_speed"/>
		<line x1="256" y1="320" x2="452" y2="320"/>
		<!--Prisma-->
		<!--Special-->
		<label top="256" left="264" caption="Special"/>
		<dropdown top="256" left="312" width="135" name="special_state" action="SetSpecial">
			<item caption="Off" value="0"/>
			<item caption="GoboShake +/-10" value="16"/>
			<item caption="GoboShake +/-20" value="32"/>
			<item caption="GoboShake +/-30" value="48"/>
			<item caption="FarbChaser C/C+1" value="64"/>
			<item caption="FarbChaser C/C+2" value="80"/>
			<item caption="Audio Pan/Tilt slow" value="96"/>
			<item caption="Audio Pan/Tilt fast" value="112"/>
			<item caption="Laser Random" value="128"/>
			<item caption="Laser Audio" value="144"/>
			<item caption="Laser blinken" value="160"/>
			<item caption="Laser blitzen" value="176"/>
			<item caption="Laser On" value="192"/>
		</dropdown>
		<label top="296" left="264" caption="Speed"/>
		<slider top="296" left="312" height="25" width="135" startvalue="0" endvalue="15" tickfreq="1" smallchange="1" largechange="5" action="SetSpecial" name="special_speed"/>
		<!--Buttons-->
		<command top="328" left="24" width="84" caption="Reset" clicksequence="save 8;set 8 255;hold 3000;restore 8" height="25" color="#ff0000"/>
		<command top="328" left="152" width="84" caption="Lamp off" clicksequence="save 8;set 8 230;hold 3000;restore 8" height="25" icon="lampoff.gif" color="#ff8080"/>
		<position top="56" left="12" height="212" width="212"/>
		<line x1="256" y1="8" x2="256" y2="378"/>
		<line x1="8" y1="320" x2="255" y2="320"/>
		<line x1="16" y1="320" x2="231" y2="320"/>
		<options top="152" left="320" action="SetGobo1" name="gobo1_changespeed">
			<option top="0" left="0" caption="Schnell" value="1"/>
			<option top="0" left="60" caption="Langsam" value="0"/>
		</options>
	</form>
	<code>
		<procedure name="INITCONTROLS">
   !call|GetColor$
   !call|GetGobo1$
   !call|GetShutter$
   !call|GetSpecial$

		</procedure>
		<procedure name="SetGobo1">
  !if|{gobo1_gobo}|lt|65|
   !if|{gobo1_changespeed}|eq|1|
    !set_channel|5|{gobo1_gobo}$
   $
   !if|{gobo1_changespeed}|eq|0|
    !set_channel|5|({gobo1_gobo} + 64)$
   $
  $

  !if|{gobo1_gobo}|eq|128|
   !set_channel|5|{gobo1_gobo}$
  $

  !if|{gobo1_gobo}|eq|130|
   !set_channel|5|({gobo1_gobo} + {gobo1_speed})$
  $

  !if|{gobo1_gobo}|eq|192|
   !set_channel|5|({gobo1_gobo} + {gobo1_speed})$
  $

  !if|{gobo1_gobo}|gt|253|
   !set_channel|5|{gobo1_gobo}$
  $
		</procedure>
		<procedure name="GetGobo1">
   !if|{channel_5}|lt|64|
    !set_control|gobo1_gobo|{channel_5}$
    !set_control|gobo1_changespeed|1$
   $

   !if|({channel_5} &gt; 63) and ({channel_5} &lt; 121)|
    !set_control|gobo1_gobo|({channel_5} - 64)$
    !set_control|gobo1_changespeed|0$
   $

   !if|{channel_5}|eq|128|
    !set_control|gobo1_gobo|{channel_5}$
   $

   !if|{channel_5}|gt|253|
    !set_control|gobo1_gobo|{channel_5}$
   $

   !if|({channel_5} &gt; 129) and ({channel_5} &lt; 192)|
    !set_control|gobo1_gobo|130$
    !set_control|gobo1_speed|({channel_5} - 130)$
   $

   !if|({channel_5} &gt; 191) and ({channel_4} &lt; 254)|
    !set_control|gobo1_gobo|192$
    !set_control|gobo1_speed|({channel_5} - 192)$
   $
		</procedure>
		<procedure name="SetColor">
  !if|{color_color}|lt|45|
   !if|{color_changespeed}|eq|1|
    !set_channel|4|{color_color}$
    $
   !if|{color_changespeed}|eq|0|
    !set_channel|4|({color_color} + 64)$
   $
  $

   !if|{color_color}|eq|130|
   !set_channel|4|({color_color} + {color_speed})$
   $

   !if|{color_color}|eq|192|
   !set_channel|4|({color_color} + {color_speed})$
   $

   !if|{color_color}|eq|128|
   !set_channel|4|{color_color}$
   $

   !if|{color_color}|gt|253|
   !set_channel|4|{color_color}$
   $
		</procedure>
		<procedure name="GetColor">
   !if|{channel_4}|lt|45|
    !set_control|color_color|{channel_4}$
    !set_control|color_changespeed|1$
   $

   !if|({channel_4} &gt; 45) and ({channel_4} &lt; 111)|
    !set_control|color_color|({channel_4} - 64)$
    !set_control|color_changespeed|0$
   $

   !if|{channel_4}|eq|128|
    !set_control|color_color|{channel_4}$
   $

   !if|{channel_4}|gt|253|
    !set_control|color_color|{channel_4}$
   $

   !if|({channel_4} &gt; 129) and ({channel_4} &lt; 192)|
    !set_control|color_color|130$
   $

   !if|({channel_4} &gt; 191) and ({channel_4} &lt; 254)|
    !set_control|color_color|192$
   $
		</procedure>
		<procedure name="SetShutter">
   !if|{shutter_state}|lt|64|
    !set_channel|6|{shutter_state}$
   $
   !if|{shutter_state}|eq|64|
    !set_channel|6|({shutter_state} + {shutter_speed})$
   $
   !if|{shutter_state}|gt|240|
    !set_channel|6|{shutter_state}$
   $
		</procedure>
		<procedure name="GetShutter">
   !if|{channel_6}|lt|64|
    !set_control|shutter_state|{channel_6}$
   $
   !if|({channel_6} &gt; 63) and ({channel_6} &lt; 240)|
    !set_control|shutter_state|64$
    !set_control|shutter_speed|({channel_6} - 64)$
   $   
   !if|{channel_66}|gt|239|
    !set_control|shutter_state|255$
   $
		</procedure>
		<procedure name="SetSpecial">
   !if|{special_state}|lt|96|
    !set_channel|8|({special_state} + {special_speed})$
   $
   !if|{special_state}|eq|96|
    !set_channel|8|{special_state}$
   $
   !if|{special_state}|eq|112|
    !set_channel|8|{special_state}$
   $
   !if|{special_state}|eq|128|
    !set_channel|8|{special_state}$
   $
   !if|{special_state}|eq|144|
    !set_channel|8|{special_state}$
   $
   !if|{special_state}|eq|192|
    !set_channel|8|{special_state}$
   $
   !if|({special_state} &gt; 159) and ({special_state} &lt; 192)|
    !set_channel|8|({special_state} + {special_speed})$
   $
		</procedure>
		<procedure name="GetSpecial">
   !if|({channel_8} &gt; -1) and ({channel_8} &lt; 16)|
    !set_control|special_state|0$
   $
   !if|({channel_8} &gt; 15) and ({channel_8} &lt; 32)|
    !set_control|special_state|16$
    !set_control|special_speed|({channel_8} - 16)$
   $
   !if|({channel_8} &gt; 31) and ({channel_8} &lt; 48)|
    !set_control|special_state|32$
    !set_control|special_speed|({channel_8} - 32)$
   $
   !if|({channel_8} &gt; 47) and ({channel_8} &lt; 64)|
    !set_control|special_state|48$
    !set_control|special_speed|({channel_8} - 48)$
   $
   !if|({channel_8} &gt; 63) and ({channel_8} &lt; 80)|
    !set_control|special_state|64$
    !set_control|special_speed|({channel_8} - 64)$
   $
   !if|({channel_8} &gt; 79) and ({channel_8} &lt; 96)|
    !set_control|special_state|80$
    !set_control|special_speed|({channel_8} - 80)$
   $
   !if|({channel_8} &gt; 95) and ({channel_8} &lt; 112)|
    !set_control|special_state|96$
   $
   !if|({channel_8} &gt; 111) and ({channel_8} &lt; 128)|
    !set_control|special_state|112$
   $
   !if|({channel_8} &gt; 159) and ({channel_8} &lt; 176)|
    !set_control|special_state|160$
    !set_control|special_speed|({channel_8} - 160)$
   $
   !if|({channel_8} &gt; 175) and ({channel_8} &lt; 192)|
    !set_control|special_state|176$
    !set_control|special_speed|({channel_13} - 176)$
   $
   !if|({channel_8} &gt; 127) and ({channel_8} &lt; 144)|
    !set_control|special_state|128$
   $
   !if|({channel_8} &gt; 143) and ({channel_8} &lt; 160)|
    !set_control|special_state|144$
   $
   !if|({channel_8} &gt; 191) and ({channel_8} &lt; 208)|
    !set_control|special_state|192$
   $
		</procedure>
	</code>
</device>
