Hi people.. I have one question... how i can make a PD Server using Linux? I would like start projects for interactive installations and start others ideas using PD.
grettings
Definitely. It's not the most secure program, so keep that in mind.
Don't run Pd on a server that needs to be secure, like your mail
server. Here are some key things that you will probably want to know
about:
-nogui command line option
[tcpserver] and [netserver] objects.
.hc
On Jan 7, 2008, at 2:19 PM, Ricardo Brazileiro wrote:
Hi people.. I have one question... how i can make a PD Server using Linux? I would like start projects for interactive installations and start
others ideas using PD.grettings
-- Ricardo Brazileiro Linux User: #452427 http://rbrazileiro.wordpress.com http://estudiolivre.org _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
kill your television
well you can use the pd objects, netsend and netrecieve i think they even have a simple chat server using netserver implementation in there. I have written a Java server that works in conjunction with the netclient object. the reason i am doing that is because i can write a multithreaded server.
basically you need to know a little bit about sockets to make it work.
agent_engram
On Jan 7, 2008 2:19 PM, Ricardo Brazileiro rbrazileiro@gmail.com wrote:
Hi people.. I have one question... how i can make a PD Server using Linux? I would like start projects for interactive installations and start others ideas using PD.
grettings
-- Ricardo Brazileiro Linux User: #452427 http://rbrazileiro.wordpress.com http://estudiolivre.org _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
i made a couple of tutorial once. probably way out of date though.....buy might help you get started:
http://megrimm.net/entry/41/howto_run_pd_patches_from_ubun/bits#body
http://megrimm.net/entry/44/howto_run_a_puredata_pd_patch_/bits#body
--- Agent Engram agentengram@gmail.com wrote:
well you can use the pd objects, netsend and netrecieve i think they even have a simple chat server using netserver implementation in there. I have written a Java server that works in conjunction with the netclient object. the reason i am doing that is because i can write a multithreaded server.
basically you need to know a little bit about sockets to make it work.
agent_engram
On Jan 7, 2008 2:19 PM, Ricardo Brazileiro rbrazileiro@gmail.com wrote:
Hi people.. I have one question... how i can make a PD Server using Linux? I would like start projects for interactive
installations and start others
ideas using PD.
grettings
-- Ricardo Brazileiro Linux User: #452427 http://rbrazileiro.wordpress.com http://estudiolivre.org _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
--
i am an agent implanted into your unconscious when you abducted by the travelers. look for signs of me in your life.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
mark edward grimm | m.f.a | ed.m
syracuse u. | art foundations | new media consultant
megrimm.net | socialmediagroup.org & .com
meg156@columbia.edu | 585.509.8703
________________________________________
so this thread is kindof a good place to ask a question. I have a working pd client but I am tring to parse out results from my object server, needed to manage the OCS data coming from my TUIO server.
here is my client patch....
http://www.newobjectivity.com/downloads/pd/tuio_netclient2.gif
it seems the data is coming from the server ok...
connecting to port 4444 client1: 6.2204e+008 client1: -4.89024e+008 client1: 4.04002e+008 client1: 2.1349e+009 client1: 5.86242e+008 client1: -1.48487e+009 client1: -5.38399e+008 client1: 1.61029e+009 client1: 3.0085e+008 client1: 7.2771e+008
its just that the number value doesnt get translated, right now it toggles between + and -
ultimately I will want to parse a longer line that looks something like id=34;x=200;y=104;rot=359 into its component parts. can someone point me at a tutorial that could show me how to get real data out of this client?
agent_engram
On Jan 8, 2008 5:59 AM, mark edward grimm meg156@columbia.edu wrote:
i made a couple of tutorial once. probably way out of date though.....buy might help you get started:
http://megrimm.net/entry/41/howto_run_pd_patches_from_ubun/bits#body
http://megrimm.net/entry/44/howto_run_a_puredata_pd_patch_/bits#body
--- Agent Engram agentengram@gmail.com wrote:
well you can use the pd objects, netsend and netrecieve i think they even have a simple chat server using netserver implementation in there. I have written a Java server that works in conjunction with the netclient object. the reason i am doing that is because i can write a multithreaded server.
basically you need to know a little bit about sockets to make it work.
agent_engram
On Jan 7, 2008 2:19 PM, Ricardo Brazileiro < rbrazileiro@gmail.com> wrote:
Hi people.. I have one question... how i can make a PD Server using Linux? I would like start projects for interactive
installations and start others
ideas using PD.
grettings
-- Ricardo Brazileiro Linux User: #452427 http://rbrazileiro.wordpress.com http://estudiolivre.org _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
--
i am an agent implanted into your unconscious when you abducted by the travelers. look for signs of me in your life.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
mark edward grimm | m.f.a | ed.m syracuse u. | art foundations | new media consultant megrimm.net | socialmediagroup.org & .com meg156@columbia.edu | 585.509.8703 ________________________________________
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Agent Engram wrote:
so this thread is kindof a good place to ask a question. I have a working pd client but I am tring to parse out results from my object server, needed to manage the OCS data coming from my TUIO server.
since TUIO really just builds on top of OSC (it took me some time to understand that you really mean "OSC" when you write "OCS"; there are so many abbreviations and acronyms out there that you have to be careful,...), why don't you just use OSC-objects?
there is this nice set of externals from mrpeach: net/: a collection of objects allowing you to open UDP or TCP/IP ports as client or server osc/: a collection of objects that parse the output (or input resp.) of the net/-objects as OSC-messages understandable by Pd.
afaik they are part of pd-extended. if you are not using pd-extended, get them from ./externals/mrpeach/net and ./externals/mrpeach/osc (both in the pd-repository at sourceforge)
here is my client patch....
http://www.newobjectivity.com/downloads/pd/tuio_netclient2.gif
hmm, this is not really a patch, this is an image :-)
since Pd patches are usually very small text-files, it often makes sense to send the patches themselves instead of screenshots of them.
it seems the data is coming from the server ok...
afaik, [netclient] (as well as mrpeach/net's [udpreceive]/[tcpreceive]) will output binary data in the form of lists of byte-values. you will have to parse them to make sense. otoh, your output does not seem to be binary-data in form of byte-lists. it seems to be binary data interpreted as pd-messages. OSC is a binary protocol.
fmgsdr. IOhannes
will output binary data in the form of lists of byte-values.
so this may be a misunderstanding. I am writing my own server that intercepts the OCS events, that all works. what I am trying to figure out is if i wanted to send out messages to net client for instance a string that was something like id 56; x 200; y 300; rot 0.923; what would I need to do to parse the netclient result.
I have tried [route x]-----[unpack $1] but that doesnt seem to work, but when i print the message using [print client1] it prints it just fine.
agent engram
On Jan 9, 2008 12:35 AM, IOhannes m zmoelnig zmoelnig@iem.at wrote:
Agent Engram wrote:
so this thread is kindof a good place to ask a question. I have a working pd client but I am tring to parse out results from my object server, needed to manage the OCS data coming from my TUIO server.
since TUIO really just builds on top of OSC (it took me some time to understand that you really mean "OSC" when you write "OCS"; there are so many abbreviations and acronyms out there that you have to be careful,...), why don't you just use OSC-objects?
there is this nice set of externals from mrpeach: net/: a collection of objects allowing you to open UDP or TCP/IP ports as client or server osc/: a collection of objects that parse the output (or input resp.) of the net/-objects as OSC-messages understandable by Pd.
afaik they are part of pd-extended. if you are not using pd-extended, get them from ./externals/mrpeach/net and ./externals/mrpeach/osc (both in the pd-repository at sourceforge)
here is my client patch....
http://www.newobjectivity.com/downloads/pd/tuio_netclient2.gif
hmm, this is not really a patch, this is an image :-)
since Pd patches are usually very small text-files, it often makes sense to send the patches themselves instead of screenshots of them.
it seems the data is coming from the server ok...
afaik, [netclient] (as well as mrpeach/net's [udpreceive]/[tcpreceive]) will output binary data in the form of lists of byte-values. you will have to parse them to make sense. otoh, your output does not seem to be binary-data in form of byte-lists. it seems to be binary data interpreted as pd-messages. OSC is a binary protocol.
fmgsdr. IOhannes
tuio_netclient file attached
starting server... addval -1808180500 addval -245369419 addval -386604114 addval 349531305 addval -348985598 addval -1619147716
On Jan 11, 2008 9:19 PM, Agent Engram agentengram@gmail.com wrote:
will output binary data in the form of lists of byte-values.
so this may be a misunderstanding. I am writing my own server that intercepts the OCS events, that all works. what I am trying to figure out is if i wanted to send out messages to net client for instance a string that was something like id 56; x 200; y 300; rot 0.923; what would I need to do to parse the netclient result.
I have tried [route x]-----[unpack $1] but that doesnt seem to work, but when i print the message using [print client1] it prints it just fine.
agent engram
On Jan 9, 2008 12:35 AM, IOhannes m zmoelnig zmoelnig@iem.at wrote:
Agent Engram wrote:
so this thread is kindof a good place to ask a question. I have a working pd client but I am tring to parse out results from my object server, needed to manage the OCS data coming from my TUIO server.
since TUIO really just builds on top of OSC (it took me some time to understand that you really mean "OSC" when you write "OCS"; there are so many abbreviations and acronyms out there that you have to be careful,...), why don't you just use OSC-objects?
there is this nice set of externals from mrpeach: net/: a collection of objects allowing you to open UDP or TCP/IP ports as client or server osc/: a collection of objects that parse the output (or input resp.) of the net/-objects as OSC-messages understandable by Pd.
afaik they are part of pd-extended. if you are not using pd-extended, get them from ./externals/mrpeach/net and ./externals/mrpeach/osc (both in the pd-repository at sourceforge)
here is my client patch....
http://www.newobjectivity.com/downloads/pd/tuio_netclient2.gif
hmm, this is not really a patch, this is an image :-)
since Pd patches are usually very small text-files, it often makes sense to send the patches themselves instead of screenshots of them.
it seems the data is coming from the server ok...
afaik, [netclient] (as well as mrpeach/net's [udpreceive]/[tcpreceive]) will output binary data in the form of lists of byte-values. you will have to parse them to make sense. otoh, your output does not seem to be binary-data in form of byte-lists. it seems to be binary data interpreted as pd-messages. OSC is a binary protocol.
fmgsdr. IOhannes
--
i am an agent implanted into your unconscious when you abducted by the travelers. look for signs of me in your life.
Agent Engram wrote:
will output binary data in the form of lists of byte-values.
so this may be a misunderstanding. I am writing my own server that intercepts the OCS events, that all works. what I am trying to figure out is
since you keep calling it OCS, i guess my assumption that you mean OSC (Open Sound Control) is wrong. could you please tell me what OCS is is?
if i wanted to send out messages to net client for instance a string that was something like id 56; x 200; y 300; rot 0.923; what would I need to do to parse the netclient result.
I have tried [route x]-----[unpack $1] but that doesnt seem to work, but when i print the message using [print client1] it prints it just fine.
might be a problem with the parsing of your string. when you send a message to Pd (e.g. [netreceive]), it will parse the string received and try to interpret it as a pd-message. e.g. the string "id 56" will be split into a symbol-atom "id" and a number "56".
if your string is somehow "weird" (e.g. because you send "56,4" instead of "56.4") Pd's built-in parser might parse the string in an unexpected way. (e.g. "56,4" will become a symbol "56,4"!)
[netclient] is an external, probably it uses some broken parser.
2 suggestions:
from your server, if that is feasible.
Pd but are happy with a unidirectional one, use [netreceive] instead; this object is built-into Pd and certainly better tested.
gfmadfr IOhannes
thanks a bunch, OSC it is, on port 3333, from the reacTable TUIO server.
I figured out that I needed ";\n" on my messages for the router to figure them out.
here is my netclient in PD, i will be making my server available also when I get that darn BLOG up.
agent engram
On Jan 13, 2008 7:18 AM, IOhannes m zmoelnig zmoelnig@iem.at wrote:
Agent Engram wrote:
will output binary data in the form of lists of byte-values.
so this may be a misunderstanding. I am writing my own server that intercepts the OCS events, that all works. what I am trying to figure
out is
since you keep calling it OCS, i guess my assumption that you mean OSC (Open Sound Control) is wrong. could you please tell me what OCS is is?
if i wanted to send out messages to net client for instance a string
that
was something like id 56; x 200; y 300; rot 0.923; what would I need to
do
to parse the netclient result.
I have tried [route x]-----[unpack $1] but that doesnt seem to work,
but
when i print the message using [print client1] it prints it just fine.
might be a problem with the parsing of your string. when you send a message to Pd (e.g. [netreceive]), it will parse the string received and try to interpret it as a pd-message. e.g. the string "id 56" will be split into a symbol-atom "id" and a number "56".
if your string is somehow "weird" (e.g. because you send "56,4" instead of "56.4") Pd's built-in parser might parse the string in an unexpected way. (e.g. "56,4" will become a symbol "56,4"!)
[netclient] is an external, probably it uses some broken parser.
2 suggestions:
- if you really mean OSC intead of OCS, then try sending OSC data to Pd
from your server, if that is feasible.
- if you don't need a bidirectional connection between your server and
Pd but are happy with a unidirectional one, use [netreceive] instead; this object is built-into Pd and certainly better tested.
gfmadfr IOhannes