<?xml version="1.0" encoding="ISO-8859-1"?>
<device image="Wash.gif" initsequence="set 0 170; set 3 170; set 2 85; set 5 170; set 1 255; set 4 255; set 6 0; set 16 128; set 17 0; set 18 128; set 19 0; set 20 1; set 8 255;">
  <information>
    <name>Robohead X-3 LED mit FINE-Modus (21 Kanäle)</name>
    <author>Simon Edelmann</author>
    <vendor>Stairville</vendor>
  </information>
  <channels>
    <function channel="0" minvalue="0" maxvalue="255" name="PAN 1" fade="no" />
    <function channel="1" minvalue="0" maxvalue="255" name="TILT" fade="yes" action="GetThirdAx" />
    <function channel="2" minvalue="0" maxvalue="255" name="PAN 2" fade="no" />
    <function channel="3" minvalue="0" maxvalue="255" name="EPAN 1" fade="no" />
    <function channel="4" minvalue="0" maxvalue="255" name="ETILT" fade="yes" action="GetThirdAx" />
    <function channel="5" minvalue="0" maxvalue="255" name="EPAN 2" fade="no" />
    <function channel="6" minvalue="0" maxvalue="255" name="MOVE SPEED" fade="no" />
    <function channel="7" minvalue="0" maxvalue="255" name="Farbrad" fade="no" type="color" action="GetColor" />
    <function channel="8" minvalue="0" maxvalue="255" name="Shutter" fade="no" type="dimmer" action="GetShutter" />
    <function channel="9" minvalue="0" maxvalue="255" name="Dimmer" fade="yes" type="dimmer" />
    <function channel="10" minvalue="0" maxvalue="255" name="Goborad / Shake" fade="no" type="gobo" action="GetGobo" />
    <function channel="11" minvalue="0" maxvalue="255" name="Goborotation" fade="no" action="GetGoboRot" />
    <function channel="12" minvalue="0" maxvalue="255" name="Funktion" fade="no" />
    <function channel="13" minvalue="0" maxvalue="255" name="Programme" fade="no" action="GetProgram" />
    <function channel="14" minvalue="0" maxvalue="255" name="Prisma" fade="no" action="GetPrisma" />
    <function channel="15" minvalue="0" maxvalue="255" name="Fokus" fade="no" />
    <function channel="16" minvalue="0" maxvalue="255" name="VPAN" fade="yes" type="pan" action="SetPan" />
    <function channel="17" minvalue="0" maxvalue="255" name="VEPAN" fade="yes" type="panfine" action="SetPan" />
    <function channel="18" minvalue="0" maxvalue="255" name="VTILT" fade="yes" type="tilt" action="SetTilt" />
    <function channel="19" minvalue="0" maxvalue="255" name="VETILT" fade="yes" type="tiltfine" action="SetTilt" />
    <function channel="20" minvalue="0" maxvalue="1" name="VFINE" fade="no" />
  </channels>
  <form width="898" height="440">
    <deviceimage top="8" left="8" width="60" height="80" />
    <devicename top="14" left="84" />
    <deviceadress top="34" left="86" />
    <position top="40" left="508" height="360" width="360" />
    <onoff top="16" left="512" width="136" height="22" onvalue="1" offvalue="0" caption="FineMode An / Aus" name="FineMode" action="PressFineMode" />
    <slider top="408" left="512" height="33" width="353" startvalue="0" endvalue="65535" name="thirdax" action="SetThirdAx" largechange="5600" smallchange="120" tickfreq="10922" />
    <command top="16" left="760" width="88" height="22" caption="Aktualisieren" name="aktpos" action="GetAktPos" />
    <slider top="384" left="208" height="33" width="265" startvalue="0" endvalue="255" name="ptspeed" channel="6" />
    <label top="368" left="208" caption="Bewegungsgeschwindigkeit (Schnell -&gt; Langsam)" />
    <slider top="72" left="88" height="41" width="385" startvalue="0" endvalue="255" name="dimmer" channel="9" />
    <line y1="16" x1="488" y2="424" x2="488" />
    <dropdown top="128" left="24" width="100" name="shuttermode" action="SetShutter">
      <item caption="Geschlossen" value="0" />
      <item caption="Offen" value="1" />
      <item caption="Strobe" value="2" />
    </dropdown>
    <label top="112" left="24" caption="Shutter" />
    <slider top="128" left="136" height="33" width="329" startvalue="8" endvalue="215" name="strobespeed" action="SetStrobe" />
    <label top="112" left="136" caption="Strobe-Geschwindigkeit (Langsam -&gt; Schnell)" />
    <label top="368" left="24" caption="Programme / Sound-Steuerung" />
    <dropdown top="384" left="24" width="145" name="program" action="SetProgram">
      <item caption="Aus" value="0" />
      <item caption="Programm 1" value="1" />
      <item caption="Programm 2" value="2" />
      <item caption="Programm 3" value="3" />
      <item caption="Programm 4" value="4" />
      <item caption="Programm 5" value="5" />
      <item caption="Programm 6" value="6" />
      <item caption="Programm 7" value="7" />
      <item caption="Programm 8" value="8" />
      <item caption="Sound-Steuerung 1" value="9" />
      <item caption="Sound-Steuerung 2" value="10" />
      <item caption="Sound-Steuerung 3" value="11" />
      <item caption="Sound-Steuerung 4" value="12" />
      <item caption="Sound-Steuerung 5" value="13" />
      <item caption="Sound-Steuerung 6" value="14" />
      <item caption="Sound-Steuerung 7" value="15" />
      <item caption="Sound-Steuerung 8" value="16" />
    </dropdown>
    <label top="168" left="24" caption="Farben" />
    <dropdown top="184" left="24" width="144" name="color" action="SetColor">
      <item caption="Weiß" value="0" color="#ffffff" />
      <item caption="Dunkelblau" value="1" color="#000080" />
      <item caption="Gelb" value="2" color="#ffff00" />
      <item caption="Rosa" value="3" color="#ff80ff" />
      <item caption="Grün" value="4" color="#00ff00" />
      <item caption="Peachblow" value="5" color="#ff00ff" />
      <item caption="Blau" value="6" color="#0080c0" />
      <item caption="Orange" value="7" color="#ff8000" />
      <item caption="Weiß + Dunkelblau" value="8" icon="blue-white.GIF" />
      <item caption="Dunkelblau + Gelb" value="9" icon="yellow-blue.GIF" />
      <item caption="Gelb + Rosa" value="10" icon="yellow-pink.GIF" />
      <item caption="Rosa + Grün" value="11" />
      <item caption="Grün + Peachblow" value="12" />
      <item caption="Peachblow + Blau" value="13" icon="pink-cyan.GIF" />
      <item caption="Blau + Orange" value="14" />
      <item caption="Orange + Weiß" value="15" />
      <item caption="Regenbogeneffekt" value="16" />
    </dropdown>
    <dropdown top="240" left="24" width="144" name="gobo" action="SetGobo">
      <item caption="Offen" value="0" icon="sho9.gif" />
      <item caption="Punkte im Kreis" value="1" icon="holes_circle.gif" />
      <item caption="Gobo 1 Shake" value="14" />
      <item caption="Frost" value="2" icon="gobo4.gif" />
      <item caption="Gobo 2 Shake" value="13" />
      <item caption="Spirale" value="3" icon="PAT252Gobo15.gif" />
      <item caption="Gobo 3 Shake" value="12" />
      <item caption="Kreise" value="4" icon="gobo2.gif" />
      <item caption="Gobo 4 Shake" value="11" />
      <item caption="Blume" value="5" icon="Custom Gobo 052.GIF" />
      <item caption="Gobo 5 Shake" value="10" />
      <item caption="Muster" value="6" icon="coemar GO25.gif" />
      <item caption="Gobo 6 Shake" value="9" />
      <item caption="Schnecke" value="7" icon="coemar GO38.gif" />
      <item caption="Gobo 7 Shake" value="8" />
      <item caption="Regenbogeneffekt" value="15" />
    </dropdown>
    <dropdown top="48" left="176" width="209" name="funktion" action="SetFunc">
      <item caption="Einstellungen" value="0" />
      <item caption="Blackout bei MH-Bewegung" value="1" />
      <item caption="Kein Blackout bei MG-Bewegung" value="2" />
      <item caption="Blackout bei Farbwechsel" value="3" />
      <item caption="Kein Blackout bei Farbwechsel" value="4" />
      <item caption="Blackout bei Gobo-Wechsel" value="5" />
      <item caption="Kein Blackout bei Gobo-Wechsel" value="6" />
      <item caption="Blackout bei Bewegung" value="7" />
      <item caption="Achsen zurücksetzen" value="8" />
      <item caption="Farbrad zurücksetzen" value="9" />
      <item caption="Gobo-Rad zurücksetzen" value="10" />
      <item caption="Gobo-Rotation zurücksetzen" value="11" />
      <item caption="Prisma zurücksetzen" value="12" />
      <item caption="Fokus zurücksetzen" value="13" />
      <item caption="Alles zurücksetzen" value="14" />
    </dropdown>
    <slider top="240" left="184" height="33" width="281" startvalue="0" endvalue="127" name="goborainbow" action="SetGoboRainbow" largechange="10" smallchange="1" tickfreq="64" />
    <label top="224" left="184" caption="Regenbogeneffekt / Shake (Richtung + Geschwindigkeit)" />
    <label top="224" left="24" caption="Gobos" />
    <label top="168" left="184" caption="Regenbogeneffekt (Richtung + Geschwindigkeit)" />
    <slider top="184" left="184" height="33" width="281" startvalue="0" endvalue="127" name="rainbow" action="SetRainbow" largechange="10" smallchange="1" tickfreq="64" />
    <slider top="288" left="32" height="33" width="265" startvalue="0" endvalue="224" name="goborot" action="SetGoboRot" tickfreq="112" largechange="10" smallchange="5" />
    <label top="272" left="24" caption="Goborotation / JoJo-Effekt-Geschwindigkeit" />
    <command top="288" left="392" width="80" height="22" caption="Rotation aus" name="bgoborot" clicksequence="set 11 0;" />
    <onoff top="288" left="304" width="80" height="22" onvalue="1" offvalue="0" caption="JoJo-Effekt" name="jojo" onsequence="save 0;set 0 255" action="SetJojo" />
    <label top="320" left="24" caption="Fokus" />
    <slider top="336" left="32" height="33" width="345" startvalue="0" endvalue="255" name="fokus" channel="15" />
    <onoff top="328" left="392" width="80" height="30" onvalue="1" offvalue="0" caption="Prisma" name="prisma" action="SetPrisma" />
    <label top="32" left="176" caption="Einstellungen (Achtung! Immer 2x bestätigen!)" />
    <command top="48" left="392" width="80" height="22" caption="Bestätigen!" name="bfunktion" action="SetBFunc" upsequence="set 12 0;" />
  </form>
  <code>
    <procedure name="SetPan">!if|{channel_20} = 1|
  !set_channel|0|(({channel_16}/3)+128)$
  !set_channel|3|(({channel_17}/3)+(({channel_16} mod 3)*85))$
