avoiding space in messages

JesterN's icon

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
Alberto

Guillaume Evrard's icon

hi,

you can use sprintf.

g

David Butler's icon

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

t's icon
Max Patch
Copy patch and select New From Clipboard in Max.

i use combine:

JesterN's icon

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