/////////////////////////////////////////
//    MARTIN MX 4
// DMX Protocol V1
// This template requires software version 0.97 or higher to work.

fixture
	manufacturer = "MARTIN"
	name = "Mx-4"
	version = 1.02
//  fullmanufacturer = "Martin"
//  fullname = "MX 4"
//  mode = 1
//  description = ""

	attribute
		name = "INTENSITY"
		channel = 1
		minval = 0
		maxval = 99
		homeVal = 0

	attribute
		name = "COLOR"
		channel = 2
		homeVal = 0

	attribute
		name = "GOBO"
		channel = 3
		homeVal = 0

	attribute
		name = "PAN"
		channel = 4
		homeVal = 128

	attribute
		name = "TILT"
		channel = 5
		homeVal = 128

	attribute
		name = "PT SPEED"
		channel = 6
		homeVal = 0

	attribute
		name = "FX SPEED"
		channel = 7
		homeVal = 0

////////////////////////////////////////////////////////////////////////

	parameter
		name = "-PAN-"					
		displayerNum = 1 
		type = F
		attribList = 4
		stop = (M  0:255),D,0,230,"Pan="

	parameter
		name = "-TILT-"					
		displayerNum = 2 
		type = F
		attribList = 5
		stop = (M  0:255),D,0,75,"Ti@="

	parameter
		name = "-COLOUR-"					
		displayerNum = 3 
		type = C
		attribList = 2

		stop = (   0:  5),N,"White"
		stop = (   6: 11),N,"Wht+B101"
		stop = (  12: 17),N,"LtBlue101"
		stop = (  18: 23),N,"B101+G205"
		stop = (  24: 29),N,"Green 205"
		stop = (  30: 35),N,"G205+R304"
		stop = (  36: 41),N,"Red 304"
		stop = (  42: 47),N,"R304+Y603"
		stop = (  48: 53),N,"Yellow603"
		stop = (  54: 59),N,"Y603+M507"
		stop = (  60: 65),N,"Mgenta507"
		stop = (  66: 71),N,"M507+B108"
		stop = (  72: 77),N,"Blue 108"
		stop = (  78: 83),N,"B108+O302"
		stop = (  84: 89),N,"Orange302"
		stop = (  90: 95),N,"O302+G204"
		stop = (  96:101),N,"Green204"
		stop = ( 102:107),N,"G204+C104"
		stop = ( 108:113),N,"Cyan 104"
		stop = ( 114:119),N,"C104+P312"
		stop = ( 120:125),N,"Pink 312"
		stop = ( 126:131),N,"P312+B111"
		stop = ( 132:137),N,"Blue 111"
		stop = ( 138:143),N,"B111+A604"
		stop = ( 144:149),N,"Amber 604"
		stop = ( 150:155),N,"A604+R308"
		stop = ( 156:161),N,"Red 308"
		stop = ( 162:167),N,"R308+G206"
		stop = ( 168:173),N,"Green 206"
		stop = ( 174:179),N,"G206+O306"
		stop = ( 180:185),N,"Orange306"
		stop = ( 186:191),N,"O306+Col1"
		stop = ( 192:197),N,"Color 1"
		stop = ( 198:203),N,"Col1+Col2"
		stop = ( 204:209),N,"Color 2"
		
		stop = (R210:255),N,"Trigger"
		
	parameter
		name = "-GOBO-"
		displayerNum = 4
		type = B
		attribList = 3
		
		stop = (   0: 11),N,"No Gobo"
		stop = (  12: 23),N,"Worms 2"
		stop = (  22: 35),N,"Web"
		stop = (  36: 47),N,"Petals"
		stop = (  49: 59),N,"Spokes"
		stop = (  60: 71),N,"Cone 2"
		stop = (  72: 83),N,"Maze"
		stop = (  84: 95),N,"Crater"
		stop = (  96:107),N,"Holes 2"
		stop = ( 106:119),N,"Cross 2"
		stop = ( 120:131),N,"Jag Cross"
		stop = ( 132:143),N,"Atomic"
		stop = ( 144:155),N,"DotCircle"
		stop = ( 156:167),N,"Nordic"
		stop = ( 168:179),N,"Aim"
		stop = ( 180:191),N,"Spokes 2"
		stop = ( 192:203),N,"Tie"
		stop = ( 204:215),N,"Nova"
		stop = ( 216:227),N,"TripleBm"
		stop = ( 228:239),N,"Dot 2"
		
		stop = (R240:255),N,"Trigger"

	parameter
		name = "-SHUTTER-"					
		displayerNum = 5
		type = B
		attribList = 1
		stop = (   0:  0),N,"DimHTP"
		stop = (R  0: 99),n,"DimHTP"
		stop = (M159:100),1,"Strobe:"

// ---------------------------------------
	parameter
		name = "-REMOTE-"					
		displayerNum = 21
		type = N
		attribList = 1,2,3
		stop = (  60: 60,   0:  0,   0:  0),N,"Normal"
		stop = (R  0:179,R  0:255,R  0:255),N,"Normal"
		stop = ( 180:204, 210:255, 240:255),N,"MusicTrig"
		stop = ( 205:229, 210:255, 240:255),N,"AutoTrig"

	parameter
		name = "-FXSPEED-"
		displayerNum = 22
		type = B
		attribList = 7
		stop = (M  0:255),2,"FxSpd="

	parameter
		name = "-PTSPEED-"
		displayerNum = 23
		type = F
		attribList = 6
		stop = (   0:  2),N,"Tracking"
		stop = (M  3:255),2,"PtSpd:"

	parameter
		name = "-CNTRL-"					
		displayerNum = 24 
		type = N
		attribList = 1,2,3
		stop = ( 250:255, 250:255, 250:255),N,"Lamp Off"
		stop = (  10: 19,   0:255,   0:255),N,"Lamp On"
		stop = ( 240:249,   0:255,   0:255),N,"Reset"
end

