Xbox Controller with Max

    Jan 01 2013 | 5:12 pm
    I'm trying to use an xbox remote to trigger samples in max. I have used a very basic patch to get the signal into max, but the data values I get from the controller are really sporadic, and dont seem to apply to any one button/stick. Eg, pushing the analogue stick up trigger 0, 4, 12 and 16 in the x value. I'm very new to max so have literally no idea why this is, any help would be massively appreciated.

    • Jan 01 2013 | 11:39 pm
      Hi, I recently worked on a very similar patcher as part of my degree. I did it with a PS3 controller instead. My controller outputted several numbers from the 'unpack' object. I mainly took note of the ones on the left outlet and then used a 'routing' object to route them to do the things i wanted. I would mainly stick with the buttons on the controller for now if you are a beginner. I started on the buttons and moved my way to the joysticks. They take a bit of 'scaling' to work with different objects. My final patch can be found here;
      Im happy to answer any questions or further issues you have. Best of luck.
    • Jan 02 2013 | 1:21 am
      Keep in mind that - at least as far as the joysticks are concerned - the controllers can be very 'twitchy' and even at rest the sensors reading the positions can send out spurious readings. You may want to do some data-smoothing to reduce the jitter. This has been my experience, at least.
      Meanwhile, you can use a [route] to sort the various different controllers.
      Also keep in mind that the controllers don't all have the same range.
      Here's a portion of a patch I use to get the Xbox data into my patches. Have a look in the subpatch for some info on controller ranges:
      And here's a patch I made to visualize the controllers coming in from the Xbox:
      Hope this helps.
    • Jan 02 2013 | 1:24 am
      Here's a more recent version of the test patch to visualize the controllers.
    • Dec 13 2016 | 5:25 pm
      Hey i also work on a music related patch for my degree with a PS3 conntroller....i saw your vid on youtube too and you did a great job in max ...could you send me a copy of your patch so i can study it ???
    • Mar 30 2017 | 4:02 pm
      Hi Josh, I'm studying in my final year at university and taking on a project that incorporates using HID objects (Mainly game controllers) in MAX, would you mind sending me the patch? It would be a huge help!