MaxMSP, OSC, iPhone, OSCemote, TouchOSC
Hi all,
I'm having a devil of a time configuring either OSCemote or TouchOSC on my iPhone 3G to connect to MaxMSP. Can anyone point me to a good tutorial, demo patch, website, etc. than can walk me through the process?
Much appreciated in advance!
Steven
there's plenty of information on the oscemote page
cheers
On 22 Jan 2009, at 13:37, smill wrote:
>
> Hi all,
>
> I'm having a devil of a time configuring either OSCemote or TouchOSC
> on my iPhone 3G to connect to MaxMSP. Can anyone point me to a good
> tutorial, demo patch, website, etc. than can walk me through the
> process?
>
> Much appreciated in advance!
>
> Steven
Did you go to the TOUCHOSC website and grab the patches?
easiest way on a mac is to
1.) go to airport icon on mac and select "create network" name it
something cool like "shree777"
go to advanced and note the IP in Network Preferences
2.) go to Iphone Settings and join that network
3.) go to settings in TOUCHOSC and manually type in IP
169.xxx.x.x
On Thu Jan 22 08:37:48 EST 2009, smill wrote:
>
> Hi all,
>
> I'm having a devil of a time configuring either OSCemote or
> TouchOSC on my iPhone 3G to connect to MaxMSP. Can anyone point
> me to a good tutorial, demo patch, website, etc. than can walk me
> through the process?
>
> Much appreciated in advance!
>
> Steven
>
>
Patrick Pagano,M.F.A
Digital Media Engineer
Digital Worlds Institute
GAINESVILLE FL US 32611-5900
University Of Florida
(352) 294-2081
Yes, that's where I started...clearly I'm still looking for more, because the info there just didn't get me anywehere useful.
Thanks, though!
Quote: tomgalileo wrote on Thu, 22 January 2009 07:39
----------------------------------------------------
> there's plenty of information on the oscemote page
>
> http://lux.vu/blog/oscemote/
>
>
> cheers
>
>
>
Thanks, I'll give this a go and see if I get any further. Much appreciated!
Quote: Patrick Pagano wrote on Thu, 22 January 2009 07:43
----------------------------------------------------
> Did you go to the TOUCHOSC website and grab the patches?
>
> easiest way on a mac is to
>
> 1.) go to airport icon on mac and select "create network" name it
> something cool like "shree777"
> go to advanced and note the IP in Network Preferences
>
> 2.) go to Iphone Settings and join that network
>
> 3.) go to settings in TOUCHOSC and manually type in IP
> 169.xxx.x.x
>
>
>
>
Quote: smill wrote on Thu, 22 January 2009 05:37
----------------------------------------------------
> Hi all,
>
> I'm having a devil of a time configuring either OSCemote or TouchOSC on my iPhone 3G to connect to MaxMSP.
----------------------------------------------------
Personally, I'm liking Mrmr:
mz
Thanks Michael, I'll check it out!
Quote: mzed wrote on Fri, 23 January 2009 12:46
----------------------------------------------------
> Quote: smill wrote on Thu, 22 January 2009 05:37
> ----------------------------------------------------
> > Hi all,
> >
> > I'm having a devil of a time configuring either OSCemote or TouchOSC on my iPhone 3G to connect to MaxMSP.
> ----------------------------------------------------
>
>
> Personally, I'm liking Mrmr:
>
> http://poly.share.dj/projects/#mrmr
>
> mz
>
>
>
----------------------------------------------------
Quote: smill wrote on Thu, 22 January 2009 07:37
----------------------------------------------------
> Hi all,
>
> I'm having a devil of a time configuring either OSCemote or TouchOSC on my iPhone 3G to connect to MaxMSP. Can anyone point me to a good tutorial, demo patch, website, etc. than can walk me through the process?
>
----------------------------------------------------
Sometimes the connection seems to "time out" for some reason. If you re-enter the port # (even just tapping it and saying "Done") that re-connects. Kind of strange.
I posted this example patch on another thread, maybe it'll help get you going or give some ideas. It's designed only for the TouchOSC "Simple" layout. Everything comes in OK, but only some parts echo back to the iPhone, and for some reason, these aren't working anymore (definitely a connection issue as it's worked in the past). Often this isn't an issue unless you want controls in the patch to be usable and update back... for example, storing presets of the matrixctrl screen in Max is a lot easier than tapping them in on the phone, plus you can easily clear/select all/etc. The same goes for all the controls---using presets and pattrs within Max allows any number of global settings to be available (you could use the button screen to access 16 different presets, for example). I don't think you can store presets within TouchOSC itself... might be a nice feature.
To get started using the controls for something beyond just watching them move on the screen (which admittedly is fun by itself :) there's an sfplay~ controlled by the first two faders (L/R volume levels) and I use the XY screen to make a "wah pedal" of sorts using filtergraph~. The routing of commands is simple except for the matrix one (4th screen) which needed a little regexp to parse correctly. The other layouts use similar commands so you should be able to customize as needed if you prefer these, or want to be able to use multiple layouts.
The range of the iPhone in this setup is great! Plus you don't have to be connected to the Internet, you can simply have a wireless router set up which "goes nowhere" that's hooked into the computer you want. It may take a bit of fiddling. For ease of testing try it at your favorite coffee shop that's already got wireless, then watch people's stares of amazement as you play music and videos on your laptop from across the room!
Many thanks seejay - I'll have a go at this later this evening and get back to you if I have questions.
Quote: seejayjames wrote on Fri, 23 January 2009 20:02
----------------------------------------------------
>
> Sometimes the connection seems to "time out" for some reason. If you re-enter the port # (even just tapping it and saying "Done") that re-connects. Kind of strange.
>
> I posted this example patch on another thread, maybe it'll help get you going or give some ideas. It's designed only for the TouchOSC "Simple" layout. Everything comes in OK, but only some parts echo back to the iPhone, and for some reason, these aren't working anymore (definitely a connection issue as it's worked in the past). Often this isn't an issue unless you want controls in the patch to be usable and update back... for example, storing presets of the matrixctrl screen in Max is a lot easier than tapping them in on the phone, plus you can easily clear/select all/etc. The same goes for all the controls---using presets and pattrs within Max allows any number of global settings to be available (you could use the button screen to access 16 different presets, for example). I don't think you can store presets within TouchOSC itself... might be a nice feature.
>
> To get started using the controls for something beyond just watching them move on the screen (which admittedly is fun by itself :) there's an sfplay~ controlled by the first two faders (L/R volume levels) and I use the XY screen to make a "wah pedal" of sorts using filtergraph~. The routing of commands is simple except for the matrix one (4th screen) which needed a little regexp to parse correctly. The other layouts use similar commands so you should be able to customize as needed if you prefer these, or want to be able to use multiple layouts.
>
> The range of the iPhone in this setup is great! Plus you don't have to be connected to the Internet, you can simply have a wireless router set up which "goes nowhere" that's hooked into the computer you want. It may take a bit of fiddling. For ease of testing try it at your favorite coffee shop that's already got wireless, then watch people's stares of amazement as you play music and videos on your laptop from across the room!
>
>
Hey, this is a really useful patch. Kudos!!
Is there any info anywhere about routing other things into the interfaces? Such as using the buttons/parameters for VST control or or speed?
Anyone know?
Many thanks,
Nick
-->
Hey, this is a really useful patch. Kudos!!
Is there any info anywhere about routing other things into the interfaces? Such as using the buttons/parameters for VST control or or speed?
-->
Great! Glad you like it. It could use some cleaning up but hey. Also having presets or pattrs would be good, since you can control and save stuff way better in Max than in the TouchOSC app. You could even have the buttons access one of the presets, or scroll through them, etc.
For routing other things with the interface, just think of the elements as standard Max UI elements (which they are). So basically you can control any parameter you want with them: five faders from 0. to 1., sixteen toggles in 4 sets of 4, 16 buttons, an XY control, an 8x8 matrix control, and XYZ accelerometer data. These are collected and sent out as "fader1 fader2" etc., "toggleset1" etc., "accelxyz", etc. So these values can be used anywhere in your patch (and this whole interface can be hidden in a subpatch too). Just use receives to access the data from anywhere.
Oops, looks like I forgot to create a send for the XY control, so you should add that. Note the scale objects which take in the values from TouchOSC and scale them to more useful values (which will depend on what you do with them). All the continuous values coming in are 0. to 1., so to do things like control volume, scale them to 0 to 127 and attach to your gainfaders. Similar for other objects: in the filtergraph~ I scale to 50-2000 for a good frequency range, so change to suit your tastes. The XY control takes int values, so it's scaled to reflect what's happening. These values can then be scaled again.
It's so cool that this is available and so cheap! You could control your whole entertainment center with it if your sound and video is computer-based. Plus you can do so much more than just play back audio and video, as you know. And the wireless range is really great.
Thanks for the info, it really is amazing!
I was hoping you could help me further, I have this awesome joystick patch (posted below) that I use with a gaming pad. There is a VST section there that takes the routed numbers generated from the pads buttons to the controls for the VSTs.
Is it possible to take the VST section out of this patch and combine it successfully with the sends from the iphone? I have had a go but kind of got into a mess.
I could make for some awesome effects if this was possible.
Here is my patch
Many thanks, Nick
Hi
Earlier this summer I did get SeeJayJames' patch working - great!
However, have come back to it and can't get osc messages from iphone. Can I checklist what I need to do?
I've tried:
1. Getting system-preferences -> network -> airport ip address (10.229.212.1) from the tcp/ip panel.
2. putting that in oscemote settings in the blank upper screen and using port 7400
3. then use [udpreceive 7400] object in Max.
Not seeing anything.
Does the iPhone need to be connected to internet / same network?
Any help appreciated!!
Yes. The iPhone must either be connected to the same wireless network that the host computer is connected to, or connected to a Computer-to-Computer network created by the host computer in order to send OSC packets to that computer and to receive them as well.
Here's how to set up a Computer-to-Computer network if you'd like to use that:http://docs.info.apple.com/article.html?path=Mac/10.5/en/8339.html
Or you can just make sure that the iPhone is set to the same wireless network that your host computer is set to!
Eli
That's great, tahnks very much much.
Hi all,
I was wondering if anyone could give me a quick tutorial on how to get TouchOSC on my iPod touch connected to MAX MSP on my mac, I have read posts but still can't get it connected?
Thanks in advance.
Jack
You'll need a network - go to airport icon in top right of screen - click create network - give it name - e.g. "ludwig"
click on 'show options', type in password with 5 letters, e.g. "apple".
Then, on iphone/itouch (I'm guessing works same) - go to
settings->general-> network -> wifi
and join your network "ludwig" and type in your password "apple"
Now go to system preferences->network - click on airport - tcp/ip and get the number of your i.p. address -
e.g. 169.254.253.188
Now on phone/touch - go to app - in my case oscemote - and in settings - type in the number ( e.g. 169.254.253.188) in the IP address box and for port type in "7400".
The in max:
create
[loadbang]
|
[port 7400] message
|
[udpreceive]
|
[print]
try pressing the osc - do you get stuff? make sure you click on port 7400 so it listens.
try route /button/A1 or /buttons/A1 to see the button when pressed
osc data has a name so needs to be routed.
Let us know how you get on.
Also, does anyone have any tips about using wifi/internet connections rather than the special computer-to-computer network connection? Any problems doing that?
Andrew
Hi Andrew thanks very much for your help.
I've got an outgoing and incoming port in the settings can I use any port number but obviously they must be different?
Also could you go into a little more detail about the following as I've never really used MAX MSP before now so it's all very new
Venetian wrote on Sun, 18 October 2009 12:18
The in max:
create
[loadbang]
|
[port 7400] message
|
[udpreceive]
|
[print]
Thanks again,
Jack
Just to let you know I got it working thanks.
Jack
Any Tutorials on how to capture touchOSC presses and apply them to an object?
Cheers,
Jack