TouchOSC (iPhone) -- Simple Layout in Max
Feb 09 2009 | 6:46 pm
I've written a helper patch that sends and receives OSC data between the TouchOSC program (on the iPhone) and Max/MSP.
I'm using TouchOSC 1.5 and Max 5.0.5. on a MacBookPro and the OSC stuff "Everything For Mac OSX" from CNMAT. http://cnmat.berkeley.edu/downloads
Here is the link to the my max5 patch: http://home.lagrange.edu/mturner/software/simple_send-and-receive.zip
Hope others find it useful, Mitch
- Feb 10 2009 | 2:25 amThere was an error in the original version of this patch involving the receiving port number box. I believe I've fixed it now. Sorry if the patch did not work as advertised. It should now. Mitch
- Feb 10 2009 | 11:10 amit's a kind of magic 'cause it works now and I spent so much time being lost in network configurations.What's the best way to create a network between your computer (a mac for example) and your iphone or itouch when you don't have any wifi connexion ? This should be a kind of computer to computer network or something ...If you have a tutorial on those networks and other IP stuff, i'm glad you share it !Anyway, thanks a lot for your patch.ka.
- Feb 10 2009 | 2:35 pmKa, For the below instructions, I assume that you have Max5 and have downloaded the CNMAT files (placing them in Max's search path).Here is what I do to create a computer-to-computer network with TouchOSC and my iPhone.1) Click AirPort Status in the osx menu bar and select "Create Network".2) Name the network (I named mine MacBookPro) and click "ok".3) Your AirPort Status icon on the computer should change the way it looks. Mine is kind of grey with sort of a computer icon in it.4) Now click on the "Apple" in the main menu bar and select "About this Mac" then select "More Info" and them select "Network", note the IP address given on the IPv4 Address line. Mine is 169.254.103.247 .5) Now go to the "setting" on your iPhone. Select Wi-Fi. On the Wi-Fi page, select the name of the Wi-Fi network you created in step 2 (I chose "MacBookPro"). A check mark appears by the selected network. Now close the iPhone's Settings.6) Open the TouchOSC application (on the iPhone) and go into the network setting. Set the Host to the IPv4 Address number from step 4. Mine is 169.254.103.247. Set the Port (outgoing) to something like 8000 and the Port (incoming) to something like 8001. Now, make a note of the "Local IP address", mine is: 169.254.143.2477) Open the file simple_send-and-receive.maxpat . In the box labeled iphone ip, put the address called "Local IP address" from step 6. I put in the address: 169.254.143.247 . Also, click the boxes labeled "receive on/off" and "send on/off" in the patch.8) Now select the "Simple" Layout in the iPhone and things should work.There may be better ways to do it, but this works for me. Hope it helps, Mitch
- Feb 22 2009 | 4:24 pmHey, I've been working with the patch and its great but I can only control my iphone from my macbook pro and not the max patch from my iphone, my sends and receives are the numbers suggested, 8000 and 8001... Also downloaded the CNMAT everything stuff and threw it in my patches folder (couldnt quite extract it using stuffit etc so it just clicked 'open enclosing folder' and threw those folders that appeared from it in the patches folder. Could this be the problem?Any ideas?Many thanks, nick