avoiding space in messages

Nov 15, 2010 at 11:36am

avoiding space in messages

Hi all, it’s probably very simple. I have this problem since the beginning, it’s time to solve it. How do you have arguments in messages ($1) without a space between the value and the preceding text?
e.g. (set buffer $1) to create dynamic name for buffers

Nov 15, 2010 at 11:48am


you can use sprintf.


Nov 15, 2010 at 11:49am

To create a symbol with spaces inside, just enclose the text with “double quotation marks”, otherwise max will treat it as a list.

Nov 15, 2010 at 12:03pm

i use combine:

– Pasted Max Patch, click to expand. –
Nov 15, 2010 at 12:36pm

fantastic combine work and also sprintf, i feel much better now!


You must be logged in to reply to this topic.