Need help with ambitious project - DJ Hero Midi Control for windows. May 30, 2011 08:08AM | Registered: 13 years ago Posts: 8 |
Re: Need help with ambitious project - DJ Hero Midi Control for windows. May 30, 2011 05:02PM | Registered: 15 years ago Posts: 379 |
Re: Need help with ambitious project - DJ Hero Midi Control for windows. August 16, 2011 06:16AM | Registered: 13 years ago Posts: 14 |
Re: Need help with ambitious project - DJ Hero Midi Control for windows. August 23, 2011 01:25AM | Registered: 13 years ago Posts: 1 |
Re: Need help with ambitious project - DJ Hero Midi Control for windows. August 31, 2011 08:47AM | Registered: 13 years ago Posts: 8 |
Re: Need help with ambitious project - DJ Hero Midi Control for windows. August 31, 2011 06:41PM | Registered: 13 years ago Posts: 14 |
Re: Need help with ambitious project - DJ Hero Midi Control for windows. August 31, 2011 08:29PM | Registered: 13 years ago Posts: 8 |
Re: Need help with ambitious project - DJ Hero Midi Control for windows. August 31, 2011 08:34PM | Registered: 13 years ago Posts: 14 |
Re: Need help with ambitious project - DJ Hero Midi Control for windows. August 31, 2011 10:31PM | Registered: 13 years ago Posts: 8 |
Re: Need help with ambitious project - DJ Hero Midi Control for windows. August 31, 2011 11:27PM | Registered: 13 years ago Posts: 14 |
Re: Need help with ambitious project - DJ Hero Midi Control for windows. September 01, 2011 02:54AM | Registered: 13 years ago Posts: 8 |
Re: Need help with ambitious project - DJ Hero Midi Control for windows. September 01, 2011 05:35AM | Registered: 13 years ago Posts: 14 |
Re: Need help with ambitious project - DJ Hero Midi Control for windows. September 01, 2011 08:58AM | Registered: 13 years ago Posts: 8 |
Re: Need help with ambitious project - DJ Hero Midi Control for windows. September 01, 2011 09:23PM | Registered: 13 years ago Posts: 8 |
Re: Need help with ambitious project - DJ Hero Midi Control for windows. September 01, 2011 10:30PM | Registered: 13 years ago Posts: 14 |
Re: Need help with ambitious project - DJ Hero Midi Control for windows. September 01, 2011 11:28PM | Registered: 13 years ago Posts: 8 |
midi.Control7 = MapRange(var.CS,-7,7,0,1) // crossfader midi.Control8 = MapRange(var.RTT,30,30,0,1) //Turntable
< device name="WiiDJHero2" author="Jezzick" type="MIDI" decks="2" drivernamein="LoopBe Internal MIDI"> < encoder cc="0x08" zero=0" name="Turntable" channel="1" deck="2" /> < slider cc="0x07" name="Crossfader" channel="1"/> < /device>
Re: Need help with ambitious project - DJ Hero Midi Control for windows. September 04, 2011 05:41AM | Registered: 13 years ago Posts: 14 |
Re: Need help with ambitious project - DJ Hero Midi Control for windows. September 14, 2011 08:19PM | Registered: 13 years ago Posts: 1 |
// Wii DJ Hero Midi Output // Jezzick (Thanks to Facing Tomorrow and Guy from GlovePie.org) // Traktor/Osculator changes by Moz debug="<"+wiimote.Exists+"> " if(wiimote.Exists) then if(key.Space) then debug+=" *** POKE!! ***" var.space=true var.ini=true endif if(!var.space) debug+=" Safe to connect. Press SPACE to poke" else debug+=" ..waiting to connect.." wait 10ms endif if(var.ini) then debug+=" Active :D" if(!var.init) then WiimotePoke(1, 0x4A400F0, 0x55) // Decrypt wait 100ms WiimotePoke(1, 0x4A400FB, 0) // Unknown wait 100ms WiimotePoke(1, 0x4A40040, 0) wait 100ms WiimoteSend(1, 0x17, 0x04, 0xA4, 0x00, 0xF0, 0, 16) // get type midi.DeviceOut = 2 midi.DefaultChannel = 1 var.init = true endif var.SX = (wiimote.Exp0 & 0x3F) - 31 var.SY = (wiimote.Exp1 & 0x3F) - 31 var.BE = !(wiimote.Exp5 & 0x10) var.BM = !(wiimote.Exp4 & 0x10) var.BP = !(wiimote.Exp4 & 0x04) var.ED = ((wiimote.Exp2 & 0x60) >> 2) + ((wiimote.Exp3 & 0xE0) >> 5) var.CS = ((wiimote.Exp2 & 0x1E) >> 1) - 8 var.RTT =((wiimote.Exp0 & 0xC0) >> 3) + ((wiimote.Exp1 & 0xC0) >> 5) + ((wiimote.Exp2 & 0x80) >> 7) if (wiimote.Exp2 & 0x01) var.RTT = var.RTT - 32 var.RBG =!(wiimote.Exp5 & 0x20) var.RBR =!(wiimote.Exp4 & 0x02) var.RBB =!(wiimote.Exp5 & 0x04) 'var.LTT = (wiimote.Exp3 & 0x1F) 'if (wiimote.Exp4 & 0x01) var.LTT = var.LTT - 32 'var.LBG =!(wiimote.Exp5 & 0x08) 'var.LBR =!(wiimote.Exp4 & 0x20) 'var.LBB =!(wiimote.Exp5 & 0x80) var.WONE = Wiimote.One var.WTWO = Wiimote.Two var.WA = Wiimote.A var.WDOWN = Wiimote.Down var.WUP = Wiimote.Up var.WHOME = Wiimote.Home var.WPLUS = Wiimote.Plus var.WMINUS = Wiimote.Minus var.WLED1 = midi.Control101 var.WLED2 = midi.Control102 var.WLED3 = midi.Control103 var.WLED4 = midi.Control104 if(var.CS<0)var.CS++ if not var.BE == var.BE1 then midi.Control0 = var.BE if not var.BM == var.BM1 then midi.Control1 = var.BM if not var.BP == var.BP1 then midi.Control2 = var.BP if not var.ED == var.ED1 then midi.Control3 = MapRange(var.ED,0,31,0,1) if not var.RBG == var.RBG1 then midi.Control4 = var.RBG if not var.RBB == var.RBB1 then midi.Control5 = var.RBB if not var.RBR == var.RBR1 then midi.Control6 = var.RBR if not var.RTT == 0 then midi.Control7 = MapRange(var.RTT,-30,30,0,1) if not var.CS == var.CS1 then midi.Control8 = MapRange(var.CS,-7,7,0,1) if not var.WONE == var.WONE1 then midi.Control9 = var.WONE if not var.WTWO == var.WTWO1 then midi.Control10 = var.WTWO if not var.WA == var.WA1 then midi.Control11 = var.WA if not var.WDOWN == var.WDOWN1 then midi.Control12 = var.WDOWN if not var.WUP == var.WUP1 then midi.Control13 = var.WUP 'if not var.SX == 0 then midi.Control14 = MapRange(var.SX,-31,32,0,1) if not var.SY == 0 then midi.Control15 = MapRange(var.SY,-31,32,0,1) if not var.WHOME == var.WHOME1 then midi.Control16 = var.WHOME if not var.WPLUS == var.WPLUS1 then midi.Control17 = var.WPLUS if not var.WMINUS == var.WMINUS1 then midi.Control18 = var.WMINUS Wiimote.Led1 = var.WLED1 Wiimote.Led2 = var.WLED2 Wiimote.Led3 = var.WLED3 Wiimote.Led4 = var.WLED4 'var.SX1 = var.SX 'var.SY1 = var.SY var.BE1 = var.BE var.BM1 = var.BM var.BP1 = var.BP var.ED1 = var.ED var.CS1 = var.CS 'var.RTT1 = var.RTT var.RBG1 = var.RBG var.RBR1 = var.RBR var.RBB1 = var.RBB 'var.LTT1 = var.LTT 'var.LBG1 = var.LBG 'var.LBR1 = var.LBR 'var.LBB1 = var.LBB var.WONE1 = var.WONE var.WTWO1 = var.WTWO var.WA1 = var.WA var.WDOWN1 = var.WDOWN var.WUP1 = var.WUP var.WHOME1 = var.WHOME var.WPLUS1 = var.WPLUS var.WMINUS1 = var.WMINUS var.WLED1 = var.WLED11 var.WLED2 = var.WLED21 var.WLED3 = var.WLED31 var.WLED4 = var.WLED41 endif
Re: Need help with ambitious project - DJ Hero Midi Control for windows. September 14, 2011 08:41PM | Registered: 13 years ago Posts: 14 |
Re: Need help with ambitious project - DJ Hero Midi Control for windows. December 10, 2011 06:48AM | Registered: 13 years ago Posts: 14 |