Max/MSP Xcode OSC

Hello folks,

I’m working on a VR project that is built on OPENGL. Currently using Leap Motion as the input source and planning to use Max/MSP(somehow) as the audio engine. But the thing is that it’s not really clear whether Max can communicate with Xcode via OSC or not. I developed an IOS app using Pure Data (libpd) but i’d really like to try Max this time.

Has anyone tried it before?

P.S: Happy to share more info if anyone is interested.

Cheers,

a grain of salt: i haven’t actually used max/msp in quite some time.

but. as you are surely aware, OSC is just a message format. so in the worst case you can use https://docs.cycling74.com/max7/maxobject/udpreceive and parse out the stuff you need.

and then there are the many 3rd-party OSC externals and apps [ https://cycling74.com/?toolbox-tag=osc-2 ] , it looks to me that at least some are pure-max solutions (no externals) so probably using udpreceive in fact.

it’s weird that there isn’t a more obvious way to do this. but CNMAT’s sites regarding this are long-down, and c74 isn’t saying much either.

i am pretty sure that recent max’s are built with JUCE, and JUCE gives you OSC parsing classes for free. so it’s baffling that they wouldn’t just have some built-in objects for routing OSC address patterns. it would take all of 30 minutes coding time.

( i’m saying this as someone who has recently had to shoehorn some OSC bundle-parsing stuff arbitrarily into a realtime-network-clock application for work. so, JUCE is the obvious answer. )

ah well.

i know the thread is old, but feel free to contact me if you still want to discuss it, i’m curious.

1 Like

The CNMAT externals (including the OSC-route, OSC-schedule, and OSC-timetag objects) are available via the Max 7 Package Manager.

Jamoma, also available from the Package Manager, contains j.oscinstance and j.oscroute. Jamoma also has some nice OpenGL models.

Here’s a tutorial that uses CNMAT’s externals:
http://www.conceptualinertia.net/aoakenfo/sketch-1

I agree that it seems strange that externals are necessary for this. Some external-free abstractions on top of udpreceive/udpsend would be nice.

1 Like

Yeah it’s really lame, especially since most people just need vanilla OSC message parsing, and the CNMAT externals let you do OSC-packet-specific manipulations which as cool as I’m sure that is (is it?), is beyond most people’s interest (and/or ability).

For what it’s worth, I’ve been using this quite happily for a couple of years (in The Party Van) to strip the slashes from longer OSC messages to then treat them like “regular” Max/route-style messages.


----------begin_max5_patcher----------
1162.3oc0XtraiaCEFdsySAg1jV.WEdSThyponqK5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