[PD] processing text
IOhannes zmoelnig
zmoelnig at iem.kug.ac.at
Wed Nov 12 19:05:13 CET 2003
Martin Dupras wrote:
> Hi,
>
> I'm trying to read text from textfiles in pd and display sentences with
> the text object in gem. However, I am having a few problems.
probably i should change the behaviour, so that lists would be
interpreted as text too...
>
> I'm reading sentences with textefile, which works well. I read lines in
> the textfile one by one, which I want to send as lists to the text3d
> object. What comes out of the textfile object is something like:
>
> "list the dog is asleep"
>
> which I need to convert to:
>
> "text the dog is asleep"
>
> How do I do that in pd?
>
> Two corollary questions:
>
> 1) is there an escape character that can be used in the message object,
> or otherwise a way to store the "space" character in a text object as a
> list element?
no escaping (yet?)
but you can use [l2s] from zexy. i hate to keep pointing at zexy, but
(for obvious reasons) it has everything i need and what is missing in pd.
>
> 2) is there a way to count the number of elements in a list?
[length] from (guess) zexy
mfg.as.dr
IOhannes
More information about the Pd-list
mailing list