Forums > MaxMSP

Interaction between Max and other langague like PHP/C++?

December 1, 2011 | 2:18 am

Hi,

I am new to MAX and I will like to know all the possibilities to connect Other langague like PHP/JS or C++ to Max.

Example, I would like an interface designed in C++ or HTML/JS/PHP, and send datas to a patch Max.
Is it possible with a tcp/ip object?

Thanks!


December 1, 2011 | 8:50 am

Hi Hugo,

yes, it is. In fact, you can also extend MaxMSP with own objects. Currently you can build externals in C++, Java and JS. So one way to go could be to re-design your software in Max or to create at least a custom external that can handle communication with your program in the way you desire. On the other hand, you have lots of networking tools for Max: With the [netsend] and [netreceive] objects you can communicate via UDP using OSC for encoding your data. I also have a set of objects in my own library ( http://www.sadam.hu/software ) which can be used to send and receive data through UDP or TCP without any encoding (so that they will send/receive the exact byte stream that you tell them).

Hope that helps,
Ádám


December 2, 2011 | 7:13 pm

Hi Adam,

Funny you guys should be talking about this now. I’m new to this and was wondering, must you have max running on both computers in order to receive and process the data in max, or, is there another way to accomplish the communication?


December 11, 2011 | 2:48 pm

Hi cocamon,

I’m not sure I understand your question. The OP, as I understood, was not talking about having two computers, just having a separate software that could communicate with MaxMSP. If you use a standard TCP/IP solution for this, you really don’t need to care whether you have both programs (MaxMSP and your own) running on the same computer (in which case they will both connect to ‘localhost’) or on different ones… Could you clarify a little bit your question?

Thanks,
Ádám


December 13, 2011 | 8:50 am

Hi Adam,

I think cocamon would like to know if sending and recieving pc both need Max? I could realy use that information too. I have patcher that can send and recieve info via udp but I don’t know how to instal it on the server.

Thanks!
Maciej


Viewing 5 posts - 1 through 5 (of 5 total)