Forums > MaxMSP

(pack) with a comma, or set starting number of a line with int

January 12, 2011 | 6:40 am

I’m trying to pack al list (to feed into a line object) because i want to set the starting integer. Is there a way to pack a list in the format *1, 3. 500* or is there a better way to specify the starting number of a line from with an int object.


January 12, 2011 | 7:13 am

– Pasted Max Patch, click to expand. –

Use sprintf. Hopefully this example gets you what you want.

M.


January 12, 2011 | 7:28 am

The comma is just a shortcut for separating messages. Your "list" of 1, 3. 500 is equivalent to sending an int of 1, followed by a list of 3. 500

– Pasted Max Patch, click to expand. –

January 12, 2011 | 7:49 am

Thanks, I dont understand it yet but it works, I’ll figure it out further in the morning.


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