dear list
does anybody know how to connect pd to java and/or to directorMovies via netsend / netreceive ? are there any example scripts ? i found java-osc but it goes only one direction.
thanx for some ideas + help
...tobias
Yeah, I used pd connected to a java applet for a performance. I used the netclient and netserver objects from maxlib which are bi-directional The windows versions are here... http://www.akustische-kunst.org/puredata/maxlib/
Btw: Those objects send a semi-colon appended on the end of messages so you'd have to remove them at the java and add them before sending back to pd.
Cheers. Ed, Suppose, Nottingham UK. http://www.suppose.co.uk http://ed.suppose.co.uk ed@suppose.co.uk -----Original Message----- From: pd-list-admin@iem.kug.ac.at [mailto:pd-list-admin@iem.kug.ac.at] On Behalf Of -ô_ô- Sent: 22 April 2003 12:32 To: pd-list@iem.kug.ac.at Subject: [PD] netsend/netreceive > java || director ?
dear list does anybody know how to connect pd to java and/or to directorMovies via netsend / netreceive ? are there any example scripts ? i found java-osc but it goes only one direction. thanx for some ideas + help ...tobias
you might also try flosc.
its a java gateway between xml over tcp to osc over udp.
very handy, cause with udp you can start the java app and the pd app independant of the other.
the code is there to look at, but i forget where. do a google for flosc.
best - august.
dear list
does anybody know how to connect pd to java and/or to directorMovies via netsend / netreceive ? are there any example scripts ? i found java-osc but it goes only one direction.
thanx for some ideas + help
...tobias
On Tue, 22 Apr 2003, [iso-8859-1] -�_�- wrote:
dear list
does anybody know how to connect pd to java and/or to directorMovies via netsend / netreceive ? are there any example scripts ? i found java-osc but it goes only one direction.
thanx for some ideas + help
With netsend/netreceive you have to open two channels, one pd->otherapp, the other otherapp->pd.
The connections are built on simple sockets (choose between tcp and udp, whereas udp is less troublesome most of the times).
In director you can use the netXtra to create sockets in Lingo. The protocol to communicate is very simple, just append ";" to every message you send to pd.
You can test sending messages with the "pdsend" shell command that comes with the pd packages.
Guenter
I have a crappy little java app that did this, but there are probably better examples out there. Let me know if you want it. On the Pd end, I think you'd be better off using [netserver] from maxlib. Its much nicer to deal with than [netreceive].
.hc
On Tue, 22 Apr 2003, -ô_ô- wrote:
dear list
does anybody know how to connect pd to java and/or to directorMovies via netsend / netreceive ? are there any example scripts ? i found java-osc but it goes only one direction.
thanx for some ideas + help
...tobias
zen
\
\
\[D[D[D[D
hi
About comunicating PD to Director: if you are interested on netsend netreceive to comunicate PD to Director i did some stuff in that direction but never got Director to receive from PD, only sending Dir to PD.
however i think its much better to use Flashserver external for PD to communicate (by importing flash into director, so the comunication is Dir -> Flash -> PD). Its quite eficient and not that complex to set.
but the very best solution would be to use OSCar Xtra for Director (only in Mac) that allows to send OSC messages from director and OSC external on PD
you can find some examples of different methods we have explored and we prepared for some students in the following page: http://www.ixi-software.net/iua/
if you discover some nicer way to do it please email me about it. i would also be interested to see if you discover some fully working system ro code to communicate Java and PD via OSC.
On 22 Apr 2003 at 13:31, -ô_ô- wrote:
dear list
doesanybody know how to connect pd to java and/or to directorMovies via netsend / netreceive ? are there any example scripts ? i found java-osc but it goes only one direction.
thanx for some ideas+ help
...tobias