i get bytes2pp ...counldn't create i downloaded both files i am on extended 42.5 on a mac
pp
From: pd-list-bounces@iem.at [pd-list-bounces@iem.at] on behalf of Martin Peach [martin.peach@sympatico.ca] Sent: Thursday, February 16, 2012 12:56 PM To: pd-list@iem.at Subject: Re: [PD] socket object?
Here's a pdlua script to do that, it should work with pd-extended. It's quite simple to customize for any ascii packet such as yours that has a fixed structure.
Martin
On 2012-02-16 11:50, Pagano, Patrick wrote:
i cannot find iemnet for OSX
using bytes to any and mr peach's tcpclient i am able to get the data back to the same thing max was spitting out
print: [[[6171 , 520]] , [[590 , 655]]] but i cannot seem to strip off the brackets correctly
i can strip off one delineator so it seems
i will try gridflow next
From: pd-list-bounces@iem.at [pd-list-bounces@iem.at] on behalf of Roman Haefeli [reduzent@gmail.com] Sent: Thursday, February 16, 2012 11:41 AM To: pd-list@iem.at Subject: Re: [PD] socket object?
On Thu, 2012-02-16 at 16:58 +0100, IOhannes m zmölnig wrote:
On 02/16/12 16:46, Pagano, Patrick wrote:
Hi and thanks We are listening for tcp in max i get the lines read as LaserOutput: [[[2705,246]],[[1358,402]]]
and in pd using mrpeach's tcpclient it reads back 91 91 91 50 54 54 49 44 50 56 54 93 93 44 91 91 49 51 54 53 44 52 49 56 93 93 93 13 10
i of course want to strip off the brackets and close brackets and just get to the numbers inside the strings is this possible? Can i convert the bytes to characters/numbers?
moocow's "pdstring" library might come in handy.
you could also try to do something like this:
[tcpclient 7777] | [list append 59 10] | [list prepend send] | [list trim] | [udpsend]<-[connect localhost 7777(
This won't work, because TCP is a stream-based protocol and you cannot be sure, that the whole _message_ comes in one chunk, or that one chunk contains only one message. It's anyway only mrpeach's [tcpclient] that outputs the incoming stream as chunks (Pd lists). iemnet's [tcpclient] outputs the incoming stream as a stream of Pd floats (which is IMHO the appropriate way).
Roman
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list