Hallo zusammen.
Ich versuche seit einigen Tagen das DDF für einen Martin Mac250 Krypton im Extended Mode (17 Kanäle) zum laufen zu bringen ohne Erfolg. Es gibt mir zeitweise Parse Error oder so an und alle Funktionen als Prozeduren funktionieren nicht.
Bitte helft mir!
Hier was ich bisher habe:
<?xml version="1.0" encoding="ISO-8859-1"?>
<device image="Mh.gif" initsequence="set 0 20;set 11 128;set 12 128;set 13 128;set 14 128">
<information>
<author>Admin</author>
<vendor>Martin</vendor>
<name>Mac 250 Krypton Ex</name>
</information>
<channels>
<function channel="0" minvalue="0" maxvalue="255" name="Multifunktion" fade="no" action="GetShutter" />
<function channel="1" minvalue="0" maxvalue="255" name="Dimmer" fade="no" />
<function channel="2" minvalue="0" maxvalue="255" name="Dimmer (Fein)" fade="no" />
<function channel="3" minvalue="0" maxvalue="255" name="Farbe" fade="no" type="color" action="GetColor" />
<function channel="4" minvalue="0" maxvalue="255" name="Farbe (Fein)" fade="no" type="color" action="GetColor" />
<function channel="5" minvalue="0" maxvalue="255" name="Gobo" fade="no" type="gobo" action="GetGobo" />
<function channel="6" minvalue="0" maxvalue="255" name="Goborotation" fade="no" type="gobo" action="GetGobo" />
<function channel="7" minvalue="0" maxvalue="255" name="Goborotation (Fein)" fade="no" type="gobo" action="GetGobo" />
<function channel="8" minvalue="0" maxvalue="255" name="Fokus" fade="no" />
<function channel="9" minvalue="0" maxvalue="255" name="Fokus (Fein)" fade="no" />
<function channel="10" minvalue="0" maxvalue="255" name="Prisma" fade="no" type="prism" action="GetPrism" />
<function channel="11" minvalue="0" maxvalue="255" name="Pan" fade="no" type="pan" />
<function channel="12" minvalue="0" maxvalue="255" name="Pan (Fein)" fade="no" type="panfine" />
<function channel="13" minvalue="0" maxvalue="255" name="Tilt" fade="no" type="tilt" />
<function channel="14" minvalue="0" maxvalue="255" name="Tilt (Fein)" fade="no" type="tiltfine" />
<function channel="15" minvalue="0" maxvalue="255" name="Bewegungsgeschwindigkeit" fade="no" />
<function channel="16" minvalue="0" maxvalue="255" name="Geschwindigkeiten" fade="no" />
</channels>
<form width="647" height="462">
<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" />
<label top="344" left="8" caption="Helligkeit" />
<slider top="360" left="8" height="25" width="150" startvalue="0" endvalue="255" tickfreq="1" smallchange="10" largechange="50" channel="1" />
<label top="0" left="464" caption="Farbe" />
<dropdown top="24" left="456" width="89" name="color_color" action="SetColor">
<item caption="Weiss" value="0" />
<item caption="CTC" value="1" />
<item caption="Gelb 603" value="2" />
<item caption="Blau 104" value="3" />
<item caption="Pink 312" value="4" />
<item caption="Grün 206" value="5" />
<item caption="Blau 108" value="6" />
<item caption="Rot 301" value="7" />
<item caption="Magenta 507" value="8" />
<item caption="Blau 101" value="9" />
<item caption="Orange 306" value="10" />
<item caption="Dunkelgrün" value="11" />
<item caption="Purpur 502" value="12" />
<item caption="Weiss" value="13" />
</dropdown>
<slider top="72" left="344" height="25" width="65" startvalue="0" endvalue="18" tickfreq="1" smallchange="1" largechange="5" name="color_speed" action="SetColor" />
<dropdown top="136" left="480" width="137" name="gobo_motiv" action="SetGobo">
<item caption="Eclipse" value="0" />
<item caption="Fat Bar" value="1" />
<item caption="Fan" value="2" />
<item caption="Happy Yins" value="3" />
<item caption="Twisted triangle" value="4" />
<item caption="Splash" value="5" />
<item caption="Aflobet" value="6" />
</dropdown>
<label top="112" left="344" caption="Gobomodus" />
<dropdown top="136" left="344" width="129" name="gobo_mode" action="SetGobo">
<item caption="Normal" value="0" />
<item caption="Drehen" value="1" />
<item caption="Drehen + Shaken" value="2" />
<item caption="Kontinuierlich Drehen" value="3" />
</dropdown>
<slider top="192" left="344" height="25" width="65" startvalue="0" endvalue="14" tickfreq="1" smallchange="1" largechange="5" name="gobos_shakespeed" action="SetGobo" />
<label top="168" left="424" caption="Winkel/Drehgeschwindigkeit:" />
<slider top="192" left="424" height="25" width="170" startvalue="0" endvalue="255" tickfreq="1" smallchange="10" largechange="50" name="gobo_index" action="SetGobo" />
<label top="232" left="344" caption="Prisma:" />
<dropdown top="256" left="344" width="97" name="prism_mode" action="SetPrism">
<item caption="kein Prisma" value="0" />
<item caption="Rotieren UZ" value="20" />
<item caption="Rotieren GUZ" value="90" />
<item caption="Prisma stopp" value="80" />
<item caption="Makro 1" value="216" />
<item caption="Makro 2" value="221" />
<item caption="Makro 3" value="226" />
<item caption="Makro 4" value="231" />
<item caption="Makro 5" value="236" />
<item caption="Makro 6" value="241" />
<item caption="Makro 7" value="246" />
<item caption="Makro 8" value="251" />
</dropdown>
<slider top="256" left="456" height="25" width="170" startvalue="0" endvalue="59" tickfreq="1" smallchange="1" largechange="5" name="prism_speed" action="SetPrism" />
<label top="296" left="344" caption="Shutter:" />
<dropdown top="320" left="344" width="169" name="shutter_mode" action="SetShutter">
<item caption="Shutter geschlossen" value="0" />
<item caption="Shutter offen" value="20" />
<item caption="Strobe" value="50" />
<item caption="Pulsierend öffnen" value="80" />
<item caption="Pulsierend schliessen" value="100" />
<item caption="Zufälliges Strobe schnell" value="128" />
<item caption="Zufälliges Strobe mittel" value="148" />
<item caption="Zufälliges Strobe langsam" value="168" />
<item caption="Zuf. puls. öffnen schnell" value="191" />
<item caption="Zuf. puls. öffnen langsam" value="194" />
<item caption="Zuf. puls. schliessen schnell" value="197" />
<item caption="Zuf. puls. schliessen langsam" value="200" />
</dropdown>
<label top="344" left="344" caption="Strobespeed" />
<slider top="368" left="432" height="25" width="65" startvalue="0" endvalue="19" tickfreq="1" smallchange="1" largechange="5" name="shutter_speed" action="SetShutter" />
<command top="440" left="192" width="49" caption="Reset" clicksequence="save 0;set 0 210;hold 5500;restore 0" height="17" />
<command top="440" left="88" width="105" caption="Lampe abschalten" clicksequence="save 0;set 0 255;hold 5500;restore 0" />
<command top="440" left="0" width="89" caption="Lampe zünden" clicksequence="save 0;set 0 230;hold 5500;restore 0" />
<label top="392" left="8" caption="Fokus:" />
<slider top="408" left="8" height="25" width="150" startvalue="0" endvalue="255" tickfreq="1" smallchange="10" largechange="50" channel="8" />
<line x1="336" y1="96" x2="632" y2="96" />
<line x1="336" y1="288" x2="632" y2="288" />
<line x1="336" y1="216" x2="632" y2="216" />
<line x1="632" y1="0" x2="632" y2="433" />
<line x1="0" y1="432" x2="632" y2="432" />
<dropdown top="24" left="344" width="105" name="color_mode" action="SetColor">
<item caption="Volle Positionen" value="0" />
<item caption="Schrittweise" value="156" />
<item caption="Kontinuierlich UZ" value="208" />
<item caption="Kontinuierlich GUZ" value="227" />
<item caption="Zufällig schnell" value="246" />
<item caption="Zufällig mittel" value="249" />
<item caption="Zufällig langsam" value="252" />
</dropdown>
<slider top="72" left="424" height="25" width="170" startvalue="0" endvalue="255" tickfreq="1" smallchange="10" largechange="50" name="color_position" channel="4" />
<label top="0" left="344" caption="Farbmodus" />
<label top="48" left="344" caption="Speed" />
<label top="48" left="424" caption="Position" />
<position top="40" left="12" height="300" width="300" />
<label top="168" left="344" caption="Shakespeed" />
<label top="112" left="480" caption="Gobomotiv" />
<slider top="368" left="344" height="25" width="65" startvalue="0" endvalue="22" tickfreq="1" smallchange="1" largechange="5" name="strobe_speed" action="SetShutter" />
<label top="344" left="424" caption="Shutterspeed" />
<line x1="336" y1="0" x2="336" y2="433" />
<slider top="360" left="168" height="25" width="150" startvalue="0" endvalue="255" tickfreq="1" smallchange="10" largechange="50" channel="2" />
<slider top="408" left="168" height="25" width="150" startvalue="0" endvalue="255" tickfreq="1" smallchange="10" largechange="50" channel="9" />
<label top="344" left="168" caption="Helligkeit (fein)" />
<label top="394" left="168" caption="Focus (fein)" />
</form>
<code>
<procedure name="INITCONTROLS">
!call|GetShutter$
!call|GetColor$
!call|GetGobo$
!call|GetPrism$
</procedure>
<procedure name="GetShutter">
!if|({channel_0} < 50) or ({channel_0} > 119)|
!set_control|shutter_mode|{channel_0}$
!set_control|shutter_speed|0$
!set_control|strobe_speed|0$
|
!if|({channel_0} > 49) and ({channel_0} < 73)|
!set_control|shutter_mode|50$
!set_control|strobe_speed|(72-{channel_0})$
$
!if|({channel_0} > 79) and ({channel_0} < 100)|
!set_control|shutter_mode|80$
!set_control|shutter_speed|(99-{channel_0})$
$
!if|({channel_0} > 99) and ({channel_0} < 120)|
!set_control|shutter_mode|100$
!set_control|shutter_speed|(119-{channel_0})$
$
$
</procedure>
<procedure name="SetShutter">
!if|{shutter_mode} < 50|
!set_channel|0|{shutter_mode}$
|
!if|{shutter_mode} = 50|
!set_channel|0|(72-{strobe_speed})$
$
!if|({shutter_mode} > 79) and ({shutter_mode} < 120)|
!set_channel|0|(99-{shutter_speed})$
$
!if|{shutter_mode} > 119|
!set_channel|0|{shutter_mode}$
$
$ </procedure>
<procedure name="GetColor">
!if|{channel_3} < 144|
!set_control|color_mode|0$
!set_control|color_color|({channel_3}/11)$
!set_control|color_speed|0$
|
!if|({channel_3} > 143) and ({channel_3} < 208)|
!set_control|color_mode|156$
!set_control|color_color|(({channel_3}-156)/4)$
!set_control|color_speed|(226-{channel_3})$
$
!if|({channel_3} > 207) and ({channel_3} < 227)|
!set_control|color_mode|208$
!set_control|color_color|0$
!set_control|color_speed|(226-{channel_3})$
$
!if|({channel_3} > 226) and ({channel_3} < 245)|
!set_control|color_mode|227$
!set_control|color_color|0$
!set_control|color_speed|(245-{channel_3})$
$
!if|{channel_3} > 245|
!set_control|color_mode|{channel_3}$
!set_control|color_color|0$
$
$
</procedure>
<procedure name="SetColor">
!if|{color_color} = 0|
!set_channel|3|({color_color}*11)$
|
!if|{color_color} = 156|
!set_channel|3|({color_mode}+{color_color}*4)$
!set_channel|4|{color_position}$
$
!if|({color_mode} > 207) and ({color_mode} < 246)|
!set_channel|3|({color_mode}+18-{color_speed})$
$
!if|{color_color} > 245|
!set_channel|3|{color_mode}$
$
$
</procedure>
<procedure name="GetGobo">
!if|{channel_5} < 43|
!set_control|gobo_mode|0$
!set_control|gobo_motiv|(({channel_5}-1})/5)$
!set_control|gobo_shakespeed|0$
!set_control|gobo_index|0$
|
!if|({channel_5} > 42) and ({channel_5} < 105)|
!set_control|gobo_mode|43$
!set_control|gobo_motiv|(({channel_5}-1-43)/7)$
!set_control|gobo_shakespeed|0$
!set_control|gobo_index|{channel_6}$
$
!if|({channel_5} > 104) and ({channel_5} < 210)|
!set_control|gobo_mode|105$
!set_control|gobo_shakespeed|((209-{channel_5}) mod 15)$
!set_control|gobo_motiv|((210-((209-{channel_5}) mod 15))/15)$
!set_control|gobo_index|{channel_6}$
$
!if|({channel_5} > 209) and ({channel_5} < 233)|
!set_control|gobo_mode|210$
!set_control|gobo_motiv|0$
!set_control|gobo_shakespeed|0$
!set_control|gobo_index|(({channel_5}-210)/22*255)$
$
!if|{channel_5} > 232|
!set_control|gobo_mode|233$
!set_control|gobo_motiv|0$
!set_control|gobo_shakespeed|0$
!set_control|gobo_index|(({channel_5}-233)/22*255)$
$
$</procedure>
<procedure name="SetGobo">
!if|{gobo_mode} = 0|
!set_channel|5|({gobo_motiv}*5+1)$
!set_channel|6|{gobo_index}$
|
!if|{gobo_mode} = 43|
!set_channel|5|(43+{gobo_motiv}*7+1)$
!set_channel|6|{gobo_index}$
$
!if|({gobo_mode} = 105) and ({gobo_motiv} > 0)|
!set_channel|5|(210-{gobo_motiv}*15-{gobo_shakespeed})$
!set_channel|6|{gobo_index}$
$
!if|{gobo_mode} > 209|
!set_channel|5|({gobo_mode}+{gobo_index}/255*22)$
!set_channel|6|{gobo_index}$
$
$
</procedure>
<procedure name="GetPrism">
!if|({channel_10} < 20) or ({channel_6} > 79) and ({channel_6} < 90)|
!set_control|prism_mode|{channel_10}$
!set_control|prism_speed|0$
|
!if|({channel_10} > 19) and ({channel_10} < 80)|
!set_control|prism_mode|20$
!set_control|prism_speed|(79-{channel_10})$
$
!if|({channel_10} > 89) and ({channel_10} < 150)|
!set_control|prism_mode|90$
!set_control|prism_speed|({channel_10}-90)$
$
$
</procedure>
<procedure name="SetPrism">
!if|({prism_mode} < 20) or ({prism_mode} > 215) or ({prism_mode} = 80)|
!set_channel|10|{prism_mode}$
|
!set_channel|10|({prism_mode}+59-{prism_speed})$
$
$
</procedure>
</code>
</device>