<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Need help with ambitious project - DJ Hero Midi Control for windows.</title>
<description>I&#039;ll start with an introduction since i&#039;m new round these parts. B)

Im 19, Computer Science major, Huge techie and EDM fan.

I found out about osculator via youtube and immediately rushed out to get the DJ hero turntable, hoping I could begin to learn the basics of DJing with a pair of tables and Traktor Scratch, only to find out that there is no similar program/setup for Windows PC&#039;s. :(

A few weeks of research and trial and error later, I&#039;m no further towards the convienient setup I hoped for. 

I was able to hijack my moms mac for a few hours and get the setup working perfectly, but i decided I need to find a way to do it on my own computer. 

I tried:
Osculator in VMware running OSX. (The versions of Osculator that are new enough to support the turntables won&#039;t run on either of my AMD computers.)

GlovePIE Programmable Midi Emulator. (The program appears to have ceased development and supports every part of the Turntable accessory but the actual platter.)

Did research into Pure Data as a Midi Controller program... which still relies on osculator to receive input from Turntable. &gt;_&lt;

It now appears as though if I want to use these in a windows environment, I will have to write the drivers myself. I have nowhere near the experience nessecary for this undertaking, but It appears as though most of the work has been done for me. I only need to tie these together. 

My plan is to use WiiRemoteJ, a java wiimote library, to write a java program capable of translating DJ Hero table data to midi. 

While WiiRemoteJ does not in itself support the DJ Hero Controller, It claims to support custom extensions, which is where most of my work will be done. 

If anybody would like to help me with this project, It would be pretty sweet. No Solution exists yet, so we would be helping out a ton of people! 

What I need to figure out right now, is how I can write a custom extension in wiiremoteJ, and How to interpret the DJ Hero Table Data to fit that schema. 

I would be open to any other suggestions as well, for libraries or ways to accomplish this. I have only programmed in Java, so I think it will have to do, unless we can skip that step entirely somehow. 

Thanks in advance, and I look forward to meeting and hearing from all of you!</description><link>http://forum.wiibrew.org/read.php?26,66518,66518#msg-66518</link><lastBuildDate>Tue, 16 Jun 2026 11:31:35 +0200</lastBuildDate>
<generator>Phorum 5.2.23</generator>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,73409#msg-73409</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,73409#msg-73409</link><description><![CDATA[ HELP ME !!!!!!!!!!<br /><br />The dj hero Controller ins connected Tor my PC&#039;s Bluetooth<br />And it works with glovepie&#039;s key mapping but MIDI dosn&#039;t work<br />Glovepie US connected to Thema wiimote with TT<br />Pole ins activate and IT says true<br />But i can&#039;t mapping IT in Traktor<br />Im using MIDI Yoke<br /><br />WHATS WRONG ??????????????????]]></description>
<dc:creator>BestBeat</dc:creator>
<category>Ideas, requests</category><pubDate>Sat, 27 Jul 2013 12:22:22 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,72580#msg-72580</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,72580#msg-72580</link><description><![CDATA[ Ok sorry to be that guy posting his terrible code in the forum, but right now I&#039;m that guy.<br /><br />I went back to the original code. Right now I have two wiimotes working. One has a mixer and two turntables. The other has only the mixer. Everything works as it should except my wiimote2 only sends data from the remote. It is ignoring the mixer. The variables all read at their highest , CS at 7, SX and SY at 32, ED at 31.<br /><br />Will a mixer work by itself or does it have to have at least 1 turntable to function? Here is what I have<br /><br /><blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />/// Wii DJ Hero Midi Output<br />// Jezzick (Thanks to Facing Tomorrow and Guy from GlovePie.org)<br />// Traktor/Osculator changes by Moz<br /><br />debug="&lt;"+wiimote.Exists+"&gt; "<br /><br />if(wiimote.Exists) then<br />if(key.Space) then<br />debug+=" *** POKE!! ***"<br />var.space=true<br />var.ini=true<br />endif<br />if(!var.space) debug+=" Safe to connect. Press SPACE to poke"<br />else<br />debug+=" ..waiting to connect.."<br />wait 10ms<br />endif<br /><br />if(var.ini) then<br />debug+=" Active :D"<br />if(!var.init) then<br />WiimotePoke(1, 0x4A400F0, 0x55) // Decrypt<br />wait 100ms<br />WiimotePoke(1, 0x4A400FB, 0) // Unknown<br />wait 100ms<br />WiimotePoke(1, 0x4A40040, 0)<br />wait 100ms<br />WiimoteSend(1, 0x17, 0x04, 0xA4, 0x00, 0xF0, 0, 16) // get type<br /><br />midi.DeviceOut = 2<br />midi.DefaultChannel = 1<br /><br />var.init = true<br />endif<br /><br />var.SX = (wiimote1.Exp0 & 0x3F) - 31<br />var.SY = (wiimote1.Exp1 & 0x3F) - 31<br />var.BE = !(wiimote1.Exp5 & 0x10)<br />var.BM = !(wiimote1.Exp4 & 0x10)<br />var.BP = !(wiimote1.Exp4 & 0x04)<br />var.ED = ((wiimote1.Exp2 & 0x60) &gt;&gt; 2) + ((wiimote1.Exp3 & 0xE0) &gt;&gt; 5)<br />var.CS = ((wiimote1.Exp2 & 0x1E) &gt;&gt; 1) - 8<br />var.RTT =((wiimote1.Exp0 & 0xC0) &gt;&gt; 3) + ((wiimote1.Exp1 & 0xC0) &gt;&gt; 5) + ((wiimote1.Exp2 & 0x80) &gt;&gt; 7)<br />if (wiimote1.Exp2 & 0x01) var.RTT = var.RTT - 32<br />var.RBG =!(wiimote1.Exp5 & 0x20)<br />var.RBR =!(wiimote1.Exp4 & 0x02)<br />var.RBB =!(wiimote1.Exp5 & 0x04)<br />var.LTT = (wiimote1.Exp3 & 0x1F)<br />if (wiimote1.Exp4 & 0x01) var.LTT = var.LTT - 32<br />var.LBG =!(wiimote1.Exp5 & 0x08)<br />var.LBR =!(wiimote1.Exp4 & 0x20)<br />var.LBB =!(wiimote1.Exp5 & 0x80)<br /><br />var.WONE = wiimote1.One<br />var.WTWO = wiimote1.Two<br />var.WA = wiimote1.A<br />var.WDOWN = wiimote1.Down<br />var.WUP = wiimote1.Up<br />var.WHOME = wiimote1.Home<br />var.WPLUS = wiimote1.Plus<br />var.WMINUS = wiimote1.Minus<br /><br />var.SX2 = (wiimote2.Exp0 & 0x3F) - 31<br />var.SY2 = (wiimote2.Exp1 & 0x3F) - 31<br />var.BE2 = !(wiimote2.Exp5 & 0x10)<br />var.BM2 = !(wiimote2.Exp4 & 0x10)<br />var.BP2 = !(wiimote2.Exp4 & 0x04)<br />var.ED2 = ((wiimote2.Exp2 & 0x60) &gt;&gt; 2) + ((wiimote2.Exp3 & 0xE0) &gt;&gt; 5)<br />var.CS2 = ((wiimote2.Exp2 & 0x1E) &gt;&gt; 1) - 8<br /><br />var.WONE2 = wiimote2.One<br />var.WTWO2 = wiimote2.Two<br />var.WA2 = wiimote2.A<br />var.WDOWN2 = wiimote2.Down<br />var.WUP2 = wiimote2.Up<br />var.WHOME2 = wiimote2.Home<br />var.WPLUS2 = wiimote2.Plus<br />var.WMINUS2 = wiimote2.Minus<br /><br /><br />if(var.CS&lt;0)var.CS++<br /><br />if not var.BE == var.BE1 then midi.Control0 = var.BE<br />if not var.BM == var.BM1 then midi.Control1 = var.BM<br />if not var.BP == var.BP1 then midi.Control2 = var.BP<br />if not var.ED == var.ED1 then midi.Control3 = MapRange(var.ED,0,31,0,1)<br />if not var.RBG == var.RBG1 then midi.Control4 = var.RBG<br />if not var.RBB == var.RBB1 then midi.Control5 = var.RBB<br />if not var.RBR == var.RBR1 then midi.Control6 = var.RBR<br />if not var.RTT == 0 then midi.Control7 = MapRange(var.RTT,-30,30,0,1)<br />if not var.CS == var.CS1 then midi.Control8 = MapRange(var.CS,-7,7,0,1)<br />if not var.WONE == var.WONE1 then midi.Control9 = var.WONE<br />if not var.WTWO == var.WTWO1 then midi.Control10 = var.WTWO<br />if not var.WA == var.WA1 then midi.Control11 = var.WA<br />if not var.WDOWN == var.WDOWN1 then midi.Control12 = var.WDOWN<br />if not var.WUP == var.WUP1 then midi.Control13 = var.WUP<br />if not var.SX == 0 then midi.Control14 = MapRange(var.SX,-31,32,0,1)<br />if not var.SY == 0 then midi.Control15 = MapRange(var.SY,-31,32,0,1)<br />if not var.WHOME == var.WHOME1 then midi.Control16 = var.WHOME<br />if not var.WPLUS == var.WPLUS1 then midi.Control17 = var.WPLUS<br />if not var.WMINUS == var.WMINUS1 then midi.Control18 = var.WMINUS<br /><br />var.SX1 = var.SX<br />var.SY1 = var.SY<br />var.BE1 = var.BE<br />var.BM1 = var.BM<br />var.BP1 = var.BP<br />var.ED1 = var.ED<br />var.CS1 = var.CS<br />var.RTT1 = var.RTT<br />var.RBG1 = var.RBG<br />var.RBR1 = var.RBR<br />var.RBB1 = var.RBB<br />var.LTT1 = var.LTT<br />var.LBG1 = var.LBG<br />var.LBR1 = var.LBR<br />var.LBB1 = var.LBB<br />var.WONE1 = var.WONE<br />var.WTWO1 = var.WTWO<br />var.WA1 = var.WA<br />var.WDOWN1 = var.WDOWN<br />var.WUP1 = var.WUP<br />var.WHOME1 = var.WHOME<br />var.WPLUS1 = var.WPLUS<br />var.WMINUS1 = var.WMINUS<br />endif<br /><br />if(var.CS2&lt;0)var.CS2++<br /><br />if not var.BE2 == var.BE12 then midi.Control50 = var.BE2<br />if not var.BM2 == var.BM12 then midi.Control51 = var.BM2<br />if not var.BP2 == var.BP12 then midi.Control52 = var.BP2<br />if not var.ED2 == var.ED12 then midi.Control53 = MapRange(var.ED2,0,31,0,1)<br />if not var.CS2 == var.CS12 then midi.Control58 = MapRange(var.CS2,-7,7,0,1)<br />if not var.WONE2 == var.WONE12 then midi.Control59 = var.WONE2<br />if not var.WTWO2 == var.WTWO12 then midi.Control60 = var.WTWO2<br />if not var.WA2 == var.WA12 then midi.Control61 = var.WA2<br />if not var.WDOWN2 == var.WDOWN12 then midi.Control62 = var.WDOWN2<br />if not var.WUP2 == var.WUP12 then midi.Control63 = var.WUP2<br />if not var.SX2 == 0 then midi.Control64 = MapRange(var.SX2,-31,32,0,1)<br />if not var.SY2 == 0 then midi.Control65 = MapRange(var.SY2,-31,32,0,1)<br />if not var.WHOME2 == var.WHOME12 then midi.Control66 = var.WHOME2<br />if not var.WPLUS2 == var.WPLUS12 then midi.Control67 = var.WPLUS2<br />if not var.WMINUS2 == var.WMINUS12 then midi.Control68 = var.WMINUS2<br /><br />var.SX12 = var.SX2<br />var.SY12 = var.SY2<br />var.BE12 = var.BE2<br />var.BM12 = var.BM2<br />var.BP12 = var.BP2<br />var.ED12 = var.ED2<br />var.CS12 = var.CS2<br />var.WONE12 = var.WONE2<br />var.WTWO12 = var.WTWO2<br />var.WA12 = var.WA2<br />var.WDOWN12 = var.WDOWN2<br />var.WUP12 = var.WUP2<br />var.WHOME12 = var.WHOME2<br />var.WPLUS12 = var.WPLUS2<br />var.WMINUS12 = var.WMINUS2<br />endif<br /></div></blockquote>]]></description>
<dc:creator>gnunoob</dc:creator>
<category>Ideas, requests</category><pubDate>Thu, 21 Feb 2013 01:56:41 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,72578#msg-72578</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,72578#msg-72578</link><description><![CDATA[ One thing for sure wrong with my script is I have LTT assigned twice. Since last post I have decided to just use the right turn table on each mixer to eliminate the need for the LTT variable.<br /><br />I have managed to get my computer to recieve midi from the wiimote/djhero/glovepie/midiyoke configuration again. However, in the bottom corner of Deckadance (the software I am using) it displays incoming midi signals. It just cycles over and over let its getting constantly hit with midi notes. Must be some place in the script causing an infinate loop of midi notes or something like that.]]></description>
<dc:creator>gnunoob</dc:creator>
<category>Ideas, requests</category><pubDate>Wed, 20 Feb 2013 19:10:35 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,72577#msg-72577</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,72577#msg-72577</link><description><![CDATA[ I stepped away from this project for a while after breaking down and spending money on a new Launchpad but once again have a need for the Wii DJ Hero Midi controller. I&#039;m not sure how I messed things up but my script no longer works.<br /><br />I was getting an error from MidiYoke saying that feedback was detected. I took that to mean I was sending to the same Midi channel twice. I&#039;m in Windows XP Pro, in sound settings, my default Midi playback device was set to MidiYoke 1. I changed the option to my Tascam US-122. Microsoft GS Wavetable was the only other option. Well that and 16 MidiYoke channels.<br /><br />So now I see the variables changing in Glovepie as they should, I am getting no feedback errors, but I am not sending Midi from my Wiimotes.<br /><br />There is another script out, Wii2MIDIv1.4. It differs from this script in the following ways:<br />1.) It sends Midi notes rather than controls<br />2.) does not have a line giving a midi.DeviceOut and<br />3.) rather than saying generic Midi.ControlXX it has Midi.Yoke1.Channel1.C5 listing specific notes<br /><br />The Wii2MIDI script works. With no deviceout and with the full name of the midi channel. So my thinking was, I will change the DJ Hero script to work the same way. It does not! I even tried taking out all variables except the ones listed in Wii2MIDI and it still doesn&#039;t work.<br /><br />I am almost certain that my error is in the way I have Glovepie using 2 Wiimotes and 2 DJ Hero sets. In setting up 2 sets of variables and 2 Wiimotes I may have messed something up in the configs.<br /><br />For example, for the crossfader there is a line: if(var.CS&lt;0)var.CS++<br /><br />That statement is ended at the bottom of the script. But having a CS and CS1, do I not need to have the same line of code with CS1? When I place an End If between the two sets of variables and include: if(var.CS1&lt;0)var.CS1++ Glovepie locks up and my PC fans kick into overdrive.<br /><br />I would be happy with either:1 Mixer with 2 turntables on right and left and the other mixer being just a mixer, or using a mixer and turntable together as 2 sets. What I REALLY want are the 2 mixers anyway, the turntables are mostly for looks and the 3 extra buttons. So if a 2 turntable 1 mixer on the same Wiimote is the easiest way, I would still like for there to be a way to use other mixer by itself.<br /><br />Here is the script I have been trying to fix. Any advice would be great. It must be something simple that I&#039;m just not seeing. Either that or I have a bad component in one of my mixers sending errors.<br /><br /><blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />debug="&lt;"+wiimote.Exists+"&gt; "<br /><br />if(wiimote.Exists) then<br />if(key.Space) then<br />debug+=" *** POKE!! ***"<br />var.space=true<br />var.ini=true<br />endif<br />if(!var.space) debug+=" Safe to connect. Press SPACE to poke"<br />else<br />debug+=" ..waiting to connect.."<br />wait 10ms<br />endif<br /><br />if(var.ini) then<br />debug+=" Active :D"<br />if(!var.init) then<br />WiimotePoke(1, 0x4A400F0, 0x55) // Decrypt<br />wait 100ms<br />WiimotePoke(1, 0x4A400FB, 0) // Unknown<br />wait 100ms<br />WiimotePoke(1, 0x4A40040, 0)<br />wait 100ms<br />WiimoteSend(1, 0x17, 0x04, 0xA4, 0x00, 0xF0, 0, 16) // get type<br /><br />midi.DeviceOut = 2<br />midi.DefaultChannel = 1<br /><br />var.init = true<br />endif<br /><br />var.SX = (wiimote2.Exp0 & 0x3F) - 31<br />var.SY = (wiimote2.Exp1 & 0x3F) - 31<br />var.BE = !(wiimote2.Exp5 & 0x10)<br />var.BM = !(wiimote2.Exp4 & 0x10)<br />var.BP = !(wiimote2.Exp4 & 0x04)<br />var.ED = ((wiimote2.Exp2 & 0x60) &gt;&gt; 2) + ((wiimote2.Exp3 & 0xE0) &gt;&gt; 5)<br />var.CS = ((wiimote2.Exp2 & 0x1E) &gt;&gt; 1) - 8<br />var.RTT =((wiimote2.Exp0 & 0xC0) &gt;&gt; 3) + ((wiimote2.Exp1 & 0xC0) &gt;&gt; 5) + ((wiimote2.Exp2 & 0x80) &gt;&gt; 7)<br />if (wiimote2.Exp2 & 0x01) var.RTT = var.RTT - 32<br />var.RBG =!(wiimote2.Exp5 & 0x20)<br />var.RBR =!(wiimote2.Exp4 & 0x02)<br />var.RBB =!(wiimote2.Exp5 & 0x04)<br />var.LTT = (wiimote2.Exp3 & 0x1F)<br />if (wiimote2.Exp4 & 0x01) var.LTT = var.LTT - 32<br />var.LBG =!(wiimote2.Exp5 & 0x08)<br />var.LBR =!(wiimote2.Exp4 & 0x20)<br />var.LBB =!(wiimote2.Exp5 & 0x80)<br />var.WONE = Wiimote2.One<br />var.WTWO = Wiimote2.Two<br />var.WA = Wiimote2.A<br />var.WDOWN = Wiimote2.Down<br />var.WUP = Wiimote2.Up<br />var.WHOME = Wiimote2.Home<br />var.WPLUS = Wiimote2.Plus<br />var.WMINUS = Wiimote2.Minus<br /><br /><br />var.SX1 = (wiimote1.Exp0 & 0x3F) - 31<br />var.SY1 = (wiimote1.Exp1 & 0x3F) - 31<br />var.BE1 = !(wiimote1.Exp5 & 0x10)<br />var.BM1 = !(wiimote1.Exp4 & 0x10)<br />var.BP1 = !(wiimote1.Exp4 & 0x04)<br />var.ED1 = ((wiimote1.Exp2 & 0x60) &gt;&gt; 2) + ((wiimote1.Exp3 & 0xE0) &gt;&gt; 5)<br />var.CS1 = ((wiimote1.Exp2 & 0x1E) &gt;&gt; 1) - 8<br />var.RTT1 =((wiimote1.Exp0 & 0xC0) &gt;&gt; 3) + ((wiimote1.Exp1 & 0xC0) &gt;&gt; 5) + ((wiimote1.Exp2 & 0x80) &gt;&gt; 7)<br />if (wiimote1.Exp2 & 0x01) var.RTT1 = var.RTT1 - 32<br />var.RBG1 =!(wiimote1.Exp5 & 0x20)<br />var.RBR1 =!(wiimote1.Exp4 & 0x02)<br />var.RBB1 =!(wiimote1.Exp5 & 0x04)<br />var.LTT1 = (wiimote1.Exp3 & 0x1F)<br />if (wiimote1.Exp4 & 0x01) var.LTT1 = var.LTT1 - 32<br />var.LBG1 =!(wiimote1.Exp5 & 0x08)<br />var.LBR1 =!(wiimote1.Exp4 & 0x20)<br />var.LBB1 =!(wiimote1.Exp5 & 0x80)<br />var.WONE1 = Wiimote1.One<br />var.WTWO1 = Wiimote1.Two<br />var.WA1 = Wiimote1.A<br />var.WDOWN1 = Wiimote1.Down<br />var.WUP1 = Wiimote1.Up<br />var.WHOME1 = Wiimote1.Home<br />var.WPLUS1 = Wiimote1.Plus<br />var.WMINUS1 = Wiimote1.Minus<br /><br /><br />if(var.CS&lt;0)var.CS++<br />midi.Yoke1.channel1.C1 = var.BE<br />midi.Yoke1.channel1.C2 = var.BM<br />midi.Yoke1.channel1.C3 = var.BP<br />midi.Control3 = MapRange(var.ED,0,31,0,1)<br />midi.Yoke1.channel1.B1 = var.RBG<br />midi.Yoke1.channel1.B2 = var.RBB<br />midi.Yoke1.channel1.B3 = var.RBR<br />midi.Yoke1.channel1.B4 = var.LBG<br />midi.Yoke1.channel1.B5 = var.LBB<br />midi.Yoke1.channel1.B6 = var.LBR<br />midi.Control6 = MapRange(var.LTT,-30,30,0,1)<br />midi.Control7 = MapRange(var.RTT,-30,30,0,1)<br />midi.Control8 = MapRange(var.CS,-7,7,0,1)<br />midi.Yoke1.channel1.C4 = var.WONE<br />midi.Yoke1.channel1.C5 = var.WTWO<br />midi.Yoke1.channel1.C6 = var.WA<br />midi.Yoke1.channel1.C7 = var.WDOWN<br />midi.Yoke1.channel1.C8 = var.WUP<br />midi.Control14 = MapRange(var.SX,-31,32,0,1)<br />midi.Control15 = MapRange(var.SY,-31,32,0,1)<br />midi.Yoke1.channel1.Csharp1 = var.WHOME<br />midi.Yoke1.channel1.Csharp2 = var.WPLUS<br />midi.Yoke1.channel1.Csharp3 = var.WMINUS+<br />endif<br />if(var.CS1&lt;0)var.CS1++<br />midi.Yoke1.channel1.Csharp4 = var.BE1<br />midi.Yoke1.channel1.Csharp5 = var.BM1<br />midi.Yoke1.channel1.Csharp6 = var.BP1<br />midi.Control22 = MapRange(var.ED1,0,31,0,1)<br />midi.Yoke1.channel1.A1 = var.RBG1<br />midi.Yoke1.channel1.A2 = var.RBB1<br />midi.Yoke1.channel1.A3 = var.RBR1<br />midi.Yoke1.channel1.A4 = var.LBG<br />midi.Yoke1.channel1.A5 = var.LBB<br />midi.Yoke1.channel1.A6 = var.LBR<br />midi.Control25 = MapRange(var.LTT,-30,30,0,1)<br />midi.Control26 = MapRange(var.RTT1,-30,30,0,1)<br />midi.Control28 = MapRange(var.CS1,-7,7,0,1)<br />midi.Yoke1.channel1.Csharp7 = var.WONE1<br />midi.Yoke1.channel1.Csharp8 = var.WTWO1<br />midi.Yoke1.channel1.E1 = var.WA1<br />midi.Yoke1.channel1.E2 = var.WDOWN1<br />midi.Yoke1.channel1.E3 = var.WUP1<br />midi.Control34 = MapRange(var.SX1,-31,32,0,1)<br />midi.Control35 = MapRange(var.SY1,-31,32,0,1)<br />midi.Yoke1.channel1.E4 = var.WHOME1<br />midi.Yoke1.channel1.E5 = var.WPLUS1<br />midi.Yoke1.channel1.E6 = var.WMINUS1<br />endif</div></blockquote>]]></description>
<dc:creator>gnunoob</dc:creator>
<category>Ideas, requests</category><pubDate>Wed, 20 Feb 2013 13:32:35 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,71478#msg-71478</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,71478#msg-71478</link><description><![CDATA[ I have returned to publicly confess that I have totally been doing this all wrong. Only now did i realize that there is a cover on the side of the mixer that pops off allowing for two decks to connect with one remote. I have really gone out of my way rewriting the midi mappings for two remotes with two totally different sets of variables... all of the questions I had about why this script is written the way that it is were answered the moment I knocked my mixer off the table and the side covering popped off.<br /><br />I&#039;ve been a fool, a noob even, it&#039;s so obvious! I cannot believe I have had this stuff since Christmas and I JUST NOW noticed, and now the variables LTT and RTT finally make sense. I have written the MAC address of each wiimote on its assigned set of turntables, and on the wiimote, so I would not have to worry getting them mixed up. My logic was functional, but still incorrect, my perspective on this issue was just so wrong. I suppose the universe has it&#039;s own way of dealing out justice and I probably had it coming anyway.<br /><br />On the other hand it forced me to learn how to script with Glovepie and I have used that knowledge to tackle several other issues I have had with controlling midi in a DAW or DJ program. Thanks for taking the time to post this topic and to help out a random stranger.<br /><br />Ive been using these things almost every day for 9-10 months and just now noticed.... ridiculous, the shame!]]></description>
<dc:creator>gnunoob</dc:creator>
<category>Ideas, requests</category><pubDate>Fri, 21 Sep 2012 18:07:49 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,70992#msg-70992</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,70992#msg-70992</link><description><![CDATA[ if you like glovepie scripting, you might check out virtual dj pro. it&#039;s got a scripting language that makes midi mapping and custom controls waaay easier. i considered switching over to traktor, but once i started mapping the midi, it really wasn&#039;t easy, if even possible, to do the same things.<br /><br />haha, yeah. it took quite some time to even find a bit of info about doing this, and i&#039;m not sure i can even find the original again.<br />but yeah, if you need any help with any of the scripting, feel free to ask.]]></description>
<dc:creator>FacingTomorrow</dc:creator>
<category>Ideas, requests</category><pubDate>Thu, 26 Jul 2012 00:29:04 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,70965#msg-70965</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,70965#msg-70965</link><description><![CDATA[ bout to test it out. got the balance board run&#039;n midi through a script i found, another wiimote w. nunchuck in a differnt prog in VM sending midi over vlan, 3 oldish blackberry bluetoothd with different keymapping input apps, 2 ati old school wonder remotes mapped, but i do have at least have a real midi keyboard from radioshack lol. if i was a rich man, i&#039;d go buy some gear to do all this... but im not so i gotta be creative.<br /><br />basically, this script isnt just saving me time producing but its saving me $$$ cause i can use all these other perephrial devices to do the same thing expensive midi controllers do pretty much, i wouldnt call these things professional equipment by themselves but it can be done well if its done right. plus most of them are light, portable, cross platform, not going out of style ever, cheap, can do other stuff besides just be a $2000 keyboard, so many advantages to using scripting programs like Glovepie.<br /><br />im loving glovepie, this loopbe, midiox midi yoke stuff, bluetooth&#039;n up some random stuff in my house, turn&#039;n them into FL studio and ableton midi controllers, traktor is actually fun to use now when before i hated it when someone insisted on me using it, and the ppjoy virtual joystick midi controllers, its like omg.<br /><br />best forum thread, ever, official. thanks so much for this i can&#039;t tell you how much this has improved my daily life lol thats probably sad but i stand by it.]]></description>
<dc:creator>gnunoob</dc:creator>
<category>Ideas, requests</category><pubDate>Sun, 22 Jul 2012 07:24:21 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,70963#msg-70963</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,70963#msg-70963</link><description><![CDATA[ yeah, if i remember right, just change all the &#039;wiimote&#039; to &#039;wiimote1&#039; and &#039;wiimote2&#039; for the second controller. it&#039;s been a while since i was messing around with that stuff, but that should work<br />pointless hobbies ftw!!<br /><br />&#039;Anti-spam software on this server has detected that your message might be spam. You are still allowed to post this message, but it will not be visible in the forums until a moderator approves it. You can now try to re-submit your posting.&#039; O.o]]></description>
<dc:creator>FacingTomorrow</dc:creator>
<category>Ideas, requests</category><pubDate>Sun, 22 Jul 2012 04:45:46 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,70961#msg-70961</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,70961#msg-70961</link><description><![CDATA[ ok yes, there are two sets of variables listed on the variables tab in glovepie once the script has been activated.<br /><br />but, both sets of data were mapped to 1 wiimote. i can see that my other remote is indeed connected, i can open the properties of both remotes and see that i am getting a signal.. so not a pairing problem.<br /><br />any advice on how i can get glovepie to split the data between the two remotes? if you&#039;d rather not explain it, a link to a tutorial or simple statement to google will do... i dont mind doin the work to figure it out but if someone already knows well then... reinventing the wheel never got anyone anywhere :)<br /><br />thanks to everyone here for their contributions you guys make my pointless hobbies possible and thats just great. any info on the topic would be greatly appreciated.]]></description>
<dc:creator>gnunoob</dc:creator>
<category>Ideas, requests</category><pubDate>Sun, 22 Jul 2012 03:23:57 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,70959#msg-70959</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,70959#msg-70959</link><description><![CDATA[ really? i never tried it i just assumed that since it wasnt described as two decks that it would need to be altered. ill give that a shot thanks for your quick response i do appreciate it.]]></description>
<dc:creator>gnunoob</dc:creator>
<category>Ideas, requests</category><pubDate>Sun, 22 Jul 2012 02:43:50 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,70946#msg-70946</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,70946#msg-70946</link><description><![CDATA[ it looks like that script should already allow the left and right decks, with each deck having its own data and variables..]]></description>
<dc:creator>FacingTomorrow</dc:creator>
<category>Ideas, requests</category><pubDate>Sat, 21 Jul 2012 05:44:03 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,70944#msg-70944</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,70944#msg-70944</link><description><![CDATA[ Moz77, I am using your script for my dj hero deck and its working great thank you for your contribution it has been of great value to me.<br /><br />lets say i want to use both decks... and both decks to have individual midi controls not share the same variables. How can I change the script to recognize two decks?]]></description>
<dc:creator>gnunoob</dc:creator>
<category>Ideas, requests</category><pubDate>Sat, 21 Jul 2012 02:22:27 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,68846#msg-68846</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,68846#msg-68846</link><description><![CDATA[ alright, hope all is going well on your guy&#039;s endeavors!<br />so i finally played the actual dj hero game today and noticed something that would normally go un-noticed<br />it appears that the euphoria button has a light, which is obviously controlled by the game<br />anyone know of a way to control this light, so you could like make it show the state of an fx or flash to the beat]]></description>
<dc:creator>FacingTomorrow</dc:creator>
<category>Ideas, requests</category><pubDate>Sat, 10 Dec 2011 06:48:16 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,67881#msg-67881</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,67881#msg-67881</link><description><![CDATA[ o hey, one thing i noticed is that when you use a low number control (control5, etc.), it appears that it also doubles it on a control message 32 higher. so if you happen to expand you code to use more than 32 control messages, once you map the 33rd it&#039;ll also react to the first one. i believe this is from the actual midi, having a LSB and MSB for certain values.<br /><br />nice Moz, though the different syntaxes throughout the code can get a bit confusing :P<br />also, one thing you might put in your code is a way so the script finds the proper midi device to use incase your loopbe/midiyoke isn&#039;t the first device<br />o and is the &#039; for not? it looks like it might be, but then you use it on var.sx (non-boolean)<br />and like i say earlier, i would suggest you try out virtual dj pro, even if you don&#039;t plan on using it. the scripting is amazing on it]]></description>
<dc:creator>FacingTomorrow</dc:creator>
<category>Ideas, requests</category><pubDate>Wed, 14 Sep 2011 20:41:40 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,67880#msg-67880</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,67880#msg-67880</link><description><![CDATA[ Thanks to everyone that has contributed before..<br /><br />Here&#039;s a short tutorial on how I got everything working + a modified script:<br /><br />I&#039;ve changed all of the mappings to be the same as the Osculator template.<br />Some of the code is commented out (the Left Turntable + Unused buttons) as I found that the more midi traffic you have the slower my pc gets!<br />The code isn&#039;t complete and is a bit crude, but at least everything including the turntable is working :)<br /><br />Software used:<br />Windows 7 x86<br />GlovePIE 0.43<br />Midiyoke<br />Traktor 2.03<br /><br />Install everything, for Midiyoke on windows 7, Disable UAC, Reboot, Install Midiyoke, then Reboot again!<br />To help with the Bluetooth, Right mouse on the Bluetooth icon, click Open Settings and tick the Allow Bluetooth devices to find this computer<br />Then go to Control Panel / System and Security / System and click Advanced System Settings on the Left<br />Click the Hardware tab and then Device Installation Settings, Change to: No, let me choose what to do and tick Install driver software from Windows Update.. (this speeds up the driver install as the wiimote is normally asleep by the time it&#039;s finished)<br /><br />Now you are good to go:<br />Open Glovepie, load up the script below, click the Run button<br />Make sure that the remote is not plugged into DJ Hero then hold down 1+2 at the same time, so the Wiimote tries to Pair with your pc.<br />The Wiimote should install and the GlovePIE message will change, plug the DJ Hero in and press the Space Bar (make sure that the GlovePIE Stop/Run button isn&#039;t highlighted or else the Space Bar will click Stop!)<br /><br />Now open Traktor and go to: File / Controller Manager, click Add / Import and open the DJ Hero.tsi file (from the Osculator template)<br />It installs a few different Keyboard and Midi templates, so delete the ones that you don&#039;t want.<br /><br />Now change the following:<br />Set In-Port to: In From Midi-Yoke: 1<br />Change:<br />X-Fader to Direct<br />Scratch to 4% Sensitivity<br />Play/Pause to Toggle<br />Filter On to Toggle<br /><br />Also for a bit of fun (Master Level on the Wiimote LED&#039;s)<br />Set Out-Port to: In From Midi-Yoke: 1<br />Add 4 Out&#039;s as:<br /><br />Out / Master Level / Ch01.CC.101 / Midi Range: 0 / 95<br />Out / Master Level / Ch01.CC.102 / Midi Range: 0 / 85<br />Out / Master Level / Ch01.CC.103 / Midi Range: 0 / 75<br />Out / Master Level / Ch01.CC.104 / Midi Range: 0 / 65<br />All with Controller Range: Min: 0.000000 / Max: 1.000000<br /><br />If you don&#039;t need the output&#039;s then you can comment them out in the code.<br /><br />Have Fun!<br />Moz<br /><br />Original Osculator template which is available here:<br /><a href="http://www.osculator.net/2011/01/03/traktor-wii-dj-hero-tutorial/" rel="nofollow">Osculator Template</a><br /><br /><pre class="bbcode">
// Wii DJ Hero Midi Output
// Jezzick (Thanks to Facing Tomorrow and Guy from GlovePie.org)
// Traktor/Osculator changes by Moz

debug="&lt;"+wiimote.Exists+"&gt; "

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) &gt;&gt; 2) + ((wiimote.Exp3 & 0xE0) &gt;&gt; 5)
var.CS = ((wiimote.Exp2 & 0x1E) &gt;&gt; 1) - 8
var.RTT =((wiimote.Exp0 & 0xC0) &gt;&gt; 3) + ((wiimote.Exp1 & 0xC0) &gt;&gt; 5) + ((wiimote.Exp2 & 0x80) &gt;&gt; 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)
&#039;var.LTT = (wiimote.Exp3 & 0x1F)
&#039;if (wiimote.Exp4 & 0x01) var.LTT = var.LTT - 32
&#039;var.LBG =!(wiimote.Exp5 & 0x08)
&#039;var.LBR =!(wiimote.Exp4 & 0x20)
&#039;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&lt;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
&#039;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

