Hi all. I am attempting to use pack to join a couple of strings together, but haven't been able to work out how to send one string of data with spaces in it through as one symbol.
string1 Spaced String | | | |
| |
Luke Yelavich GPG key: 0xD06320CE (http://www.themuso.com/themuso-gpg-key.txt) Email & MSN: themuso@themuso.com ICQ: 18444344
On Tue, Apr 25, 2006 at 10:55:45PM EST, luke wrote:
Hi all. I am attempting to use pack to join a couple of strings together, but haven't been able to work out how to send one string of data with spaces in it through as one symbol.
I should clarrify that I would like to be able to have the second string at any length, with any number of spaces and words in it.
Luke Yelavich wrote:
Hi all. I am attempting to use pack to join a couple of strings together, but haven't been able to work out how to send one string of data with spaces in it through as one symbol.
string1 Spaced String | | | |
|pack s s|
this makes a list of 2 symbols. which is NOT a symbol with a space. (even though it might look like such when [print]ing it)
probably you'll find something in the archives: http://lists.puredata.info/search/PD-list?query=create+symbol+with+spaces
mfg.asdr. IOhannes
| |
|print|
Thanks in advance.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi Luke,
There is no such thing as a "string" in PD, symbols, floats and lists (and signals.). Johannes assumes you mean a symbol with a space, I'll assume you mean a list. ([list symbol symbol symbol<)
To join two lists you use "glue" from zexy and use it as you've used your "pack" (but without creation arguments)
.b.
IOhannes m zmoelnig wrote:
Luke Yelavich wrote:
Hi all. I am attempting to use pack to join a couple of strings together, but haven't been able to work out how to send one string of data with spaces in it through as one symbol.
string1 Spaced String | | | |
|pack s s|
this makes a list of 2 symbols. which is NOT a symbol with a space. (even though it might look like such when [print]ing it)
probably you'll find something in the archives: http://lists.puredata.info/search/PD-list?query=create+symbol+with+spaces
mfg.asdr. IOhannes
| |
|print|
Thanks in advance.
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
On Tue, Apr 25, 2006 at 11:54:18PM EST, IOhannes m zmoelnig wrote:
this makes a list of 2 symbols. which is NOT a symbol with a space. (even though it might look like such when [print]ing it)
probably you'll find something in the archives: http://lists.puredata.info/search/PD-list?query=create+symbol+with+spaces
Thanks, should have looked there first. list2symbol seems to do what I want.