Sending data from pure dara into Max

vab s's icon

hello community! anyone know how to send data from pure dara into Max?

thanks!

yaniki's icon

Depends on the nature of your data and general context you can use protocols such as OSC (OpenSound Control), MIDI, Syphon (for realtime video sharing), Jack or similar solutions for audio streams.

More possibilities exists, depends on your needs.

Btw. there is a PureData version compiled as Max external.

vab s's icon

just numbers, floating points from 0 to 1

yaniki's icon

Ok, so OSC will be probably the simplest way to do that. Both Max and PD are able to send/receive basic OSC messages with build-in objects.

On Max side check: [udpsend] and [udpreceive] objects and on Pd side [oscformat] and [oscparse].

vab s's icon

ooh now it's clear) thank you!

OCH's icon

@Yaniki can you post an example?

Unfortunately this is only way I've been able to make it work. Can't do it without the -b flag on pd side.

udp data from max to pd

OCH's icon

Also, just posted about the other way around here.

yaniki's icon

Hello Omar

Here is a simple example. There are many advantages to using OSC formatted messages, including simple data routing.

Good luck ;-)

example.zip
application/zip 5.99 KB

OCH's icon

Thanks Yaniki.
The example from pd to max is very helpful.
And so I realize you also have to always use the -b flag.

Best