Sponsors of Wiimoteproject.com
IR Pens for Wiimote Whiteboard
Wiimote Project » Wiimote Projects » Wiimote Glovepie projects » GHWT Drums to MIDI (PC/Windows)
Pages: [1]
  Print  
Author Topic: GHWT Drums to MIDI (PC/Windows)  (Read 7330 times)
0 Members and 1 Guest are viewing this topic.
*
Karma: +0/-0
Posts: 1
Offline Offline
View Profile
« on: December 08, 2010, 07:02:58 PM »

Hello. I need some help with my script. I don't know anything about coding. This seems to be the only place to ask cause GlovePIE Forum is down  Cry  I got these Wii Guitar Hero drums and i have Addictive Drums running in Cubase5 (WinXP32Bit). All drum scripts there is, are for old GlovePIE 0.30, Linux or Mac. And the 0.43 version has some drum support now. I found some installing instructions and this basic GUI script =

Midi.D3 = WiiDrums.Red
Midi.A5 = WiiDrums.Blue
Midi.G5 = WiiDrums.Green
Midi.CSharp4 = WiiDrums.Yellow
Midi.ASharp3 = WiiDrums.Orange
Midi.C3 = WiiDrums.Bass
Midi.E4 = WiiDrums.HiHat

But this script was lagging, volume was default (50%), and there was not enough drums for full kit. I have done earlier few simple NES emulator scripts and looked the Preliminary Documentations + other drum scripts. So I was able to pull this together =

/* Wii GHWT Drums to MIDI (PC/Win) V1.1 = Script By -£€$¤-

Instructions:
1. You need "MIDI Yoke" from = http://www.midiox.com/
2. Install and reboot. Configure your MIDI ports in Windows.
   Control panel > "Sounds and Audio Devices" > "Audio" TAB > select "Out to MIDI Yoke: 1"  as MIDI music playback device and "OK".
3. Then you need "MIDI-OX" from = http://www.midiox.com/?http://www.midiox.com/moxdown.htm
4. Start MIDI-OX go to "Options" and select ""MIDI devices".
5. Now select "In From MIDI Yoke: 1" as input and select "Out To MIDI Yoke: 2" as output and click OK.
6. Select "MIDI Yoke 2" as input device in your AD OS / other virtual drums. */

// Buttons/Drums:
Midi.Yoke1.D3Velocity = WiiDrums.Red // = Snare
Midi.Yoke1.A5Velocity = WiiDrums.Blue // Blue = Tom 2
Midi.Yoke1.G5Velocity = WiiDrums.Green // Green = Tom 3
Midi.Yoke1.CSharp4Velocity = WiiDrums.Yellow // Yellow = Hi Hat
Midi.Yoke1.ASharp3Velocity = WiiDrums.Orange // Orange = Symbal
Midi.Yoke1.C3Velocity = WiiDrums.Bass // Bass Pedal = Bassdrum
Midi.Yoke1.E4Velocity = WiiDrums.HiHat // HiHat Pedal = HiHat Closing
Midi.Yoke1.FSharp4Velocity = WiiDrums.HiHat, WiiDrums.Yellow // HiHat Closed = This works for 1 hit Cheesy

// Extra Drums1: How to disable double sounds?
// A+Yellow = Sticks
if WiiDrums.Wiimote.A + WiiDrums.Yellow then
  Midi.Yoke1.DSharp6velocity = WiiDrums.Yellow
end if
// A+Orange = Symbal Choke
Midi.Yoke1.FSharp6Velocity = WiiDrums.Wiimote.A + WiiDrums.Orange
// Red+Blue = Tom 1
if WiiDrums.Red + WiiDrums.Blue then
  Midi.Yoke1.B5velocity = WiiDrums.Blue
end if
// Blue+Green = Tom 4
if WiiDrums.Blue + WiiDrums.Green then
  Midi.Yoke1.F5velocity = WiiDrums.Green
end if
// Yellow+Orange = Symbal 2
if WiiDrums.Yellow + WiiDrums.Orange then
  Midi.Yoke1.A6velocity = WiiDrums.Orange
end if
// Blue+Yellow = Bell
if WiiDrums.Blue + WiiDrums.Yellow then
  Midi.Yoke1.ASharp4velocity = WiiDrums.Blue
end if

/* ?!: Found something about these from internet.
I dont have a clue what they do. But maybe they help something? */
// Midi.Yoke1."X".Aftertouch = 50%  // What are these?! "X" = Replace with note. How to add all?
// Midi.Yoke1.Pressure = 50% // ?! I didnt get these to work. I think some1 needs to fix the Velocity first^..

WiiDrums.Speed = true // What is this? Cheesy

// My MediaPlayer / Sampler / More Drums etc. here:
/* Key."X" = WiiDrums.Wiimote.Left // Up = Play
Key."X" = WiiDrums.Wiimote.Right // Down = Stop
Key."X" = WiiDrums.Wiimote.Down // Left = Previous
Key."X" = WiiDrums.Wiimote.Up // Right = Skip
Key."X" = WiiDrums.Wiimote.Home // Home = Pause */

// Volume Control:
Key.VolumeUp = WiiDrums.wiimote.One // 1 = Volume +
Key.VolumeDown = WiiDrums.wiimote.Two // 2 = Volume -

// Mouse:
/* Mouse.X = WiiDrums.JoyX // Drums Joystick = Mouse Movement, but it
Mouse.Y = WiiDrums.JoyY // stays in corner :/ How to put it middle?
Mouse.WheelUp = WiiDrums.Wiimote.Minus // Wii- = Roll Up
Mouse.WheelDown = WiiDrums.Wiimote.Plus // Wii+ = Roll Down
Mouse.LeftButton = WiiDrums.Minus // Drums- = Mouse Left Button
Mouse.RightButton = WiiDrums.Plus // Drums+ = Mouse Right Button */

// The End
PIE.FrameRate = 300Hz // Hz = Can be set to 1000Hz. I think 300Hz is optimal. Debug to see limit. Mine was 600-700Hz.
Wiimote.Led1 = true // Led = to see controller is ON


Update to script. And i made HiHat pedal to test this better. Drums also need some modification to work properly. Here is some useful links= http://5frets.com/1/guitar-hero-world-tour-drum-sensitivity-repair-guide/ (hot glue fix is great!!!) + http://www.youtube.com/watch?v=sair3QIAA3g Please tell me if you know something about the script? Those explanations are more like my assumptions  Cheesy  This script already works better but i want more. Specially the HiHat and Velocity problems annoy me. And mouse position. Also if i hit Bell, Snare comes in background. I found out that drums can only take 1 combination hit with basic orders. Thx for advantage, i hope this helps someone else too  Smiley
« Last Edit: December 18, 2010, 02:34:12 AM by Leso » Logged
Pages: [1]
  Print  
 
Jump to:  

Clicky Web Analytics