Using a playstation controller to control a sample player

jason bradberry's icon

Hi guys,

Im new to max msp (and to the forum!)

Ive been through the basic tutorials and am getting a grip on how the whole thing works.

Its a bit of a beast isnt it!! Hehe

I have to produce a max patch for a music production module for my degree, and im thinking along the lines of using a playstation controller or similar to control a sample player.

Anyone here done anything similar before or able offer any advice?

DonK's icon

I'm sure there's free ways to do this, but here's one way I like a lot. Nice thing is that you can create macros to respond to you usb input.

Not free, and might be overkill for what you need, but it's a nice piece of software. Works with the Wiimote, and I think anything USB.

dlehrich@gmail.com's icon

You don't mention your platform, but I've been able to do this on OSX with a number of different game controllers.

If you can find a driver on the net (for example, this 360 controller driver - http://tattiebogle.net/index.php/ProjectRoot/Xbox360Controller/OsxDriver) and install it, then your device will show up in Max through the [hi] object. From there it's a simple matter of routing the incoming data and mapping it to your sample player however you'd like.

/dan

Quote: jason_bradberry@yahoo.co.uk wrote on Thu, 28 February 2008 10:15
----------------------------------------------------
>
> I have to produce a max patch for a music production module for my degree, and im thinking along the lines of using a playstation controller or similar to control a sample player.
>
> Anyone here done anything similar before or able offer any advice?
----------------------------------------------------

pascal.baes's icon

Hi Hi!
I just get a new intel mac with that infra-red telecomande,
I tryed to throu away that Front Row.App
and then pipe some value/bang from Hi object?
still that Fron Row take the hand...
Some hint?
second problem, is to keep wake up my mac when I close the cover,
(to use IR or external keyboard)
(--for performing in "risky place" (bar, party);
i want let close my laptop ("mode palourde"); in order nobody
make fal down beer or soap bubble on my keyboard)
(--and for long exposure/ time laps shooting time ouside, i want keep
batterie and dont get rain or salt-water inside...)
any idea?
Pascal Baes
www.laPoseLongue.org

f.e's icon
Ian's icon

If i understand correctly, probably the simplest way is to get either a playstation to usb adaptor or a usb game controller and use the hi object.

They are both going to be about the same price so it really is a matter of preference, but I have had good results with both.

Make sure you have a look at this:
https://cycling74.com/story/2007/3/12/113645/135

it makes everything pretty straightforward, and then just adapt to your own needs.

Good luck!

Stefan Tiedje's icon

Patrick Delges schrieb:
> Don't know for recent MacBooks, but in the past this was possible with
> some models only. I think you had to plug an external monitor. Now, with
> these very hot microprocessors, it may be too dangerous to keep the
> laptop closed.

This was in ancient times. Nowadays it will just melt your display...
But you can run a mac mini without monitor/keyboard...
The easiest is to just don't let anybody come close with liquids. Or you
setup the internal camera with some jit.cv patch to dectect beverages
and shut down in case somebode is too close... ;-)
A beer over a closed Macbook isn't good either by the way...

Stefan

--
Stefan Tiedje------------x-------
--_____-----------|--------------
--(_|_ ----|-----|-----()-------
-- _|_)----|-----()--------------
----------()--------www.ccmix.com

jason bradberry's icon

Cheers for the replies. Im using mac osx leopard. Im going down the route of a playstation controller with midi adaptor as i really want the controller to be familiar to a regular guy off the street.

My plan is to make a patch that allows someone who has no musical training to pick up the playstation control and make music easily, so im doing things like mapping the joystick to pitch and limiting the notes that can be played to certain selectable scales.

So far i have the pitch scaling working, next thing is to buy the playstation control and get the 'hi' thing going.

Anyone know if i will need a driver for osx to see the playstation controller? If i do need one where would i find that sort of thing?

jason bradberry's icon

Just got the playstation controller and am following through the article Algeo mentioned (https://cycling74.com/story/2007/3/12/113645/135)

Thanks for that Algeo its really helpful.

Unfortunately im having no luck getting the hi to read the movements on the playstation controller. It sees it in the umenu but when i click for it to begin polling the device for incoming data and move the joystick controls nothing happens. Ive followed the tutorial exactly so far.

Im guessing maybe i need a driver for the playstation control?

Im using mac OSX leopard 10.5.2 and the new sixaxis playstation 3 conroller pad, plugged in via usb.

Any ideas? Im a little stick here...! :)

jdh's icon

I'm sure you'll get your stick unstuck

dlehrich@gmail.com's icon

