Max Communicating with pd?

MHadlum's icon

Hello everyone,

Is it possible to make max/msp talk to pure data?

Any suggestions welcome

Thanks in advance

Scott Fitzgerald's icon

I used to use netsend and netreceive, OSC works as well.

MHadlum's icon

OSC is working for me.
But I have one problem. I can seem to send float numbers across the network.
EG a float number from pd controlling a slider in Max.

Is there a solution to this?

Scott Fitzgerald's icon

can you post an example patch?

MHadlum's icon

Here are two patches that communicate with each other.
Sending float numbers does not work but sending a multiple and dividing once acquired in the opposing program works fine.

2242.UDP.pd
pd
MHadlum's icon

Sending numbers from pd to Max is proving more tricky..

Scott Fitzgerald's icon

It's a pretty straightforward thing. You'll need to download the OpenSoundControl objects for Max from here : http://www.cnmat.berkeley.edu/MAX and I'd recommend Hans Steiner's PD-extended build from here : http://puredata.info/community/projects/software/pd-extended

pd patch

Max Patch
Copy patch and select New From Clipboard in Max.
Max Patch
Copy patch and select New From Clipboard in Max.

and the Max patch