$
!if|{channel_20} = 0|
  !set_channel|0|{channel_16}$
  !set_channel|3|{channel_17}$
$</procedure>
    <procedure name="SetTilt">!if|{channel_20} = 1|
  !set_channel|2|({channel_18}/3)$
  !set_channel|5|(({channel_19}/3)+(({channel_18} mod 3)*85))$
$
!if|{channel_20} = 0|
  !set_channel|2|{channel_18}$
  !set_channel|5|{channel_19}$
$</procedure>
    <procedure name="PressFineMode">!if|{FineMode} = 1|
  !set_channel|20|1$
  !set_channel|0|170$
  !set_channel|2|85$
  !set_channel|3|170$
  !set_channel|5|170$
  !set_channel|16|128$
  !set_channel|17|0$
  !set_channel|18|128$
  !set_channel|19|0$
$
!if|{FineMode} = 0|
  !set_channel|20|0$
  !set_channel|0|0$
  !set_channel|2|0$
  !set_channel|3|0$
  !set_channel|5|0$
  !set_channel|16|0$
  !set_channel|17|0$
  !set_channel|18|0$
  !set_channel|19|0$
$</procedure>
    <procedure name="SetThirdAx">!set_channel|1|({thirdax}/256)$
!set_channel|4|({thirdax} mod 256)$</procedure>
    <procedure name="GetAktPos">!if|{channel_20} = 1|
  !if|1&gt;((({channel_0}-128)*3)+((({channel_3}*3)/256))|
    !set_channel|16|0$
    !set_channel|17|0$
  $
  !if|((({channel_0}-128)*3)+((({channel_3}*3)/256))&gt;0) and (256&gt;((({channel_0}-128)*3)+(({channel_3}*3)/256)))|
    !set_channel|16|((({channel_0}-128)*3)+((({channel_3}*3)/256))$
    !set_channel|17|(({channel_3}*3) mod 256)$
  $
  !if|((({channel_0}-128)*3)+((({channel_3}*3)/256))&gt;255|
    !set_channel|16|255$
    !set_channel|17|255$
  $
  !if|256&gt;(({channel_2}*3)+(({channel_5}*3)/256))|
    !set_channel|18|(({channel_2}*3)+((({channel_5}*3)/256))$
    !set_channel|19|(({channel_5}*3) mod 256)$
  $
  !if|(({channel_2}*3)+((({channel_5}*3)/256))&gt;255|
    !set_channel|18|255$
    !set_channel|19|255$
  $
$
!if|{channel_20} = 0|
  !set_channel|16|{channel_0}$
  !set_channel|17|{channel_3}$
  !set_channel|18|{channel_2}$
  !set_channel|19|{channel_5}$
$</procedure>
    <procedure name="GetThirdAx">!set_control|thirdax|(({channel_1}*256)+{channel_4})$</procedure>
    <procedure name="SetShutter">!if|{shuttermode}=0|!set_channel|8|0$$
!if|{shuttermode}=1|!set_channel|8|255$$
!if|{shuttermode}=2|!set_channel|8|8$$</procedure>
    <procedure name="SetStrobe">!if|({channel_8}&gt;7) and (216&gt;{channel_8})|!set_channel|8|{strobespeed}$$</procedure>
    <procedure name="GetShutter">!if|4&gt;{channel_8}|
  !set_control|shuttermode|0$
$
!if|({channel_8}&gt;3) and (8&gt;{channel_8})|
  !set_control|shuttermode|1$
$
!if|({channel_8}&gt;7) and (216&gt;{channel_8})|
  !set_control|shuttermode|2$
  !set_control|strobespeed|{channel_8}$
$
!if|{channel_8}&gt;215|
  !set_control|shuttermode|1$
$
</procedure>
    <procedure name="SetProgram">!if|{program}=0|!set_channel|13|0$$
!if|{program}=1|!set_channel|13|8$$
!if|{program}=2|!set_channel|13|24$$
!if|{program}=3|!set_channel|13|40$$
!if|{program}=4|!set_channel|13|56$$
!if|{program}=5|!set_channel|13|72$$
!if|{program}=6|!set_channel|13|88$$
!if|{program}=7|!set_channel|13|104$$
!if|{program}=8|!set_channel|13|120$$
!if|{program}=9|!set_channel|13|136$$
!if|{program}=10|!set_channel|13|152$$
!if|{program}=11|!set_channel|13|168$$
!if|{program}=12|!set_channel|13|184$$
!if|{program}=13|!set_channel|13|200$$
!if|{program}=14|!set_channel|13|216$$
!if|{program}=15|!set_channel|13|232$$
!if|{program}=16|!set_channel|13|248$$
</procedure>
    <procedure name="GetProgram">!if|8&gt;{channel_13}|
  !set_control|program|0$
$
!if|({channel_13}&gt;7) and (24&gt;{channel_13})|
  !set_control|program|1$
$
!if|({channel_13}&gt;23) and (40&gt;{channel_13})|
  !set_control|program|2$
$
!if|({channel_13}&gt;39) and (56&gt;{channel_13})|
  !set_control|program|3$
$
!if|({channel_13}&gt;55) and (72&gt;{channel_13})|
  !set_control|program|4$
$
!if|({channel_13}&gt;71) and (88&gt;{channel_13})|
  !set_control|program|5$
$
!if|({channel_13}&gt;87) and (104&gt;{channel_13})|
  !set_control|program|6$
$
!if|({channel_13}&gt;103) and (120&gt;{channel_13})|
  !set_control|program|7$
$
!if|({channel_13}&gt;119) and (136&gt;{channel_13})|
  !set_control|program|8$
$
!if|({channel_13}&gt;135) and (152&gt;{channel_13})|
  !set_control|program|9$
$
!if|({channel_13}&gt;151) and (168&gt;{channel_13})|
  !set_control|program|10$
$
!if|({channel_13}&gt;167) and (184&gt;{channel_13})|
  !set_control|program|11$
$
!if|({channel_13}&gt;183) and (200&gt;{channel_13})|
  !set_control|program|12$
$
!if|({channel_13}&gt;199) and (216&gt;{channel_13})|
  !set_control|program|13$
$
!if|({channel_13}&gt;215) and (232&gt;{channel_13})|
  !set_control|program|14$
$
!if|({channel_13}&gt;213) and (248&gt;{channel_13})|
  !set_control|program|15$
$
!if|{channel_13}&gt;247|
  !set_control|program|16$
$</procedure>
    <procedure name="SetColor">!if|{color}=0|!set_channel|7|0$$
!if|{color}=1|!set_channel|7|8$$
!if|{color}=2|!set_channel|7|16$$
!if|{color}=3|!set_channel|7|24$$
!if|{color}=4|!set_channel|7|32$$
!if|{color}=5|!set_channel|7|40$$
!if|{color}=6|!set_channel|7|48$$
!if|{color}=7|!set_channel|7|56$$
!if|{color}=8|!set_channel|7|64$$
!if|{color}=9|!set_channel|7|72$$
!if|{color}=10|!set_channel|7|80$$
!if|{color}=11|!set_channel|7|88$$
!if|{color}=12|!set_channel|7|96$$
!if|{color}=13|!set_channel|7|104$$
!if|{color}=14|!set_channel|7|112$$
!if|{color}=15|!set_channel|7|120$$
!if|{color}=16|!set_channel|7|128$$</procedure>
    <procedure name="GetColor">!if|8&gt;{channel_7}|
  !set_control|color|0$
$
!if|({channel_7}&gt;7) and (16&gt;{channel_7})|
  !set_control|color|1$
$
!if|({channel_7}&gt;15) and (24&gt;{channel_7})|
  !set_control|color|2$
$
!if|({channel_7}&gt;23) and (32&gt;{channel_7})|
  !set_control|color|3$
$
!if|({channel_7}&gt;31) and (40&gt;{channel_7})|
  !set_control|color|4$
$
!if|({channel_7}&gt;39) and (48&gt;{channel_7})|
  !set_control|color|5$
$
!if|({channel_7}&gt;47) and (56&gt;{channel_7})|
  !set_control|color|6$
$
!if|({channel_7}&gt;55) and (64&gt;{channel_7})|
  !set_control|color|7$
$
!if|({channel_7}&gt;63) and (72&gt;{channel_7})|
  !set_control|color|8$
$
!if|({channel_7}&gt;71) and (80&gt;{channel_7})|
  !set_control|color|9$
$
!if|({channel_7}&gt;79) and (88&gt;{channel_7})|
  !set_control|color|10$
$
!if|({channel_7}&gt;87) and (96&gt;{channel_7})|
  !set_control|color|11$
$
!if|({channel_7}&gt;95) and (104&gt;{channel_7})|
  !set_control|color|12$
$
!if|({channel_7}&gt;103) and (112&gt;{channel_7})|
  !set_control|color|13$
$
!if|({channel_7}&gt;111) and (120&gt;{channel_7})|
  !set_control|color|14$
$
!if|({channel_7}&gt;119) and (128&gt;{channel_7})|
  !set_control|color|15$
$
!if|({channel_7}&gt;127) and (192&gt;{channel_7})|
  !set_control|color|16$
  !set_control|rainbow|({channel_7}-64)$
$
!if|{channel_7}&gt;191|
  !set_control|color|16$
  !set_control|rainbow|((({channel_7}-191)*(0-1))+64)$
$</procedure>
    <procedure name="SetRainbow">!if|{channel_7}&gt;127|
  !if|64&gt;{rainbow}|
    !set_channel|7|((({rainbow}-64)*(0-1))+191)$
  $
  !if|{rainbow}&gt;63|
    !set_channel|7|({rainbow}+64)$
  $
$</procedure>
    <procedure name="SetGobo">!if|{gobo}=0|!set_channel|10|0$$
!if|{gobo}=1|!set_channel|10|8$$
!if|{gobo}=2|!set_channel|10|16$$
!if|{gobo}=3|!set_channel|10|24$$
!if|{gobo}=4|!set_channel|10|32$$
!if|{gobo}=5|!set_channel|10|40$$
!if|{gobo}=6|!set_channel|10|48$$
!if|{gobo}=7|!set_channel|10|56$$
!if|{gobo}=8|!set_channel|10|64$$
!if|{gobo}=9|!set_channel|10|72$$
!if|{gobo}=10|!set_channel|10|80$$
!if|{gobo}=11|!set_channel|10|88$$
!if|{gobo}=12|!set_channel|10|96$$
!if|{gobo}=13|!set_channel|10|104$$
!if|{gobo}=14|!set_channel|10|112$$
!if|{gobo}=15|!set_channel|10|128$$</procedure>
    <procedure name="GetGobo">!if|8&gt;{channel_10}|
  !set_control|gobo|0$
$
!if|({channel_10}&gt;7) and (16&gt;{channel_10})|
  !set_control|gobo|1$
$
!if|({channel_10}&gt;15) and (24&gt;{channel_10})|
  !set_control|gobo|2$
$
!if|({channel_10}&gt;23) and (32&gt;{channel_10})|
  !set_control|gobo|3$
$
!if|({channel_10}&gt;31) and (40&gt;{channel_10})|
  !set_control|gobo|4$
$
!if|({channel_10}&gt;39) and (48&gt;{channel_10})|
  !set_control|gobo|5$
$
!if|({channel_10}&gt;47) and (56&gt;{channel_10})|
  !set_control|gobo|6$
$
!if|({channel_10}&gt;55) and (64&gt;{channel_10})|
  !set_control|gobo|7$
$
!if|({channel_10}&gt;63) and (72&gt;{channel_10})|
  !set_control|gobo|8$
  !set_control|goborainbow|((({channel_10}-63)*16)-16)$
$
!if|({channel_10}&gt;71) and (80&gt;{channel_10})|
  !set_control|gobo|9$
  !set_control|goborainbow|((({channel_10}-71)*16)-16)$
$
!if|({channel_10}&gt;79) and (88&gt;{channel_10})|
  !set_control|gobo|10$
  !set_control|goborainbow|((({channel_10}-79)*16)-16)$
$
!if|({channel_10}&gt;87) and (96&gt;{channel_10})|
  !set_control|gobo|11$
  !set_control|goborainbow|((({channel_10}-87)*16)-16)$
$
!if|({channel_10}&gt;95) and (104&gt;{channel_10})|
  !set_control|gobo|12$
  !set_control|goborainbow|((({channel_10}-95)*16)-16)$
$
!if|({channel_10}&gt;103) and (112&gt;{channel_10})|
  !set_control|gobo|13$
  !set_control|goborainbow|((({channel_10}-103)*16)-16)$
$
!if|({channel_10}&gt;111) and (120&gt;{channel_10})|
  !set_control|gobo|14$
  !set_control|goborainbow|((({channel_10}-111)*16)-16)$
$
!if|({channel_10}&gt;119) and (128&gt;{channel_10})|
  !set_control|gobo|0$
$
!if|({channel_10}&gt;127) and (192&gt;{channel_10})|
  !set_control|gobo|15$
  !set_control|goborainbow|({channel_10}-64)$
$
!if|{channel_10}&gt;191|
  !set_control|gobo|15$
  !set_control|goborainbow|((({channel_10}-191)*(0-1))+64)$
$</procedure>
    <procedure name="SetGoboRainbow">!if|{channel_10}&gt;127|
  !if|64&gt;{goborainbow}|
    !set_channel|10|((({goborainbow}-64)*(0-1))+191)$
  $
  !if|{goborainbow}&gt;63|
    !set_channel|10|({goborainbow}+64)$
  $
$
!if|({channel_10}&gt;63) and (72&gt;{channel_10})|
  !set_channel|10|((({goborainbow}+16) / 16)+63)$
$
!if|({channel_10}&gt;71) and (80&gt;{channel_10})|
  !set_channel|10|((({goborainbow}+16) / 16)+71)$
$
!if|({channel_10}&gt;79) and (88&gt;{channel_10})|
  !set_channel|10|((({goborainbow}+16) / 16)+79)$
$
!if|({channel_10}&gt;87) and (96&gt;{channel_10})|
  !set_channel|10|((({goborainbow}+16) / 16)+87)$
$
!if|({channel_10}&gt;95) and (104&gt;{channel_10})|
  !set_channel|10|((({goborainbow}+16) / 16)+95)$
$
!if|({channel_10}&gt;103) and (112&gt;{channel_10})|
  !set_channel|10|((({goborainbow}+16) / 16)+103)$
$
!if|({channel_10}&gt;111) and (120&gt;{channel_10})|
  !set_channel|10|((({goborainbow}+16) / 16)+111)$
$</procedure>
    <procedure name="GetGoboRot">!if|16&gt;{channel_11}|
  !set_control|goborot|112$
  !set_control|jojo|0$
$
!if|(128&gt;{channel_11}) and ({channel_11}&gt;15)|
  !set_control|goborot|({channel_11}+97)$
  !set_control|jojo|0$
$
!if|(240&gt;{channel_11}) and ({channel_11}&gt;127)|
  !set_control|goborot|((({channel_11}-127)*(0-1))+112)$
  !set_control|jojo|0$
$
!if|{channel_11}&gt;239|
  !set_control|goborot|((({channel_11}-239)*14)-14)$
  !set_control|jojo|1$
$

</procedure>
    <procedure name="SetGoboRot">!if|240&gt;{channel_11}|
  !if|{goborot}&gt;112|!set_channel|11|({goborot}-97)$$
  !if|112&gt;{goborot}|!set_channel|11|((({goborot}-112)*(0-1))+127)$$
  !if|{goborot}=112|!set_channel|11|0$$
$
!if|{channel_11}&gt;239|
  !set_channel|11|((({goborot}+14)/14)+239)$
$</procedure>
    <procedure name="SetFunc">!if|{funktion}=0|!set_control|bfunktion|0$$
!if|{funktion}=1|!set_control|bfunktion|8$$
!if|{funktion}=2|!set_control|bfunktion|16$$
!if|{funktion}=3|!set_control|bfunktion|24$$
!if|{funktion}=4|!set_control|bfunktion|32$$
!if|{funktion}=5|!set_control|bfunktion|40$$
!if|{funktion}=6|!set_control|bfunktion|48$$
!if|{funktion}=7|!set_control|bfunktion|88$$
!if|{funktion}=8|!set_control|bfunktion|96$$
!if|{funktion}=9|!set_control|bfunktion|112$$
!if|{funktion}=10|!set_control|bfunktion|120$$
!if|{funktion}=11|!set_control|bfunktion|128$$
!if|{funktion}=12|!set_control|bfunktion|136$$
!if|{funktion}=13|!set_control|bfunktion|144$$
!if|{funktion}=14|!set_control|bfunktion|152$$</procedure>
    <procedure name="SetJojo">!if|{jojo}=0|!set_channel|11|0$$
!if|{jojo}=1|!set_channel|11|240$$</procedure>
    <procedure name="INITCONTROLS">!if|{channel_20} = 1|
  !if|1&gt;((({channel_0}-128)*3)+(({channel_3}*3)/256))|
    !set_channel|16|0$
    !set_channel|17|0$
  $
  !if|((({channel_0}-128)*3)+((({channel_3}*3)/256))&gt;0) and (256&gt;((({channel_0}-128)*3)+(({channel_3}*3)/256)))|
    !set_channel|16|((({channel_0}-128)*3)+((({channel_3}*3)/256))$
    !set_channel|17|(({channel_3}*3) mod 256)$
  $
  !if|((({channel_0}-128)*3)+(({channel_3}*3)/256))&gt;255|
    !set_channel|16|255$
    !set_channel|17|255$
  $
  !if|256&gt;(({channel_2}*3)+(({channel_5}*3)/256))|
    !set_channel|18|(({channel_2}*3)+((({channel_5}*3)/256))$
    !set_channel|19|(({channel_5}*3) mod 256)$
  $
  !if|(({channel_2}*3)+(({channel_5}*3)/256))&gt;255|
    !set_channel|18|255$
    !set_channel|19|255$
  $
  !set_control|FineMode|1$
$
!set_control|thirdax|(({channel_1}*256)+{channel_4})$
!if|4&gt;{channel_8}|
  !set_control|shuttermode|0$
$
!if|({channel_8}&gt;3) and (8&gt;{channel_8})|
  !set_control|shuttermode|1$
$
!if|({channel_8}&gt;7) and (216&gt;{channel_8})|
  !set_control|shuttermode|2$
  !set_control|strobespeed|{channel_8}$
$
!if|{channel_8}&gt;215|
  !set_control|shuttermode|1$
$
!if|8&gt;{channel_13}|
  !set_control|program|0$
$
!if|({channel_13}&gt;7) and (24&gt;{channel_13})|
  !set_control|program|1$
$
!if|({channel_13}&gt;23) and (40&gt;{channel_13})|
  !set_control|program|2$
$
!if|({channel_13}&gt;39) and (56&gt;{channel_13})|
  !set_control|program|3$
$
!if|({channel_13}&gt;55) and (72&gt;{channel_13})|
  !set_control|program|4$
$
!if|({channel_13}&gt;71) and (88&gt;{channel_13})|
  !set_control|program|5$
$
!if|({channel_13}&gt;87) and (104&gt;{channel_13})|
  !set_control|program|6$
$
!if|({channel_13}&gt;103) and (120&gt;{channel_13})|
  !set_control|program|7$
$
!if|({channel_13}&gt;119) and (136&gt;{channel_13})|
  !set_control|program|8$
$
!if|({channel_13}&gt;135) and (152&gt;{channel_13})|
  !set_control|program|9$
$
!if|({channel_13}&gt;151) and (168&gt;{channel_13})|
  !set_control|program|10$
$
!if|({channel_13}&gt;167) and (184&gt;{channel_13})|
  !set_control|program|11$
$
!if|({channel_13}&gt;183) and (200&gt;{channel_13})|
  !set_control|program|12$
$
!if|({channel_13}&gt;199) and (216&gt;{channel_13})|
  !set_control|program|13$
$
!if|({channel_13}&gt;215) and (232&gt;{channel_13})|
  !set_control|program|14$
$
!if|({channel_13}&gt;213) and (248&gt;{channel_13})|
  !set_control|program|15$
$
!if|{channel_13}&gt;247|
  !set_control|program|16$
$
!if|8&gt;{channel_7}|
  !set_control|color|0$
$
!if|({channel_7}&gt;7) and (16&gt;{channel_7})|
  !set_control|color|1$
$
!if|({channel_7}&gt;15) and (24&gt;{channel_7})|
  !set_control|color|2$
$
!if|({channel_7}&gt;23) and (32&gt;{channel_7})|
  !set_control|color|3$
$
!if|({channel_7}&gt;31) and (40&gt;{channel_7})|
  !set_control|color|4$
$
!if|({channel_7}&gt;39) and (48&gt;{channel_7})|
  !set_control|color|5$
$
!if|({channel_7}&gt;47) and (56&gt;{channel_7})|
  !set_control|color|6$
$
!if|({channel_7}&gt;55) and (64&gt;{channel_7})|
  !set_control|color|7$
$
!if|({channel_7}&gt;63) and (72&gt;{channel_7})|
  !set_control|color|8$
$
!if|({channel_7}&gt;71) and (80&gt;{channel_7})|
  !set_control|color|9$
$
!if|({channel_7}&gt;79) and (88&gt;{channel_7})|
  !set_control|color|10$
$
!if|({channel_7}&gt;87) and (96&gt;{channel_7})|
  !set_control|color|11$
$
!if|({channel_7}&gt;95) and (104&gt;{channel_7})|
  !set_control|color|12$
$
!if|({channel_7}&gt;103) and (112&gt;{channel_7})|
  !set_control|color|13$
$
!if|({channel_7}&gt;111) and (120&gt;{channel_7})|
  !set_control|color|14$
$
!if|({channel_7}&gt;119) and (128&gt;{channel_7})|
  !set_control|color|15$
$
!if|({channel_7}&gt;127) and (192&gt;{channel_7})|
  !set_control|color|16$
  !set_control|rainbow|({channel_7}-64)$
$
!if|{channel_7}&gt;191|
  !set_control|color|16$
  !set_control|rainbow|((({channel_7}-191)*(0-1))+64)$
$
!if|8&gt;{channel_10}|
  !set_control|gobo|0$
$
!if|({channel_10}&gt;7) and (16&gt;{channel_10})|
  !set_control|gobo|1$
$
!if|({channel_10}&gt;15) and (24&gt;{channel_10})|
  !set_control|gobo|2$
$
!if|({channel_10}&gt;23) and (32&gt;{channel_10})|
  !set_control|gobo|3$
$
!if|({channel_10}&gt;31) and (40&gt;{channel_10})|
  !set_control|gobo|4$
$
!if|({channel_10}&gt;39) and (48&gt;{channel_10})|
  !set_control|gobo|5$
$
!if|({channel_10}&gt;47) and (56&gt;{channel_10})|
  !set_control|gobo|6$
$
!if|({channel_10}&gt;55) and (64&gt;{channel_10})|
  !set_control|gobo|7$
$
!if|({channel_10}&gt;63) and (72&gt;{channel_10})|
  !set_control|gobo|8$
  !set_control|goborainbow|((({channel_10}-63)*16)-16)$
$
!if|({channel_10}&gt;71) and (80&gt;{channel_10})|
  !set_control|gobo|9$
  !set_control|goborainbow|((({channel_10}-71)*16)-16)$
$
!if|({channel_10}&gt;79) and (88&gt;{channel_10})|
  !set_control|gobo|10$
  !set_control|goborainbow|((({channel_10}-79)*16)-16)$
$
!if|({channel_10}&gt;87) and (96&gt;{channel_10})|
  !set_control|gobo|11$
  !set_control|goborainbow|((({channel_10}-87)*16)-16)$
$
!if|({channel_10}&gt;95) and (104&gt;{channel_10})|
  !set_control|gobo|12$
  !set_control|goborainbow|((({channel_10}-95)*16)-16)$
$
!if|({channel_10}&gt;103) and (112&gt;{channel_10})|
  !set_control|gobo|13$
  !set_control|goborainbow|((({channel_10}-103)*16)-16)$
$
!if|({channel_10}&gt;111) and (120&gt;{channel_10})|
  !set_control|gobo|14$
  !set_control|goborainbow|((({channel_10}-111)*16)-16)$
$
!if|({channel_10}&gt;119) and (128&gt;{channel_10})|
  !set_control|gobo|0$
$
!if|({channel_10}&gt;127) and (192&gt;{channel_10})|
  !set_control|gobo|15$
  !set_control|goborainbow|({channel_10}-64)$
$
!if|{channel_10}&gt;191|
  !set_control|gobo|15$
  !set_control|goborainbow|((({channel_10}-191)*(0-1))+64)$
$
!if|16&gt;{channel_11}|
  !set_control|goborot|112$
  !set_control|jojo|0$
$
!if|(128&gt;{channel_11}) and ({channel_11}&gt;15)|
  !set_control|goborot|({channel_11}+97)$
  !set_control|jojo|0$
$
!if|(240&gt;{channel_11}) and ({channel_11}&gt;127)|
  !set_control|goborot|((({channel_11}-127)*(0-1))+112)$
  !set_control|jojo|0$
$
!if|{channel_11}&gt;239|
  !set_control|goborot|((({channel_11}-239)*14)-14)$
  !set_control|jojo|1$
$
!if|{channel_20} = 0|
  !set_channel|16|{channel_0}$
  !set_channel|17|{channel_3}$
  !set_channel|18|{channel_2}$
  !set_channel|19|{channel_5}$
  !set_control|FineMode|0$
$
!set_control|bfunktion|0$
!set_control|funktion|0$
!if|{channel_14}&gt;7|!set_control|prisma|1$$
!if|8&gt;{channel_14}|!set_control|prisma|0$$</procedure>
    <procedure name="GetPrisma">
!if|{channel_14}&gt;7|!set_control|prisma|1$$
!if|8&gt;{channel_14}|!set_control|prisma|0$$
</procedure>
    <procedure name="SetBFunc">!if|{bfunktion}=0|
  !set_channel|12|0$
  !set_control|funktion|0$
$
!if|{bfunktion}&gt;0|
  !set_channel|12|{bfunktion}$
  !set_control|bfunktion|0$
$</procedure>
    <procedure name="SetPrisma">!if|{prisma}=1|!set_channel|14|255$$
!if|{prisma}=0|!set_channel|14|0$$</procedure>
  </code>
</device>