GlovePie

Have an urge to learn, or a calling to teach? Want to share some useful Youtube videos? Do it here!
Post Reply
User avatar
pushedbutton
Posts: 1538
Joined: 16 Jan 2015
Location: Lancashire, UK
Contact:

26 Jul 2015

Remember Glovepie?
If anyone has any .PIE files knocking around for anything. wiimote, 360 Controllers, ps3. DDR mats or whatever please feel free to share them here.

Code: Select all

midi.DeviceOut = 2
midi.DefaultChannel = 1

         //-------------- General Midi ---------------------------

midi.channel1.C3 = XInput.A
midi.channel1.Csharp3 = XInput.B
midi.channel1.D3 = XInput.X
midi.channel1.Dsharp3 = XInput.Y

midi.channel1.E3 = XInput.Down
midi.channel1.F3 = XInput.Right
midi.channel1.Fsharp3 = XInput.Left
midi.channel1.G3 = XInput.Up


midi.channel1.Gsharp3 = XInput.LeftShoulder
midi.channel1.A3 = XInput.RightShoulder
midi.channel1.Asharp3 = XInput.Back
midi.channel1.B3 = XInput.Start
midi.channel1.C4 = Xinput.LeftTrigger
midi.channel1.Csharp4 = XInput.RightTrigger
midi.channel1.D4 = XInput.LeftThumb
midi.channel1.Dsharp4 = XInput.RightThumb

//------------- LEFT STICK------------------

midi.channel1.ByteControl1 = var.LSx
midi.channel1.ByteControl1 = var.LSxB
var.LSx = MapRange(XInput.LeftStickX, -1,1, 0,127)/127
var.LSxb = MapRange(XInput.LeftStickY, -1,1, 0,127)/127



//-------------- RIGHT STICK-----------------

midi.channel1.PitchWheel = var.RSx
midi.channel1.PitchWheel = var.RSxB
var.RSx = MapRange(XInput.RightStickX, -1,1, 0,127)/127
var.RSxb = MapRange(XInput.RightStickY, -1,1, 0,127)/127
Here's one that makes all the buttons and triggers on the 360 controller trigger kong. Glovepie is capable of much more complicated stuff using conditions and whatnot but I'm just learning so far.
@pushedbutton on twitter, add me, send me a message, but don't try to sell me stuff cos I'm skint.
Using Reason since version 3 and still never finished a song.

User avatar
decibel
Posts: 974
Joined: 07 Mar 2015

27 Jul 2015

i have zero idea of whats going on here but it looks super interesting, this is the kind of thing i would love to see explained in a youtube tutorial .
if anybody thinks they are up for it ? please post the results here for the rest of us to check out, im sure im not the only one who is curious ;)

User avatar
pushedbutton
Posts: 1538
Joined: 16 Jan 2015
Location: Lancashire, UK
Contact:

27 Jul 2015

decibel wrote:i have zero idea of whats going on here but it looks super interesting, this is the kind of thing i would love to see explained in a youtube tutorial .
if anybody thinks they are up for it ? please post the results here for the rest of us to check out, im sure im not the only one who is curious ;)
@pushedbutton on twitter, add me, send me a message, but don't try to sell me stuff cos I'm skint.
Using Reason since version 3 and still never finished a song.

User avatar
pushedbutton
Posts: 1538
Joined: 16 Jan 2015
Location: Lancashire, UK
Contact:

27 Jul 2015

Anyone know how to make the vibrator only last for 50ms rather than being on for as long as the button his held down... people seem to like holding the button down but I'd rather discourage it.
@pushedbutton on twitter, add me, send me a message, but don't try to sell me stuff cos I'm skint.
Using Reason since version 3 and still never finished a song.

User avatar
decibel
Posts: 974
Joined: 07 Mar 2015

27 Jul 2015

oh kool, didnt expect that to be honest :) will watch it asap yeah, cheers

User avatar
pushedbutton
Posts: 1538
Joined: 16 Jan 2015
Location: Lancashire, UK
Contact:

27 Jul 2015

Hey I figured out my problem....

Code: Select all

if pressed(Xinput.Buttons) then
   xInput.Vibration1 = 1, 80ms
   xInput.Vibration2 = .60, 250ms
   wait 80ms
   xInput.Vibration1 = 0
     wait 100ms
   Xinput.Vibration2 = 0
   endif
if pressed (Xinput.leftTrigger) then
   xInput.Vibration1 = -1, 80ms
   xInput.Vibration2 = -.90, 300ms
  wait 80ms
   Xinput.Vibration1 = 0
  wait 100ms
   Xinput.Vibration2 = 0
   endif
 if pressed (Xinput.RightTrigger) then
   xInput.Vibration1 = -1, 80ms
   xInput.Vibration2 = -.90, 300ms
  wait 80ms
   Xinput.Vibration1 = 0
   wait 100ms
   Xinput.Vibration2 = 0
   endif


This will add some feedback from the controllers' vibrators without them staying on when you hold the button down. If you've been using the code above just post this into the same script.
@pushedbutton on twitter, add me, send me a message, but don't try to sell me stuff cos I'm skint.
Using Reason since version 3 and still never finished a song.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 12 guests