I knew that it is possible to connect Pure Data to Pure Data over Socket. And I think it should than be possible to connect Pure Data to Python and Python to Pure Data over Socket. But I realy not knew what is to do to make it for me possible. I dont knew the Structure of a Pure Data Massage, and I don't knew should Python be client or server.
So all ideas Manuals und Tutorials welcome.
-
Pure Data with Python over Socket
-
It depends on what you want to do. If you import the sys Python module, then you can send data to Pd via pdsend, and probably receive data from Python with pdreceive..
-
@Mungo1981 Hello again Mungo....
Pure data has a very simple message structure....... a list..... which can be a real list of data (named by its first item) with items separated by "whitespace", or an "un-named" list of one atom, which can be a float or a symbol.
Read chapter 2.3.1 (at least) here >> http://puredata.info/docs/manuals/pd/x2.htmThis link might get you started on the Python side of things http://stackoverflow.com/questions/35804764/sending-multiple-values-via-sockets-with-python-to-pure-data
That should help you send something to Pure Data over a socket........ and you should be able to receive the data using [netreceive] as discussed previously........
It also explains how to put the correct "white-space" delimiters in the list that Python needs to send........
David.