Free Hosted by HostingVirtuale.com

In this page I'll explain how to use the Wiimote to control effects in Guitar Rig!


Let's start with what you need:
Bluetooth drivers (I use Bluesoleil);
Midi-OX to have the MidiYoke rerouter;
GlovePie;
Guitar Rig (I have version 3);
Now link your Wiimote to the PC, it will be recognised as a HID joystick device.HID peripheral Don't worry if the leds on the wiimote go off, you should check if it is really connected in the next step with GlovePie.
Open GlovePie and load this script:

// Coded by Jedineon, 07/10/09, please keep this comment if you use this code!

if(wiimote.smoothpitch<10) then
var.pedal=0
elseif (wiimote.smoothpitch<40) then
var.pedal=(wiimote.smoothpitch-20)/30
else
var.pedal=1
endif

if var.pedal>0 then wiimote.led1=true else wiimote.led1=false
if var.pedal>0.3 then wiimote.led2=true else wiimote.led2=false
if var.pedal>0.6 then wiimote.led3=true else wiimote.led3=false
if var.pedal>0.9 then wiimote.led4=true else wiimote.led4=false

midi.bytecontrol100=var.pedal

midi.bytecontrol101=wiimote.A
midi.bytecontrol102=wiimote.B

debug = wiimote.smoothpitch +" "+ wiimote.smoothroll+" "+ var.abs+ " " + var.pedal

GlovePie script

Then you should start the script and verify if the wiimote is connected moving it. The leds on the wiimote will go on and off and the script will show you the rotation of the wiimote in the debug area
Now open MidiYoke and link Input1 to Output1 this way: remember, if you get some kind of error or if the midi flow stops, set for output a different port

MidiYoke
In GlovePie select "CP-Settings", "Midi", select MidiYoke1 for midi device. This way the GlovePie script will send midi data to the midiyoke1, it will be rerouted to a midiyokeOUT port, so we can select it for midi input into Guitar Rig. (if you encounter problems, maybe you have to reroute the midi signals to an output port different from port1)

Midi setting
Go to "FILE"/"Audio and MIDI settings", and activate for input the midiport you've routed into midiyoke. Close the options
Into the Options you have to "Controller", "External Controller" tab, then add an assignment and make it learn, moving the Wiimote to associate it.
GuitarRig is learning!
Now you just have to assing it to something, like the pedal for a WahWah... And you're ok!

If you like this tutorial, please contact me or comment the video on YouTube!