Have you tried it with a different USB controller (for example, the 360 controller)? I had difficulties getting the PS3 controller to work with Max, and I remember reading somewhere that it wasn't going to work correctly without a driver, which didn't exist. (can't recall where I saw that unfortunately).

However... I can guarantee that with the 360 controller and the OSX driver I mentioned in my previous post, it will work. I've used it in several projects.

/dan

Quote: jason_bradberry@yahoo.co.uk wrote on Mon, 10 March 2008 17:42
----------------------------------------------------

> Unfortunately im having no luck getting the hi to read the movements on the playstation controller. It sees it in the umenu but when i click for it to begin polling the device for incoming data and move the joystick controls nothing happens. Ive followed the tutorial exactly so far.
----------------------------------------------------

pure's icon

any reason why it has to be the playstation controller? i have two no
name controllers (one from the fleemarket, one from a trashy cheapo
shop) for a few euro each and they both worked immediately with no drivers.

p

Jason Bradberry wrote:
> Just got the playstation controller and am following through the article Algeo mentioned (https://cycling74.com/story/2007/3/12/113645/135)
>
> Thanks for that Algeo its really helpful.
>
> Unfortunately im having no luck getting the hi to read the movements on the playstation controller. It sees it in the umenu but when i click for it to begin polling the device for incoming data and move the joystick controls nothing happens. Ive followed the tutorial exactly so far.
>
> Im guessing maybe i need a driver for the playstation control?
>
> Im using mac OSX leopard 10.5.2 and the new sixaxis playstation 3 conroller pad, plugged in via usb.
>
> Any ideas? Im a little stick here...! :)
>
>
>

Ian's icon

I'm with doctor op and pure, I would ditch the PS3 controller and go for something else. I have no experience myself but I have heard tell that it is difficult to get it working.

I can however vouch for the fact that PS2 controllers work fine and I have used a number of standard USB game pads with good results and no drivers required. These are both pretty cheap and unless you really need some feature of the PS3 pad, will get you results quickly and simply.

jonnyfive's icon
jason bradberry's icon

Gutted if theres no way of making the ps3 controller work with max, i just spent thirty quid on it and i dont even have a playstation!

I really hope i can find a way of making it work. Especially if i was able to use the tilt function too.

The main reason i want to use a playstation control is that the brief i have given myself for this project is to create a system that is familiar to the majority of everyday young people. Playstation controls have been more or less the same for years and most people have at least used one once.

Maybe i will have to go for a ps2 control and a usb adaptor, but i dont want to have wasted my money on the ps3 control!

jason bradberry's icon

I still havent had any luck getting this to work.

Those of you with experience in this sort of thing - do you think i should just stick the ps3 controller on ebay and go with the ps2 controller instead?

I just dont wanna spend weeks trying out different controllers and finding none that work!

Perhaps there is a usb control that functions similarly to the playstation control that is designed for mac. Anyone have any suggestions?

dlehrich@gmail.com's icon

I feel like a broken record at this point, as this will now be the 3rd time in this thread that I say that the Xbox360 controller works perfectly if you install the free OS X driver (see my previous posts for the link)

/dan

Quote: jason_bradberry@yahoo.co.uk wrote on Fri, 14 March 2008 12:32
----------------------------------------------------
>
> Perhaps there is a usb control that functions similarly to the playstation control that is designed for mac. Anyone have any suggestions?
----------------------------------------------------

jason bradberry's icon

thanks dan i am looking into the xbox control now. Ive just been really reluctant to have to buy another control!

Do you know if you can get the xbox control has pressure sensitive buttons and if that can be harnessed using 'hi'? I was thinking of having pressure control velocity for sounds.

Thanks to everyone for the replies.

jason bradberry's icon

Is this the xbox controller i need?

Its listed as compatible with xbox 360 and windows.

Or, there is this one which os listed as a regular xbox 360 controller

Anyone know the difference and which will work with the driver suggested?

Also, having not used an xbox 360, do they have usb connectors? Im assuming the pc compatible control here has a usb connector, but i dont know about the other one.

jonnyfive's icon

The Wired Xbox Controllers come with serial-to-usb dongles. I don't know if
the wireless controllers work with osx but if you check
http://tattiebogle.net/index.php/ProjectRoot/Xbox360Controller/OsxDriver
I believe he says which controllers will work with his drivers.

Also, the logitech/generic ones i have seen are essentially just like the
PS.2 controllers in terms of shape and button configuration, i really don't
think they will feel "unfamilliar" to any users. Of course there are feature
differences like the cheepies don't have rumble feedback or accelerometers,
and I found the D-pads to be a little inaccurate for gaming but they worked
fine for me and what I was doing in Max.

I guess unless there is a specific performance/feature reason (ie
accelerometer) you need for your patch I can see no reason to spend the
name-brand premium on controllers for gaming system you don't own.

Good luck.

On Tue, Mar 18, 2008 at 6:33 AM, Jason Bradberry <
jason_bradberry@yahoo.co.uk> wrote:

>
> Is this the xbox controller i need?
>
>
> http://www.play.com/PC/PCs/4-/842412/Microsoft-XBox-360-Controller-For-Windows/Product.html
>
> Its listed as compatible with xbox 360 and windows.
>
> Or, there is this one which os listed as a regular xbox 360 controller
>
>
> http://www.play.com/Games/Xbox360/4-/719734/Official-Xbox-360-Wired-Controller/Product.html
>
> Anyone know the difference and which will work with the driver suggested?
>
> Also, having not used an xbox 360, do they have usb connectors? Im
> assuming the pc compatible control here has a usb connector, but i dont know
> about the other one.
>