Forums > MaxMSP

How do you disassemble a word into a list of letters?

February 23, 2012 | 12:46 am

I probably should know how to do this, but I don’t.

I have a text object outputting short words one at a time from a text file, and each word needs to be converted to a list of letters so I can process the letters one at a time. Could someone give me a hint how to do this?

Thanks!


February 23, 2012 | 1:08 am
– Pasted Max Patch, click to expand. –

February 23, 2012 | 1:31 am

xidance,

Invaluable help! Thanks very much.


February 23, 2012 | 1:50 am

if you don´t want to use [regexpr] you could do it "manually" as well with [spell] and [itoa]. the [zl group 1] is nescessary for filtering of spaces and symbol-marks.

`

– Pasted Max Patch, click to expand. –

February 23, 2012 | 2:14 am

regexp probably wins for this one, but here’s one with tier, atoi, and itoa.

– Pasted Max Patch, click to expand. –

Viewing 5 posts - 1 through 5 (of 5 total)