Dear list,
I'm sure the answer's incredibly simple, but how can I format TCP data going to Pd so that Pd can parse it like a list? At the moment it sees everything as a big string.
I've also noticed that commas seem to split the data going in, is there anything else like this I should know when sending raw TCP to Pd?
I'm using python to send all this data, btw...
Cheers, David
Hallo!
I'm using python to send all this data, btw...
If you use python you could also use xmlrpc for PD (its in CVS I think in the iem folder)
LG Georg
Georg,
I'm also using PDa, so I don't think xmlrpc's working for that... Previously I'd been using OSC to communicate, but I'm not sure if pyOSC is available for Familiar...
Incidentally, installed xmlrpc and got the error 'load_object: Symbol "iemxmlrpc_setup" not found'
Thanks, though...
David __ _ _ _ _ __ ___ _ ___ __ _ _ _ ____ __ Music wants to be free http://sintheta.org
Georg Holzmann wrote:
Hallo!
I'm using python to send all this data, btw...
If you use python you could also use xmlrpc for PD (its in CVS I think in the iem folder)
LG Georg
hi,
Pd messages are terminated by a semicolon, like in the message boxes. Check out the pdsend command that comes as a single executable with pd, it works the same way. It is really easy to send messages to pd this way.
Don't know about xmlrpc, it surely would be compileable for PDa, but might be an overhead. It is unlickely that I can include it in the PDa distro soon.
Cheers Guenter
On Mon, 16 May 2005, David NG McCallum wrote:
Georg,
I'm also using PDa, so I don't think xmlrpc's working for that... Previously I'd been using OSC to communicate, but I'm not sure if pyOSC is available for Familiar...
Incidentally, installed xmlrpc and got the error 'load_object: Symbol "iemxmlrpc_setup" not found'
Thanks, though...
David __ _ _ _ _ __ ___ _ ___ __ _ _ _ ____ __ Music wants to be free http://sintheta.org
Georg Holzmann wrote:
Hallo!
I'm using python to send all this data, btw...
If you use python you could also use xmlrpc for PD (its in CVS I think in the iem folder)
LG Georg
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Guenter,
Is there any information anywhere about how to compile externals for PDa? I'm not familiar with the whole process, but I'd like to be able to adapt other externals if I need them...
David __ _ _ _ _ __ ___ _ ___ __ _ _ _ ____ __ Music wants to be free http://sintheta.org
� wrote:
hi,
Pd messages are terminated by a semicolon, like in the message boxes. Check out the pdsend command that comes as a single executable with pd, it works the same way. It is really easy to send messages to pd this way.
Don't know about xmlrpc, it surely would be compileable for PDa, but might be an overhead. It is unlickely that I can include it in the PDa distro soon.
Cheers Guenter
On Mon, 16 May 2005, David NG McCallum wrote:
Guenter,
Is there any information anywhere about how to compile externals for PDa? I'm not familiar with the whole process, but I'd like to be able to adapt other externals if I need them...
Yes, the system I am using is called openembedded, the information about how to build it is here:
http://www.openembedded.org/cgi-bin/moin.cgi/GettingStarted
Then you can use the bitbake files at: http://gige.xdv.org/pda/release/openembedded/pda/
To add externals to the PDa package you just have to drop their .c file in the extra folder and it will be compiled automatically.
This is only an overview how it is done, it is a bit more complicated and time consuming, not really straightforward to explain.
Cheers
Guenter
David __ _ _ _ _ __ ___ _ ___ __ _ _ _ ____ __ Music wants to be free http://sintheta.org
� wrote:
hi,
Pd messages are terminated by a semicolon, like in the message boxes. Check out the pdsend command that comes as a single executable with pd, it works the same way. It is really easy to send messages to pd this way.
Don't know about xmlrpc, it surely would be compileable for PDa, but might be an overhead. It is unlickely that I can include it in the PDa distro soon.
Cheers Guenter
Hello,
since I saw that the CVS was not working since a failure in the setup naming, I just loaded up the fix,
Meanwhile you can get the 0.2 release under
http://puredata.info/Members/ritsch/iemxmlrpc/
There is a compilation for linux, if somebody has compiled it for other OSes please mail me I put it on the site.
In the external all the xmlrpc++ lib is included since it is small (and fast) and seems to be complete and not to change very much in future, so it should compile erverywhere.
mfg winfried
Is there any information anywhere about how to compile externals for PDa? I'm not familiar with the whole process, but I'd like to be able to adapt other externals if I need them...
David __ _ _ _ _ __ ___ _ ___ __ _ _ _ ____ __ Music wants to be free http://sintheta.org
� wrote:
hi,
Pd messages are terminated by a semicolon, like in the message boxes. Check out the pdsend command that comes as a single executable with pd, it works the same way. It is really easy to send messages to pd this way.
Don't know about xmlrpc, it surely would be compileable for PDa, but might be an overhead. It is unlickely that I can include it in the PDa distro soon.
Cheers Guenter
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
you should be able to [unpack] the data coming in through netreceive.
David NG McCallum wrote:
Dear list,
I'm sure the answer's incredibly simple, but how can I format TCP data going to Pd so that Pd can parse it like a list? At the moment it sees everything as a big string.
I've also noticed that commas seem to split the data going in, is there anything else like this I should know when sending raw TCP to Pd?
I'm using python to send all this data, btw...
Cheers, David
On second thought, maybe you're looking for something slightly more detailed. You can send something that looks like this "steve george mike;" connect [netreceive] to [unpack s s s] and steve will go to outlet 1, george to outlet 2 and mike to outlet 3. I think the thing with comma's is that PD doesn't recognize them so it just stops reading when it encounters one. Could throw everything off because it wouldn't receive the line terminator (;) either.
Pall
David NG McCallum wrote:
Dear list,
I'm sure the answer's incredibly simple, but how can I format TCP data going to Pd so that Pd can parse it like a list? At the moment it sees everything as a big string.
I've also noticed that commas seem to split the data going in, is there anything else like this I should know when sending raw TCP to Pd?
I'm using python to send all this data, btw...
Cheers, David
Pall,
Oh my god, it works. The thing that was confusing me is I was trying to use [route] to sort the data, then I tried messages and dollar signs to extract certain elements, neither of those worked.
Now the big problem is that I'll have lists of varying types sizes coming in to Pd... It's kind of hard to use [unpack] to handle all possibilities... sheesh.
But at least these solves some of the problem... thanks!
David __ _ _ _ _ __ ___ _ ___ __ _ _ _ ____ __ Music wants to be free http://sintheta.org
Pall Thayer wrote:
On second thought, maybe you're looking for something slightly more detailed. You can send something that looks like this "steve george mike;" connect [netreceive] to [unpack s s s] and steve will go to outlet 1, george to outlet 2 and mike to outlet 3. I think the thing with comma's is that PD doesn't recognize them so it just stops reading when it encounters one. Could throw everything off because it wouldn't receive the line terminator (;) either.
Pall
Le 16 Mai 2005 14:43, David NG McCallum a écrit :
Pall,
Oh my god, it works. The thing that was confusing me is I was trying to use [route] to sort the data, then I tried messages and dollar signs to extract certain elements, neither of those worked.
Now the big problem is that I'll have lists of varying types sizes coming in to Pd... It's kind of hard to use [unpack] to handle all possibilities... sheesh.
But at least these solves some of the problem... thanks!
Maybe there's a possible solution based on my ascii externals, but it's for Linux only: http://puredata.info/Members/odradek/ascii-0.1.1.tar.bz2/file_view -- Marc
Actually, using [route] is how I usually do it. You can send several messages at once, terminating each with (;). So here's how I usually do it:
[netreceive] | [route 1 2 3]
and maybe send a message like this:
"1 steve;2 mike;3 george;"
From [route], outlet 1 will output steve, 2 outputs mike and 3 outputs george.
That way I can also send:
"2 mike;3 george;"
and nothing will go out [route]'s first outlet.
Pall
David NG McCallum wrote:
Pall,
Oh my god, it works. The thing that was confusing me is I was trying to use [route] to sort the data, then I tried messages and dollar signs to extract certain elements, neither of those worked.
Now the big problem is that I'll have lists of varying types sizes coming in to Pd... It's kind of hard to use [unpack] to handle all possibilities... sheesh.
But at least these solves some of the problem... thanks!
David __ _ _ _ _ __ ___ _ ___ __ _ _ _ ____ __ Music wants to be free http://sintheta.org
Pall Thayer wrote:
On second thought, maybe you're looking for something slightly more detailed. You can send something that looks like this "steve george mike;" connect [netreceive] to [unpack s s s] and steve will go to outlet 1, george to outlet 2 and mike to outlet 3. I think the thing with comma's is that PD doesn't recognize them so it just stops reading when it encounters one. Could throw everything off because it wouldn't receive the line terminator (;) either.
Pall
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
hi david
----- Original Message ----- From: "David NG McCallum" d@mentalfloss.ca
Now the big problem is that I'll have lists of varying types sizes coming in to Pd... It's kind of hard to use [unpack] to handle all possibilities... sheesh.
use [drip] from zexy. it makes symbols from every element of a list. [list one two three four( --> [symbol one( [symbol two( [symbol three( [symbol four(
roman
But at least these solves some of the problem... thanks!
David
Hallo, Roman Haefeli hat gesagt: // Roman Haefeli wrote:
----- Original Message ----- From: "David NG McCallum" d@mentalfloss.ca
Now the big problem is that I'll have lists of varying types sizes coming in to Pd... It's kind of hard to use [unpack] to handle all possibilities... sheesh.
use [drip] from zexy. it makes symbols from every element of a list. [list one two three four( --> [symbol one( [symbol two( [symbol three( [symbol four(
Well, to be correct it does not convert everything to a symbol, but behaves like this:
[list a b 1 2 c( | [drip]
gives:
symbol a symbol b float 1 float 2 symbol c
This opens up cool possibilities, as [drip] for example can be used as a simple "list-scaler":
[list a b 1 2 c( | [drip] | [route float] | / [* 2] / \ / \ / [repack 5]
gives:
"list a b 2 4 c"
Using [length] to set the length of [repack], you can use this for lists of varying length.
That concludes the "Zexy Lists Idioms And Tricks Tutorial No. 1".
Frank Barknecht _ ______footils.org__
_ __latest track: "scans" _ http://footils.org/cms/show/41
Commas serve as separators for messages. Check section "2.3.4 message
boxes" of the Pd manual:
http://crca.ucsd.edu/~msp/Pd_documentation/x2.htm#s2.3
It discusses the difference between commas and semi-colons as messages
separators.
.hc
On May 16, 2005, at 1:51 PM, Pall Thayer wrote:
On second thought, maybe you're looking for something slightly more
detailed. You can send something that looks like this "steve george
mike;" connect [netreceive] to [unpack s s s] and steve will go to
outlet 1, george to outlet 2 and mike to outlet 3. I think the thing
with comma's is that PD doesn't recognize them so it just stops
reading when it encounters one. Could throw everything off because it
wouldn't receive the line terminator (;) either.Pall
David NG McCallum wrote:
Dear list, I'm sure the answer's incredibly simple, but how can I format TCP data going to Pd so that Pd can parse it like a list? At the moment it sees everything as a big string. I've also noticed that commas seem to split the data going in, is
there anything else like this I should know when sending raw TCP to Pd? I'm using python to send all this data, btw... Cheers, David--
_______________________________ Pall Thayer artist/teacher http://www.this.is/pallit http://pallit.lhi.is/panseLorna http://www.this.is/lorna _______________________________
PD-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
There is no way to peace, peace is the way.
-A.J. Muste
Hey David,
There are not really any strings in PD. You mean the whole thing gets turned into a single symbol?
lists formated as: "list one two three;" get interpreted fine as lists, you probably don't even need the "list" part.
I never tried commas from netreceive, but Pall's comments cover that.
Anyhow try putting "list" in front of your list if it don't work.
b>
David NG McCallum wrote:
Dear list,
I'm sure the answer's incredibly simple, but how can I format TCP data going to Pd so that Pd can parse it like a list? At the moment it sees everything as a big string.
I've also noticed that commas seem to split the data going in, is there anything else like this I should know when sending raw TCP to Pd?
I'm using python to send all this data, btw...
Cheers, David
Suddenly I'm receiving mails from the pd-list, that seem to insist on incorporating this message inside the normal message:
'X-Spam-Status: No (score 0.2): Software zur Erkennung von "Spam" auf dem Rechner puredata.info hat die eingegangene E-mail als mögliche "Spam"-Nachricht identifiziert. Die ursprüngliche Nachricht wurde an diesen Bericht angehängt, so dass Sie sie anschauen können (falls es doch eine legitime E-Mail ist) oder ähnliche unerwünschte Nachrichten in Zukunft markieren können. Bei Fragen zu diesem Vorgang wenden Sie sich bitte an the administrator of that system Vorschau: Hey David, There are not really any strings in PD. You mean the whole thing gets turned into a single symbol? lists formated as: "list one two three;" get interpreted fine as lists, you probably don't even need the "list" part. [...] Inhaltsanalyse im Detail: (0.2 Punkte, '
Is this a new toy to tinker with for the mail-administrator at IEM, or has is gotten a life of itself...
AvS
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .....................................................................
` |Schreck Ensemble . . . . . . . . . . . . . . . . . . . . +
` |# -laboratory for live electro-acoustic music- # |
| http://www.schreck.nl/ |
| http://www.xs4all.nl/~schreck/ |
` *===========================================================++
` |Compositions http://www.xs4all.nl/~schreck/html/compo.html |
` |Samples http://www.xs4all.nl/~schreck/html/samp.html |
` |Patches http://www.xs4all.nl/~schreck/html/pat.html |
` |Videos http://www.xs4all.nl/~schreck/html/video.html |
` |Scores http://www.xs4all.nl/~schreck/html/scores.html |
*===========================================================++
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .....................................................................
Recursion?
Suddenly I'm receiving mails from the pd-list, that seem to insist on incorporating this message inside the normal message:
'X-Spam-Status: No (score 0.2): Software zur Erkennung von "Spam" auf dem Rechner puredata.info hat die eingegangene E-mail als mögliche "Spam"-Nachricht identifiziert. Die ursprüngliche Nachricht wurde an diesen Bericht angehängt, so dass Sie sie anschauen können (falls es doch eine legitime E-Mail ist) oder ähnliche unerwünschte Nachrichten in Zukunft markieren können. Bei Fragen zu diesem Vorgang wenden Sie sich bitte an the administrator of that system Vorschau: Hey David, There are not really any strings in PD. You mean the whole thing gets turned into a single symbol? lists formated as: "list one two three;" get interpreted fine as lists, you probably don't even need the "list" part. [...] Inhaltsanalyse im Detail: (0.2 Punkte, '
Is this a new toy to tinker with for the mail-administrator at IEM, or has is gotten a life of itself...
AvS
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .....................................................................
` |Schreck Ensemble . . . . . . . . . . . . . . . . . . . . +
|# -laboratory for live electro-acoustic music- # | | http://www.schreck.nl/ | | http://www.xs4all.nl/~schreck/ |
*===========================================================++|Compositions http://www.xs4all.nl/~schreck/html/compo.html |
|Samples http://www.xs4all.nl/~schreck/html/samp.html ||Patches http://www.xs4all.nl/~schreck/html/pat.html |
|Videos http://www.xs4all.nl/~schreck/html/video.html |` |Scores http://www.xs4all.nl/~schreck/html/scores.html | *===========================================================++
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .....................................................................
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .....................................................................
` |Schreck Ensemble . . . . . . . . . . . . . . . . . . . . +
` |# -laboratory for live electro-acoustic music- # |
| http://www.schreck.nl/ |
| http://www.xs4all.nl/~schreck/ |
` *===========================================================++
` |Compositions http://www.xs4all.nl/~schreck/html/compo.html |
` |Samples http://www.xs4all.nl/~schreck/html/samp.html |
` |Patches http://www.xs4all.nl/~schreck/html/pat.html |
` |Videos http://www.xs4all.nl/~schreck/html/video.html |
` |Scores http://www.xs4all.nl/~schreck/html/scores.html |
*===========================================================++
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .....................................................................
Arie van Schutterhoef wrote:
Suddenly I'm receiving mails from the pd-list, that seem to insist on incorporating this message inside the normal message:
'X-Spam-Status: No (score 0.2): Software zur Erkennung von "Spam" auf dem Rechner puredata.info hat die eingegangene E-mail als mögliche "Spam"-Nachricht identifiziert.
yes sorry. we had kind of a spam attack last night and i decided to install more spamassassins. it seems like the spam-filter is a bit too hard (a score of 0.2 is not that much and shouldn't be considered as "possible spam" (if so, any mail is "possible spam").
i hope to fix this within the next few hours.
feel free to contact me directly (zmoelnig@iem.at or noc@iem.at) if the problem does not go away.
mfg.as.dr IOhannes