I don't know much about OSC. Nothing really. I also haven't tried making PD send something to proce55ing yet but here are a couple of things I can tell you. Making proce55ing talk to PD is simple, mainly because netreceive is a listening socket, waiting for connections. One of the main things to keep in mind is that you have to manually terminate any message sent with a semi-colon. For instance:
netWrite("55"); //will not work because PD doesn't know that the message is finished and it's now supposed to do something with it.
netWrite("55;"); //will work. netWrite(myVar + ";"); //will work.
Another thing that complicates matters is that proce55ing seems to have problems with keeping sockets open. If you open a socket, send something and then try to send something else, you run into all sorts of problems. If you open a socket, send something, close it and then open another for the next message etc. It's OK. I don't know how this will go over on a real network however.
After trying for quite some time to send data from PD to proce55ing, I've come to the conclusion that there's a problem there with the terminating character. Proce55ing doesn't appear to realize when PD has finished its message. This is based on the fact that if I connect (no problems there) and then send a message, proce55ing won't let me disconnect. However, if I connect and then disconnect without sending anything, proce55ing will display a message stating that the client has disconnected.
So there, that's what I know about it.
Pall Thayer artist/teacher Fjolbrautaskolinn vid Armula http://www.this.is/pallit http://www.this.is/pallit/isjs http://www.this.is/pallit/harmony http://130.208.220.190/panse
----- Original Message ----- From: "Rene Christen" nay_m_c@hotmail.com To: pd-list@iem.at Sent: Thursday, February 19, 2004 10:32 PM Subject: Re: [PD] PD + Processing
hi, this thread might provide some answers:
http://processing.org/discourse/yabb/YaBB.cgi?board=Programs;action=display;...
apparently java won't be able to be integrated fully until the next
release,
osc/midi suppport is in the works. someone on the thread suggested using serial between the 2 but i guess that might be too much hassle
would be interested to hear if you get something working
cheers
rene.
i'd be very interested
From: 0001@ooo000ooo.org To: pd-list@iem.at Subject: Re: [PD] PD + Processing Date: Thu, 19 Feb 2004 12:08:36 GMT
hi there. I tried this some time ago.it's very easy to use the built in net functions in processing to talk to netreceive (the other way pd-
processing doesn't seem so trivial)
In the other hand you can easily call any java code from within processing. I tested JavaOSC with supercollider and found no problems,I guess it should work with pd as well.
regards,
gerard
Oh, actually that applet talks to a Perl script that talks to PD but should be just as functional if the socket is connected to a PD
netsend.
All the Perl script does is turn netreceive and netsend into a single bi-directional socket.
-- Pall Thayer artist/teacher http://www.this.is/pallit http://130.208.220.190/ http://130.208.220.190/nuharm http://130.208.220.190/panse
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
*:-.,_,.-:*'
'*:-.,_,.-:*'
'*:-.,_,.-:*'``'*:-.,_:-.,_,.-:**:-.,_,.Register your domain names now at Wyith.net http://www.wyith.net
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
E-mail just got a whole lot better. New ninemsn Premium. Click here http://ninemsn.com.au/premium/landing.asp
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list