HELP: Analog Joystick + GlovePIE
Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1
    Tech Mentor cheft's Avatar
    Join Date
    Dec 2008
    Posts
    119

    Default HELP: Analog Joystick + GlovePIE

    I'm trying to get GlovePIE working with some analog joysticks on a gamepad.
    How can I get the value to return to 63 after I move the joystick?
    i.e. How can I get the knob to return to the middle position after I have moved it?

    Code:
    //ANALOG STICKS
    midi.Channel2.Control1=Joystick2.x/250
    Last edited by cheft; 01-11-2009 at 04:41 PM.

  2. #2
    Tech Mentor cheft's Avatar
    Join Date
    Dec 2008
    Posts
    119

    Default

    Some progress. If anybody cares. The knobs will now go to their max/min, but I can't get them to return just quite to center. I think it's because midi has 127 notes. Anyone know how to use a fraction in GlovePIE? If I add 63.5, the knobs all screwy. At 64 it's off to the right just a little (0.09)
    midi.Channel2.Control1=(Joystick2.x/261)+64
    Last edited by cheft; 01-12-2009 at 11:12 AM.

  3. #3
    Retired DJTT Moderator DvlsAdvct's Avatar
    Join Date
    Mar 2008
    Location
    New Jersey/NYC
    Posts
    4,854

    Default

    Just so you know, we do care, just sometimes people don't have answers. If anything keep chronicling your progress and you might get to a point where someone does have an idea. And it'll keep it toward the top for people who do know to help.

    But we do care ;-)
    It's the FAQ. Read it.

    My Mixes, Mashups and Rants

    Divided we stand
    United we fall

  4. #4
    Tech Mentor cheft's Avatar
    Join Date
    Dec 2008
    Posts
    119

    Default

    Sorry if I can off jerkish. I figure there are other broke DJ's like me looking to mod controllers on the cheap. So I will keep posting my stuff. I know I make mere toys to some of the work that goes on here.

    Here is a GlovePIE script for a 12 button gamepad. I used a Logitech Duel Action. The analog joysticks are quite good for controlling more than one FX at a time. The rest work best as buttons. Map them to your program as you see fit. I plan on modding two gamepads to make one big custom FX controller.

  5. #5

    Default

    I am pretty good at some GP scripts. I have made 2 controllers on the cheap, so I know what you are going through. I have never did anything with analog joysticks but I am almost sure all it is just 2 potentiometers. Put together. Are there 6 pins?

    Let me look at your script and I'll try and come up with something.
    SyblingQ - Electro House for dark alleys.

  6. #6
    Tech Mentor cheft's Avatar
    Join Date
    Dec 2008
    Posts
    119

    Default

    The script was attached to my last post. I'm pretty sure that's about as good as I can make it. I think I was having an error because I was writing the code in notepad then changing to CUE file. When I wrote the script in GlovePIE, it seemed to take. I think the knobs ending up off center is a Traktor thing, because when I used my BCD3000 I noticed the same behavior. Please take a look and give me any pointers. Yes, each joystick had two sets of 3 soldered connections.

    Do you think I need to solder out these joysticks, OR can I just connect potentiometers to the proper spots, thereby closing that circuit? I would then hide the controller board with the joysticks still attached inside my enclosure. Then I wouldn't have to use my poor desoldering skills, because these things look like a bitch to get out. There is also a switch underneath the joystick, but I'm sure I can close that with a new button easily. I like the joysticks, but think at the end of the day I prefer knobs.

  7. #7
    Dr. Bento BentoSan's Avatar
    Join Date
    Mar 2008
    Location
    Perth, Australia
    Posts
    6,383

    Default

    I help with this.... if GlovePie didnt crash so god damn much on me >_< - I gave up on GlovePie after becoming sick of the crashs

    Joysticks are useful for different things than knobs are - take a look at moldovers setup for a really good way of using joysticks.

    Its all about what you have it assigned to.

    Anyway back to the original question.

    I spose that you could use an if statement that checked to see if the joystick was centered and if it is send a 63 message instead of a 64.

  8. #8
    Dr. Bento BentoSan's Avatar
    Join Date
    Mar 2008
    Location
    Perth, Australia
    Posts
    6,383

    Default

    I help with this.... if GlovePie didnt crash so god damn much on me >_< - I gave up on GlovePie after becoming sick of the crashs

    Joysticks are useful for different things than knobs are - take a look at moldovers setup for a really good way of using joysticks.

    Its all about what you have it assigned to.

    Anyway back to the original question.

    I spose that you could use an if statement that checked to see if the joystick was centered and if it is send a 63 message instead of a 64.

  9. #9

    Default

    Hm, what bento said might work for the centering issue. You may want to go on traktor and right click the knobs you are having issues with and select fine, I think that might help. One of my controllers can't get exactly 50% either. Just 49 and 51 .

    On you script it seems like you need to use maprange. Let me pull up glovepie first before I give you a definite answer.
    SyblingQ - Electro House for dark alleys.

  10. #10
    Tech Mentor cheft's Avatar
    Join Date
    Dec 2008
    Posts
    119

    Default

    I tried using maprange before, but it never worked just right. Trial and error gave the results I am using.

    Bento: I think Moldover uses like a flight joystick no? I'm just playing around with PS3 type controllers with two analog joysticks. It is interesting using them on FX, but I think at the end of the day I prefer the control knobs have.

    Any ideas about adding in a potentiometer w/o soldering out the joystick? Or will this just chain them together?

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •