Xbox Controller with Max

Jan 1, 2013 at 5:12pm

Xbox Controller with Max

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.

– Pasted Max Patch, click to expand. –
#65870
Jan 1, 2013 at 11:39pm

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;

http://www.youtube.com/watch?v=jKnWxlQMy6o

Im happy to answer any questions or further issues you have. Best of luck.

snareboi

#237210
Jan 2, 2013 at 1:21am

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:

– Pasted Max Patch, click to expand. –

And here’s a patch I made to visualize the controllers coming in from the Xbox:

– Pasted Max Patch, click to expand. –

Hope this helps.

#237211
Jan 2, 2013 at 1:24am

Here’s a more recent version of the test patch to visualize the controllers.

– Pasted Max Patch, click to expand. –
#237212

You must be logged in to reply to this topic.