Forums > MaxMSP

Message help

Mar 10 2010 | 2:16 am

I have run into a problem with messages in Max.

How do I remove the spaces between items in a message?


1 2 9
how does this become

I understand prepend and append, but these always leave spaces between items in a message so it acts like an array. This is usually handy, but now I am attempting to format text to display w/ The text displays great, except there is a space between every letter. Is there a way to prepend and append items without spaces?

I am attempting to make a word by having the use type in text with a number pad, kind of like on a cellphone. I have it working, but when someone types their name it just appends each letter to the message box. EXAMPLE:
S T E V E.

Any help would be greatly appreciated.

Code is below.


-- Pasted Max Patch, click to expand. --

Mar 10 2010 | 2:38 am

look to [sprintf], it’s not limited to making spaces between each letter. [message] auto-formats them into lists, which is good for other uses (mainly with numbers, but symbols too). [sprintf] is essential in a lot of situations and is a good one to know.

Mar 10 2010 | 4:01 am

seejayjames, you are awesome. thank you!

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

Forums > MaxMSP