&#039;var.SX1 = var.SX
&#039;var.SY1 = var.SY
var.BE1 = var.BE
var.BM1 = var.BM
var.BP1 = var.BP
var.ED1 = var.ED
var.CS1 = var.CS
&#039;var.RTT1 = var.RTT
var.RBG1 = var.RBG
var.RBR1 = var.RBR
var.RBB1 = var.RBB
&#039;var.LTT1 = var.LTT
&#039;var.LBG1 = var.LBG
&#039;var.LBR1 = var.LBR
&#039;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
</pre>]]></description>
<dc:creator>moz77</dc:creator>
<category>Ideas, requests</category><pubDate>Wed, 14 Sep 2011 20:19:49 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,67801#msg-67801</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,67801#msg-67801</link><description><![CDATA[ the channels are actually 0 indexed, so channel="1" is channel 2<br />if that doesn&#039;t work, on mine, i made the name the same as the driver name, though not sure if that makes a difference (anywhere at all...)<br />other than that, it looks good so far]]></description>
<dc:creator>FacingTomorrow</dc:creator>
<category>Ideas, requests</category><pubDate>Sun, 04 Sep 2011 05:41:40 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,67783#msg-67783</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,67783#msg-67783</link><description><![CDATA[ Well, I can get VDJ to respond to my equipment, but only in Simple MIDI Mapper... which doesnt support Rotary encoders of any sort. &gt;_&lt;<br /><br />I need to know how to write the midi messages and the definition so that it will work in vDJ<br />Heres the Glovepie Script I used -<br /><br /><pre class="bbcode">
midi.Control7 = MapRange(var.CS,-7,7,0,1) // crossfader
midi.Control8 = MapRange(var.RTT,30,30,0,1) //Turntable</pre><br />and the VDJ Definition -<br /><pre class="bbcode">
&lt; device name="WiiDJHero2" author="Jezzick" type="MIDI" decks="2" drivernamein="LoopBe Internal MIDI"&gt;
&lt; encoder cc="0x08" zero=0" name="Turntable" channel="1" deck="2" /&gt;
&lt; slider cc="0x07" name="Crossfader" channel="1"/&gt;
&lt; /device&gt;</pre><br /><br />Do you have an Idea of why it doesn&#039;t respond?]]></description>
<dc:creator>Jezzick</dc:creator>
<category>Ideas, requests</category><pubDate>Thu, 01 Sep 2011 23:28:11 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,67782#msg-67782</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,67782#msg-67782</link><description><![CDATA[ yeah, i made a device definition, which will let you name all the midi signals with name, so it&#039;s waay easier to see what&#039;s what in vdj. it&#039;ll also let you do output (LED control, etc.). o and one thing you might notice is that because this scripting is a repetitive type, unlike most other programming, i&#039;ll sometimes do weird things. like if you map a button to &#039;play_stutter&#039;, you might find that holding it down causes it to stutter so fast it doesn&#039;t move. what i&#039;ve done with most of the messages is make it so it only updates it when you need to. for most of the buttons you only need to send the &#039;true&#039; value to trigger it and you only want to actually send it once the button is pushed (not the whole time it is pushed). it might be alright for a while, if you can make it work for you, but if you keep expanding you code and it passes the magical barrier, you have issues. really what i mean is LoopBe seems to have two ways to detect feedback, sending a unique message that if found on the input will then mute the routing, and if it has too many messages at once (like all you controls are trying to send messages at once). i annoyingly found this out the hard way. if you have things like using the wiimote pitch, turntables, and other things that use a good amount of data always going, it will overload it. so you might keep a variable, and only when that variable changes then update the midi message. it&#039;ll also make it easier for debugging. for me, i just used my daw to look at the midi stream, thus telling me what messages/values are being sent. if one is being sent continuously, it&#039;s really hard to see the stuff that isn&#039;t<br />i see i&#039;m being kinda vague, so if you have specific questions, i can answer them more directly :P]]></description>
<dc:creator>FacingTomorrow</dc:creator>
<category>Ideas, requests</category><pubDate>Thu, 01 Sep 2011 22:30:20 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,67781#msg-67781</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,67781#msg-67781</link><description><![CDATA[ VDJ recognizes my midi commands now... Heres what Ive got so far:<br /><br />----------------------------------------------------------------------------<br /><br />// Wii DJ Hero Midi Output<br />// Jezzick (Thanks to Facing Tomorrow and Guy from GlovePie.org)<br /><br />debug="&lt;"+wiimote.Exists+"&gt; "<br /><br />if(wiimote.Exists) then<br />if(key.Space) then<br />debug+=" *** POKE!! ***"<br />var.space=true<br />var.ini=true<br />endif<br />if(!var.space) debug+=" Safe to connect. Press SPACE to poke"<br />else<br />debug+=" ..waiting to connect.."<br />endif<br /><br />if(var.ini) then<br />debug+=" Active :D"<br />if(!var.init) then<br />WiimotePoke(1, 0x4A400F0, 0x55) // Decrypt<br />wait 100ms<br />WiimotePoke(1, 0x4A400FB, 0) // Unknown<br />wait 100ms<br />WiimotePoke(1, 0x4A40040, 0)<br />wait 100ms<br />WiimoteSend(1, 0x17, 0x04, 0xA4, 0x00, 0xF0, 0, 16) // get type<br /><br />midi.deviceOut = 2<br />var.MidiOut = midi.OutDevName<br />midi.defaultChannel = 1<br /><br />var.init = true<br />endif<br /><br />var.SX = (wiimote.Exp0 & 0x3F) - 31<br />var.SY = (wiimote.Exp1 & 0x3F) - 31<br />var.BE = !(wiimote.Exp5 & 0x10)<br />var.BM = !(wiimote.Exp4 & 0x10)<br />var.BP = !(wiimote.Exp4 & 0x04)<br />var.ED = ((wiimote.Exp2 & 0x60) &gt;&gt; 2) + ((wiimote.Exp3 & 0xE0) &gt;&gt; 5)<br />var.CS = ((wiimote.Exp2 & 0x1E) &gt;&gt; 1) - 8<br />var.RTT =((wiimote.Exp0 & 0xC0) &gt;&gt; 3) + ((wiimote.Exp1 & 0xC0) &gt;&gt; 5) + ((wiimote.Exp2 & 0x80) &gt;&gt; 7)<br />if (wiimote.Exp2 & 0x01) var.RTT = var.RTT - 32<br />var.RBG =!(wiimote.Exp5 & 0x20)<br />var.RBR =!(wiimote.Exp4 & 0x02)<br />var.RBB =!(wiimote.Exp5 & 0x04)<br />var.LTT = (wiimote.Exp3 & 0x1F)<br />if (wiimote.Exp4 & 0x01) var.LTT = var.LTT - 32<br />var.LBG =!(wiimote.Exp5 & 0x08)<br />var.LBR =!(wiimote.Exp4 & 0x20)<br />var.LBB =!(wiimote.Exp5 & 0x80)<br />if(var.CS&lt;0)var.CS++<br /><br />midi.Control1 = MapRange(var.SX,-31,32,0,1)<br />midi.Control2 = MapRange(var.SY,-31,32,0,1)<br />midi.Control3 = var.BE<br />midi.Control4 = var.BM<br />midi.Control5 = var.BP<br />midi.Control6 = MapRange(var.ED,0,31,0,1)<br />midi.Control7 = MapRange(var.CS,-7,7,0,1)<br />midi.Control8 = MapRange(var.RTT,30,30,0,1)<br />midi.Control9 = var.RBG<br />midi.Control10 = var.RBR<br />midi.Control11 = var.RBB<br />midi.Control12 = MapRange(var.LTT,30,30,0,1)<br />midi.Control13 = var.LBG<br />midi.Control14 = var.LBR<br />midi.Control15 = var.LBB<br /><br />endif<br />--------------------------------------------------------------------<br /><br />Now I just need to figure out how to map the jogwheels in VDJ to the turntables. everything else works, but I have yet to figure out how to wire them. I will most likely have to write a definition and a mapper to do so, but we will see. ^_^]]></description>
<dc:creator>Jezzick</dc:creator>
<category>Ideas, requests</category><pubDate>Thu, 01 Sep 2011 21:23:34 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,67774#msg-67774</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,67774#msg-67774</link><description><![CDATA[ Wow. That was pretty cool... I like your mix too. ^_^<br /><br />I was using Traktor, because thats what the other person who used the dj hero tables to do used. He was on mac tho. &gt;_&lt;<br /><br />I have loaded up VDJ now, And found I do like it better. Just need to figure out how to map the midi and im good. Thus far I have not once gotten CDJ to recognize my midi signals, on MIDI yoke or LoopBe]]></description>
<dc:creator>Jezzick</dc:creator>
<category>Ideas, requests</category><pubDate>Thu, 01 Sep 2011 08:58:09 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,67765#msg-67765</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,67765#msg-67765</link><description><![CDATA[ for the turntable, the dj software usually has options to whether the 0 velocity is at 0 or 64 so it doesn&#039;t matter too much, as long as you know when you start mapping it. for the buttons, you can just assign the boolean value, which will end up sending 0x00 (false) or 0x7F (true). for the rest, just make it so you assign the midi value something between 0 and 1. it&#039;ll do all the complicated stuff. so if it&#039;s just say 0-63, just say like midi.control23=var.CS/64. o and for the crossfader, i noticed if you slightly nudge it (in center position) without actually moving it, you&#039;ll probably end up with 1 or 0, so you might just make it subtract one if it&#039;s positive, making it -7 to 7 and seems to be more consistent values on both sides.<br /><br />now are you using traktor? cause i got the demo, and tried to map the stuff to that, and it never really worked well.. though i&#039;m also doing like syncronized data to the wiimote (lights for beat of the measure, vu bars, active decks, etc.) and that seems even more of a pain.. o and you have to assign every single action to a single midi message... with vdj, you can actually assign the midi message several actions, making easier, do more what you want, and it&#039;s much easier. even if you don&#039;t buy it, you should definitely try it out. though don&#039;t think anything but the pro will let you do scripting (might be wrong)<br /><br />check out part of what i got (there&#039;s waay more where this comes from.. think 900+ lines of code) and a new song i put together:<br />[<a href="http://www.youtube.com/watch?v=qF2B5CsUwHo" rel="nofollow">www.youtube.com</a>]]]></description>
<dc:creator>FacingTomorrow</dc:creator>
<category>Ideas, requests</category><pubDate>Thu, 01 Sep 2011 05:35:15 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,67763#msg-67763</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,67763#msg-67763</link><description><![CDATA[ Thanks again! I was making do just using Midi3 but This is much more efficient. And I&#039;ll be sure to check out LoopBe.<br /><br />Now I&#039;m just need to figure out how to format the individual midi messages.<br /><br />The buttons are easy, just noteon and noteoff I presume.<br />I was fidgeting with the crossfader to begin with, the script sets var.cf as -7 to 8 depending on position, and it looks like I should use inrange to convert it to 0-127, but I&#039;m a bit clueless as to how to actually format the message.<br /><br />I think The Turntable shoul be 0-63 for velocity of counter clockwise movement, and 65-127 for clockwise, but Im not positive, and I am clueless as to how to send that. &gt;_&lt;]]></description>
<dc:creator>Jezzick</dc:creator>
<category>Ideas, requests</category><pubDate>Thu, 01 Sep 2011 02:54:21 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,67761#msg-67761</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,67761#msg-67761</link><description><![CDATA[ first as a note, glovepie ignored capitalization, so cause i&#039;m lazy, i&#039;ll only capitalize stuff if it makes more sense :P<br /><br />i&#039;m using LoopBe. then you have to use the right midi device, just like you would if you had several wiimotes. &#039;midi1.&#039; refers to the first and &#039;midi2&#039; is the second and so on. now really &#039;midi.&#039; refers to the selected device (1 by default) and can be changed by setting &#039;midi.devicein&#039; or &#039;midi.deviceout&#039; as the number of the device you want to use. there is also a &#039;midi.DevNameIn&#039; and a &#039;midi.DevNameOut&#039; which will give you the name of the device. for my scripts, i would put a part at the top that would only run when the script starts, which goes through all the devices and checks their names and assigns the appropriate number to be used in the script. you could just use the number as &#039;midi3.&#039; (or what ever it is), but this way, even if the midi devices get reordered it&#039;ll still work correctly without needing to be manually changed. also, you can then just use the &#039;midi.&#039; making everything that much shorter :D]]></description>
<dc:creator>FacingTomorrow</dc:creator>
<category>Ideas, requests</category><pubDate>Wed, 31 Aug 2011 23:27:46 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,67760#msg-67760</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,67760#msg-67760</link><description><![CDATA[ Yeah, MIDIyoke is the one that is supposed to work with glovepie, But I haven&#039;t gotten anything to work yet. How are you doing it?]]></description>
<dc:creator>Jezzick</dc:creator>
<category>Ideas, requests</category><pubDate>Wed, 31 Aug 2011 22:31:28 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,67759#msg-67759</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,67759#msg-67759</link><description><![CDATA[ i&#039;ve got it all working and more or virtual dj, if you&#039;re interested. i might suggest trying out vdj pro if you haven&#039;t already. customizability is to the extreme :D great for comp sci people. for the midi, i assume you have a internal routing program? it&#039;s not too hard, but you have to make sure to use the right midi device.]]></description>
<dc:creator>FacingTomorrow</dc:creator>
<category>Ideas, requests</category><pubDate>Wed, 31 Aug 2011 20:34:46 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,67758#msg-67758</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,67758#msg-67758</link><description><![CDATA[ Awesome, Thank you so much.<br /><br />Ive got the code in GlovePie, and it runs great!<br /><br />Now I just need to figure out how to format the midi signals to send them to traktor.<br /><br />I&#039;ll keep you guys updated on my progress!]]></description>
<dc:creator>Jezzick</dc:creator>
<category>Ideas, requests</category><pubDate>Wed, 31 Aug 2011 20:29:17 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,67753#msg-67753</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,67753#msg-67753</link><description><![CDATA[ @molarkey<br />yeah, i&#039;ve got win 7 and got the laptop with bluetooth, so just using that works for me :P once you get the bluetooth working, the rest should be pretty easy. glovepie allows for a variety of syntaxes, so you can make the same thing work slightly different ways. for the most part, the easiest way is just to type it out. to make sure you can connect the wiimote, just use a simple script:<br /><br />debug=wiimote.exists<br /><br />debug refers to the little window that shows up next to the run button once the script runs. this should state &#039;true&#039; once it has connected (and the wiimote should have led 1 lit up). after that would be to get the wiimote to control the keyboard by saying something like:<br /><br />key.a=wiimote.a<br />keyboard.b=wiimote.b<br /><br />key and keyboard both refer to the keyboard buttons, so once you do this, it should type a when you push a on the wiimote, and b when you push b<br />o and when you type &#039;key.&#039; or &#039;wiimote.&#039; it should come up with a window telling you all the different things you can add<br /><br />hope that helps a bit.<br /><br /><br />@Jezzick<br />yeah, i&#039;m not even sure if i can find the original post again, but i do have a copy of it<br />i&#039;ve edited it a bit for ease and convenience<br />-------------------------------<br />//based of some dude&#039;s alteration of the ghwt script<br />// (sorry, couldn&#039;t find your post again to get your name)<br /><br />debug="&lt;"+wiimote.Exists+"&gt; "<br /><br />if(wiimote.Exists) then<br />if(key.Space) then<br />debug+=" *** POKE!! ***"<br />var.space=true<br />var.ini=true<br />endif<br />if(!var.space) debug+=" Safe to connect. Press SPACE to poke"<br />else<br />debug+=" ..waiting to connect.."<br />endif<br /><br />if(var.ini) then<br />debug+=" Active :D"<br />if(!var.init) then<br />WiimotePoke(1, 0x4A400F0, 0x55) // Decrypt<br />wait 100ms<br />WiimotePoke(1, 0x4A400FB, 0) // Unknown<br />wait 100ms<br />WiimotePoke(1, 0x4A40040, 0)<br />wait 100ms<br />WiimoteSend(1, 0x17, 0x04, 0xA4, 0x00, 0xF0, 0, 16) // get type<br />var.init = true<br />endif<br /><br />var.SX = (wiimote.Exp0 & 0x3F) - 32<br />var.SY = (wiimote.Exp1 & 0x3F) - 31<br />var.BE = !(wiimote.Exp5 & 0x10)<br />var.BM = !(wiimote.Exp4 & 0x10)<br />var.BP = !(wiimote.Exp4 & 0x04)<br />var.ED = ((wiimote.Exp2 & 0x60) &gt;&gt; 2) + ((wiimote.Exp3 & 0xE0) &gt;&gt; 5)<br />var.CS = ((wiimote.Exp2 & 0x1E) &gt;&gt; 1) - 8<br />var.RTT =((wiimote.Exp0 & 0xC0) &gt;&gt; 3) + ((wiimote.Exp1 & 0xC0) &gt;&gt; 5) + ((wiimote.Exp2 & 0x80) &gt;&gt; 7)<br />if (wiimote.Exp2 & 0x01) var.RTT = var.RTT - 32<br />var.RBG =!(wiimote.Exp5 & 0x20)<br />var.RBR =!(wiimote.Exp4 & 0x02)<br />var.RBB =!(wiimote.Exp5 & 0x04)<br />var.LTT = (wiimote.Exp3 & 0x1F)<br />if (wiimote.Exp4 & 0x01) var.LTT = var.LTT - 32<br />var.LBG =!(wiimote.Exp5 & 0x08)<br />var.LBR =!(wiimote.Exp4 & 0x20)<br />var.LBB =!(wiimote.Exp5 & 0x80)<br />if(var.CS&lt;0)var.CS++<br />endif<br /><br />-----------------------<br />pretty much you want to make sure that the turntable is not connected when you start (so glovepie sees it as a wiimote, not a wiiturntable), then once it notices a wiimote is connected, it&#039;ll tell you to connect it, then press space (as seen in the debug window) then, click on the variables tab and you should see the appropriate numbers changing. the wiimote buttons can be accessed with the &#039;wiimote.&#039; and get the turntable data from the saved variables &#039;var.&#039;<br />this should be able to get the data, so the midi part is alls that&#039;s left. now one thing i noticed is that if you spin a turntable really fast, it&#039;ll actually act like it&#039;s spinning slowly. this might be because of a missing bit or probably just overflow (cause, i doubt you&#039;ll really need to spin it that fast).]]></description>
<dc:creator>FacingTomorrow</dc:creator>
<category>Ideas, requests</category><pubDate>Wed, 31 Aug 2011 18:41:04 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,67749#msg-67749</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,67749#msg-67749</link><description><![CDATA[ @Facing Tomorrow<br />Definitely interested... I have found no sign of the script you speak of... &gt;_&lt;]]></description>
<dc:creator>Jezzick</dc:creator>
<category>Ideas, requests</category><pubDate>Wed, 31 Aug 2011 08:47:35 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,67692#msg-67692</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,67692#msg-67692</link><description><![CDATA[ I&#039;ve been working on this same project for the past couple of weeks. My biggest hurdle has so far been a Vista/Bluetooth driver issue. Ended up using BlueSoleil (was the only thing that made any bluetooth work w/ my PC).<br /><br />I see what you&#039;re getting at above would appreciate any help since I haven&#039;t coded anything in 10 years. Been getting my info by doing a lot of forum digging & a little trial & error w/ the GUI in GlovePie.]]></description>
<dc:creator>molarkey</dc:creator>
<category>Ideas, requests</category><pubDate>Tue, 23 Aug 2011 01:25:26 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?26,66518,67626#msg-67626</guid>
<title>Re: Need help with ambitious project - DJ Hero Midi Control for windows.</title><link>http://forum.wiibrew.org/read.php?26,66518,67626#msg-67626</link><description><![CDATA[ hey, i got it to work! wii dj hero turntable on a pc (using glovepie). though glove does support the device and the buttons, it doesn&#039;t work for any of the others. to make it work, you have to get the data from the wiimote and interpret if yourself. luckily, i found a script that demonstrates this (it took a lot to find). thus alls you have to do is add in the midi output. and for those who happen to have two, you can actually double it up. as you might notice, the mixer has a connection on each side (for lefties). despite the fact they do the same thing in the game, they are actually separate data from each other, meaning you can have a 2 deck controller :D<br />hit me up if you&#039;re interested]]></description>
<dc:creator>FacingTomorrow</dc:creator>
<category>Ideas, requests</category><pubDate>Tue, 16 Aug 2011 06:16:49 +0200</pubDate></item>
</channel>
</rss>