Code: Select all
Translator 1.1: Non-Sequencer Midi Messages to Traktor
Options: stop=false
Incoming: MIDI oo vv pp
Rules:
if oo>=176 then exit rules, skip Outgoing Action
ss=127
if vv==49 then Goto "Monitor"
if vv==48 then Goto "Punch"
if vv==50 then Goto "Keylock"
if vv==52 then Goto "Filter"
if vv==53 then Goto "Row1"
if vv==54 then Goto "Row2"
if vv==55 then Goto "Row3"
if vv==56 then Goto "Row4"
if vv==57 then Goto "Row5"
if vv<=61 then Goto "LoopRecSize"
if vv<=65 then exit rules, skip Outgoing Action
if vv==81 then Goto "StopAllPlay"
if vv==82 then Goto "LoadMod"
if vv==83 then Goto "CaptureMod"
if vv==84 then Goto "ReverseMod"
if vv==85 then Goto "DeleteMod"
if vv==86 then Goto "LoadSetDeckD"
if vv==87 then Goto "DeckA"
if vv==88 then Goto "DeckB"
if vv==89 then Goto "DeckC"
if vv==90 then Goto "LoopRec"
if vv==92 then Goto "SequencerSync"
if vv==93 then Goto "LoopRecOn"
if vv<=97 then Goto "Browse"
if vv==98 then exit rules, skip Outgoing Action
if vv==99 then Goto "LoopRecOn"
if oo<144 then exit rules, skip Outgoing Action
exit rules, skip Outgoing Action
Label "Filter"
if oo==144 then Goto "Button13"
if oo==145 then Goto "Button14"
if oo==146 then Goto "Button15"
if oo==147 then Goto "Button16"
exit rules, skip Outgoing Action
Label "Button13"
qq=178
rr=24
if hj==0 then Goto "on13"
if hj==1 then Goto "off13"
Label "on13"
hj=1
exit rules, execute Outgoing Action
Label "off13"
hj=0
exit rules, execute Outgoing Action
Label "Button14"
qq=178
rr=25
if hk==0 then Goto "on14"
if hk==1 then Goto "off14"
Label "on10"
hk=1
exit rules, execute Outgoing Action
Label "off14"
hk=0
exit rules, execute Outgoing Action
Label "Button15"
qq=178
rr=26
if hl==0 then Goto "on15"
if hl==1 then Goto "off15"
Label "on15"
hl=1
exit rules, execute Outgoing Action
Label "off15"
hl=0
exit rules, execute Outgoing Action
Label "Button16"
qq=178
rr=27
if hm==0 then Goto "on16"
if hm==1 then Goto "off16"
Label "on16"
hm=1
exit rules, execute Outgoing Action
Label "off16"
hm=0
exit rules, execute Outgoing Action
Label "Row1"
if oo==144 then Goto "Filter1"
if oo==145 then Goto "Filter2"
if oo==146 then Goto "Filter3"
if oo==147 then Goto "Filter4"
if oo<=135 then Goto "RemixDeckOffControls"
if oo>147 then Goto "rightSideNormal"
exit rules, skip Outgoing Action
Label "Filter1"
qq=178
rr=106
if ha==0 then Goto "on1"
if ha==1 then Goto "off1"
Label "on1"
ha=1
exit rules, execute Outgoing Action
Label "off1"
ha=0
ss=0
exit rules, execute Outgoing Action
Label "Filter2"
qq=178
rr=107
if hb==0 then Goto "on2"
if hb==1 then Goto "off2"
Label "on2"
hb=1
exit rules, execute Outgoing Action
Label "off2"
hb=0
ss=0
exit rules, execute Outgoing Action
Label "Filter3"
qq=178
rr=108
if hc==0 then Goto "on3"
if hc==1 then Goto "off3"
Label "on3"
hc=1
exit rules, execute Outgoing Action
Label "off3"
hc=0
ss=0
exit rules, execute Outgoing Action
Label "Filter4"
qq=178
rr=109
if hd==0 then Goto "on4"
if hd==1 then Goto "off4"
Label "on4"
hd=1
exit rules, execute Outgoing Action
Label "off4"
hd=0
ss=0
exit rules, execute Outgoing Action
Label "Row2"
if oo==144 then Goto "Button5"
if oo==145 then Goto "Button6"
if oo==146 then Goto "Button7"
if oo==147 then Goto "Button8"
if oo<=135 then Goto "RemixDeckOffControls"
if oo>147 then Goto "rightSideNormal"
exit rules, skip Outgoing Action
Label "Button5"
if he==1 then Goto "Reset1"
if he!=1 then he=1
exit rules, skip Outgoing Action
Label "Reset1"
if he==1 then he=0
exit rules, skip Outgoing Action
Label "Button6"
if he==2 then Goto "Reset2"
if he!=2 then he=2
exit rules, skip Outgoing Action
Label "Reset2"
if he==2 then he=0
exit rules, skip Outgoing Action
Label "Button7"
if he==3 then Goto "Reset3"
if he!=3 then he=3
exit rules, skip Outgoing Action
Label "Reset3"
if he==3 then he=0
exit rules, skip Outgoing Action
Label "Button8"
if he==4 then Goto "Reset4"
if he!=4 then he=4
exit rules, skip Outgoing Action
Label "Reset4"
if he==4 then he=0
exit rules, skip Outgoing Action
Label "Row3"
if oo==144 then Goto "Button9"
if oo==145 then Goto "Button10"
if oo==146 then Goto "Button11"
if oo==147 then Goto "Button12"
if oo<=135 then Goto "RemixDeckOffControls"
if oo>147 then Goto "rightSideNormal"
exit rules, skip Outgoing Action
Label "Button9"
qq=178
rr=20
if hf==0 then Goto "on9"
if hf==1 then Goto "off9"
Label "on9"
hf=1
exit rules, execute Outgoing Action
Label "off9"
hf=0
exit rules, execute Outgoing Action
Label "Button10"
qq=178
rr=21
if hg==0 then Goto "on10"
if hg==1 then Goto "off10"
Label "on10"
hg=1
exit rules, execute Outgoing Action
Label "off10"
hg=0
exit rules, execute Outgoing Action
Label "Button11"
qq=178
rr=22
if hh==0 then Goto "on11"
if hh==1 then Goto "off11"
Label "on11"
hh=1
exit rules, execute Outgoing Action
Label "off11"
hh=0
exit rules, execute Outgoing Action
Label "Button12"
qq=178
rr=23
if hi==0 then Goto "on12"
if hi==1 then Goto "off12"
Label "on12"
hi=1
exit rules, execute Outgoing Action
Label "off12"
hi=0
exit rules, execute Outgoing Action
Label "Row4"
if oo==144 then Goto "FxUnit1On"
if oo==145 then Goto "FxUnit1Button1"
if oo==146 then Goto "FxUnit1Button2"
if oo==147 then Goto "FxUnit1Button3"
if oo<=135 then Goto "RemixDeckOffControls"
if oo>147 then Goto "rightSideNormal"
exit rules, skip Outgoing Action
Label "FxUnit1On"
qq=178
rr=32
ss=pp
exit rules, execute Outgoing Action
Label "FxUnit1Button1"
qq=178
rr=33
ss=pp
exit rules, execute Outgoing Action
Label "FxUnit1Button2"
qq=178
rr=34
ss=pp
exit rules, execute Outgoing Action
Label "FxUnit1Button3"
qq=178
rr=35
ss=pp
exit rules, execute Outgoing Action
Label "row5"
if oo==144 then Goto "FxUnit2On"
if oo==145 then Goto "FxUnit2Button1"
if oo==146 then Goto "FxUnit2Button2"
if oo==147 then Goto "FxUnit2Button3"
if oo<=135 then Goto "RemixDeckOffControls"
if oo>147 then Goto "rightSideNormal"
exit rules, skip Outgoing Action
Label "FxUnit2On"
qq=178
rr=36
ss=pp
exit rules, execute Outgoing Action
Label "FxUnit2Button1"
qq=178
rr=37
ss=pp
exit rules, execute Outgoing Action
Label "FxUnit2Button2"
qq=178
rr=38
ss=pp
exit rules, execute Outgoing Action
Label "FxUnit2Button3"
qq=178
rr=39
ss=pp
exit rules, execute Outgoing Action
Label "rightSideNormal"
if he!=0 then exit rules, skip Outgoing Action
if oo>151 then exit rules, skip Outgoing Action
if oo<=135 then Goto "RemixDeckOffControls"
if vv==52 then Goto "StopRows"
if vv==53 then Goto "remixRow1"
if vv==54 then Goto "remixRow2"
if vv==55 then Goto "remixRow3"
if vv==56 then Goto "remixRow4"
if vv==57 then Goto "pageSelector"
if vv>57 then exit rules, skip Outgoing Action
Label "remixRow1"
if oo==148 then Goto "slot1Cell1"
if oo==149 then Goto "slot2Cell1"
if oo==150 then Goto "slot3Cell1"
if oo==151 then Goto "slot4Cell1"
Label "slot1Cell1"
qq=144
rr=26
exit rules, execute Outgoing Action
Label "slot2Cell1"
qq=144
rr=32
exit rules, execute Outgoing Action
Label "slot3Cell1"
qq=144
rr=38
exit rules, execute Outgoing Action
Label "slot4Cell1"
qq=144
rr=44
exit rules, execute Outgoing Action
Label "remixRow2"
if oo==148 then Goto "slot1Cell2"
if oo==149 then Goto "slot2Cell2"
if oo==150 then Goto "slot3Cell2"
if oo==151 then Goto "slot4Cell2"
Label "slot1Cell2"
qq=144
rr=27
exit rules, execute Outgoing Action
Label "slot2Cell2"
qq=144
rr=33
exit rules, execute Outgoing Action
Label "slot3Cell2"
qq=144
rr=39
exit rules, execute Outgoing Action
Label "slot4Cell2"
qq=144
rr=45
exit rules, execute Outgoing Action
Label "remixRow3"
if oo==148 then Goto "slot1Cell3"
if oo==149 then Goto "slot2Cell3"
if oo==150 then Goto "slot3Cell3"
if oo==151 then Goto "slot4Cell3"
exit rules, skip Outgoing Action
Label "slot1Cell3"
qq=144
rr=28
exit rules, execute Outgoing Action
Label "slot2Cell3"
qq=144
rr=34
exit rules, execute Outgoing Action
Label "slot3Cell3"
qq=144
rr=40
exit rules, execute Outgoing Action
Label "slot4Cell3"
qq=144
rr=46
exit rules, execute Outgoing Action
Label "remixRow4"
if oo==148 then Goto "slot1Cell4"
if oo==149 then Goto "slot2Cell4"
if oo==150 then Goto "slot3Cell4"
if oo==151 then Goto "slot4Cell4"
exit rules, skip Outgoing Action
Label "slot1Cell4"
qq=144
rr=29
exit rules, execute Outgoing Action
Label "slot2Cell4"
qq=144
rr=35
exit rules, execute Outgoing Action
Label "slot3Cell4"
qq=144
rr=41
exit rules, execute Outgoing Action
Label "slot4Cell4"
qq=144
rr=47
exit rules, execute Outgoing Action
Label "pageSelector"
if oo==148 then Goto "page1Selector"
if oo==149 then Goto "page2Selector"
if oo==150 then Goto "page3Selector"
if oo==151 then Goto "page4Selector"
exit rules, skip Outgoing Action
Label "page1Selector"
qq=144
rr=30
exit rules, execute Outgoing Action
Label "page2Selector"
qq=144
rr=36
exit rules, execute Outgoing Action
Label "page3Selector"
qq=144
rr=42
exit rules, execute Outgoing Action
Label "page4Selector"
qq=144
rr=48
exit rules, execute Outgoing Action
Label "RemixDeckOffControls"
if he!=0 then exit rules, skip Outgoing Action
if oo<132 then exit rules, skip Outgoing Action
if vv==53 then Goto "remixRow1Off"
if vv==54 then Goto "remixRow2Off"
if vv==55 then Goto "remixRow3Off"
if vv==56 then Goto "remixRow4Off"
if vv==57 then Goto "pageSelectorOff"
if vv>57 then exit rules, skip Outgoing Action
Label "remixRow1Off"
if oo==132 then Goto "slot1Cell1Off"
if oo==133 then Goto "slot2Cell1Off"
if oo==134 then Goto "slot3Cell1Off"
if oo==135 then Goto "slot4Cell1Off"
exit rules, skip Outgoing Action
Label "slot1Cell1Off"
qq=128
rr=26
exit rules, execute Outgoing Action
Label "slot2Cell1Off"
qq=128
rr=32
exit rules, execute Outgoing Action
Label "slot3Cell1Off"
qq=128
rr=38
exit rules, execute Outgoing Action
Label "slot4Cell1Off"
qq=128
rr=44
exit rules, execute Outgoing Action
Label "remixRow2Off"
if oo==132 then Goto "slot1Cell2Off"
if oo==133 then Goto "slot2Cell2Off"
if oo==134 then Goto "slot3Cell2Off"
if oo==135 then Goto "slot4Cell2Off"
exit rules, skip Outgoing Action
Label "slot1Cell2Off"
qq=128
rr=27
exit rules, execute Outgoing Action
Label "slot2Cell2Off"
qq=128
rr=33
exit rules, execute Outgoing Action
Label "slot3Cell2Off"
qq=128
rr=39
exit rules, execute Outgoing Action
Label "slot4Cell2Off"
qq=128
rr=45
exit rules, execute Outgoing Action
Label "remixRow3Off"
if oo==132 then Goto "slot1Cell3Off"
if oo==133 then Goto "slot2Cell3Off"
if oo==134 then Goto "slot3Cell3Off"
if oo==135 then Goto "slot4Cell3Off"
exit rules, skip Outgoing Action
Label "slot1Cell3Off"
qq=128
rr=28
exit rules, execute Outgoing Action
Label "slot2Cell3Off"
qq=128
rr=34
exit rules, execute Outgoing Action
Label "slot3Cell3Off"
qq=128
rr=40
exit rules, execute Outgoing Action
Label "slot4Cell3Off"
qq=128
rr=46
exit rules, execute Outgoing Action
Label "remixRow4Off"
if oo==132 then Goto "slot1Cell4Off"
if oo==133 then Goto "slot2Cell4Off"
if oo==134 then Goto "slot3Cell4Off"
if oo==135 then Goto "slot4Cell4Off"
exit rules, skip Outgoing Action
Label "slot1Cell4Off"
qq=128
rr=29
exit rules, execute Outgoing Action
Label "slot2Cell4Off"
qq=128
rr=35
exit rules, execute Outgoing Action
Label "slot3Cell4Off"
qq=128
rr=41
exit rules, execute Outgoing Action
Label "slot4Cell4Off"
qq=128
rr=47
exit rules, execute Outgoing Action
Label "pageSelectorOff"
exit rules, execute Outgoing Action
Label "StopRows"
qq=oo
if oo==148 then Goto "stopSlot1"
if oo==149 then Goto "stopSlot2"
if oo==150 then Goto "stopSlot3"
if oo==151 then Goto "stopSlot4"
exit rules, skip Outgoing Action
Label "stopSlot1"
qq=144
rr=31
exit rules, execute Outgoing Action
Label "stopSlot2"
qq=144
rr=37
exit rules, execute Outgoing Action
Label "stopSlot3"
qq=144
rr=43
exit rules, execute Outgoing Action
Label "stopSlot4"
qq=144
rr=49
exit rules, execute Outgoing Action
Label "StopAllPlay"
if oo==128 then exit rules, skip Outgoing Action
oo=oo
qq=178
rr=14
ss=pp
exit rules, execute Outgoing Action
Label "SequencerSync"
qq=178
rr=15
ss=pp
exit rules, execute Outgoing Action
Label "Keylock"
if oo==144 then Goto "keySlot1"
if oo==145 then Goto "keySlot2"
if oo==146 then Goto "keySlot3"
if oo==147 then Goto "keySlot4"
if oo<=135 then exit rules, skip Outgoing Action
if oo>147 then Goto "FXon"
exit rules, skip Outgoing Action
Label "keySlot1"
qq=178
rr=102
ss=pp
exit rules, execute Outgoing Action
Label "keySlot2"
qq=178
rr=103
ss=pp
exit rules, execute Outgoing Action
Label "keySlot3"
qq=178
rr=104
ss=pp
exit rules, execute Outgoing Action
Label "keySlot4"
qq=178
rr=105
ss=pp
exit rules, execute Outgoing Action
Label "Monitor"
if oo>147 then Goto "FX3&4Buttons"
if oo==144 then Goto "monSlot1"
if oo==145 then Goto "monSlot2"
if oo==146 then Goto "monSlot3"
if oo==147 then Goto "monSlot4"
if oo<=131 then exit rules, skip Outgoing Action
exit rules, skip Outgoing Action
Label "monSlot1"
qq=178
rr=110
ss=pp
exit rules, execute Outgoing Action
Label "monSlot2"
qq=178
rr=111
ss=pp
exit rules, execute Outgoing Action
Label "monSlot3"
qq=178
rr=112
ss=pp
exit rules, execute Outgoing Action
Label "monSlot4"
qq=178
rr=113
ss=pp
exit rules, execute Outgoing Action
Label "Punch"
if oo==144 then Goto "punchSlot1"
if oo==145 then Goto "punchSlot2"
if oo==146 then Goto "punchSlot3"
if oo==147 then Goto "punchSlot4"
if oo==148 then Goto "FX4Button1"
if oo==149 then Goto "FX4Button2"
if oo==150 then Goto "FX4Button3"
if oo==151 then Goto "SpareButton2"
if oo<=131 then exit rules, skip Outgoing Action
exit rules, skip Outgoing Action
Label "punchSlot1"
qq=178
rr=114
ss=pp
exit rules, execute Outgoing Action
Label "punchSlot2"
qq=178
rr=115
ss=pp
exit rules, execute Outgoing Action
Label "punchSlot3"
qq=178
rr=116
ss=pp
exit rules, execute Outgoing Action
Label "punchSlot4"
qq=178
rr=117
ss=pp
exit rules, execute Outgoing Action
Label "FXon"
if oo==148 then Goto "FX1on"
if oo==149 then Goto "FX2on"
if oo==150 then Goto "FX3on"
if oo==151 then Goto "FX4on"
exit rules, skip Outgoing Action
Label "FX1on"
qq=144
rr=69
exit rules, execute Outgoing Action
Label "FX2on"
qq=144
rr=72
exit rules, execute Outgoing Action
Label "FX3on"
qq=144
rr=75
exit rules, execute Outgoing Action
Label "FX4on"
qq=144
rr=78
exit rules, execute Outgoing Action
Label "FXoff"
exit rules, skip Outgoing Action
if oo==132 then Goto "FX1off"
if oo==133 then Goto "FX2off"
if oo==134 then Goto "FX3off"
if oo==135 then Goto "FX4off"
Label "FX1off"
qq=144
rr=69
exit rules, execute Outgoing Action
Label "FX2off"
qq=144
rr=72
exit rules, execute Outgoing Action
Label "FX3off"
qq=144
rr=75
exit rules, execute Outgoing Action
Label "FX4off"
qq=144
rr=78
exit rules, execute Outgoing Action
Label "LoadMod"
qq=oo
rr=51
ss=pp
exit rules, execute Outgoing Action
Label "CaptureMod"
qq=oo
rr=50
ss=pp
exit rules, execute Outgoing Action
Label "ReverseMod"
qq=oo
rr=53
ss=pp
exit rules, execute Outgoing Action
Label "DeleteMod"
qq=oo
rr=52
ss=pp
exit rules, execute Outgoing Action
Label "DeckA"
if he!=0 then exit rules, skip Outgoing Action
qq=178
rr=119
ss=pp
exit rules, execute Outgoing Action
Label "DeckB"
if he!=0 then exit rules, skip Outgoing Action
qq=178
rr=120
ss=pp
exit rules, execute Outgoing Action
Label "DeckC"
if he!=0 then exit rules, skip Outgoing Action
qq=178
rr=121
ss=pp
exit rules, execute Outgoing Action
Label "LoopRec"
if he!=0 then exit rules, skip Outgoing Action
qq=178
rr=122
ss=pp
exit rules, execute Outgoing Action
Label "FX3&4Buttons"
if vv<49 then Goto "FX4Buttons"
if oo==148 then Goto "FX3Button1"
if oo==149 then Goto "FX3Button2"
if oo==150 then Goto "FX3Button3"
if oo==151 then Goto "SpareButton1"
exit rules, skip Outgoing Action
Label "FX3Button1"
qq=178
rr=40
ss=pp
exit rules, execute Outgoing Action
Label "FX3Button2"
qq=178
rr=41
ss=pp
exit rules, execute Outgoing Action
Label "FX3Button3"
qq=178
rr=42
ss=pp
exit rules, execute Outgoing Action
Label "SpareButton1"
qq=178
rr=43
exit rules, execute Outgoing Action
Label "FX4Button1"
qq=178
rr=44
ss=pp
exit rules, execute Outgoing Action
Label "FX4Button2"
qq=178
rr=45
ss=pp
exit rules, execute Outgoing Action
Label "FX4Button3"
qq=178
rr=46
ss=pp
exit rules, execute Outgoing Action
Label "SpareButton2"
qq=178
rr=47
exit rules, execute Outgoing Action
Label "Browse"
if oo!=144 then exit rules, skip Outgoing Action
if vv==94 then Goto "Up"
if vv==95 then Goto "Down"
if vv==96 then Goto "Expand"
if vv==97 then Goto "Collapse"
Label "Up"
qq=178
rr=50
exit rules, execute Outgoing Action
Label "Down"
qq=178
rr=51
exit rules, execute Outgoing Action
Label "Expand"
qq=178
rr=52
exit rules, execute Outgoing Action
Label "Collapse"
qq=178
rr=53
exit rules, execute Outgoing Action
Label "LoopRecOn"
if oo!=144 then exit rules, skip Outgoing Action
qq=178
rr=54
exit rules, execute Outgoing Action
Label "LoadSetDeckD"
if oo!=144 then exit rules, skip Outgoing Action
qq=178
rr=55
exit rules, execute Outgoing Action
Label "LoopRecSize"
if oo!=144 then exit rules, skip Outgoing Action
qq=178
if vv==58 then Goto "size4"
if vv==59 then Goto "size8"
if vv==60 then Goto "size16"
if vv==61 then Goto "size32"
exit rules, skip Outgoing Action
Label "size4"
rr=56
exit rules, execute Outgoing Action
Label "size8"
rr=57
exit rules, execute Outgoing Action
Label "size16"
rr=58
exit rules, execute Outgoing Action
Label "size32"
rr=59
exit rules, execute Outgoing Action
Outgoing: MIDI qq rr ss