how to send a coma in "pack"

Jun 6, 2011 at 10:30pm

how to send a coma in "pack"

Hi everyone,

I would like to send a coma (,) to a “pack” object but it doesn't work.
Check the picture to see my patch.



  1. question.jpg
Jun 6, 2011 at 10:48pm

…it might be easier to send a pack in coma…(sorry couldn´t resist)
look at this, its much easier and probably does what you want:

– Pasted Max Patch, click to expand. –
Jun 6, 2011 at 10:48pm

You can format your pack this way (you need the so Max knows you want a literal comma):

pack 0 , 200 200

This will output:

0, 200 200

Hope that helps! Otherwise, sprintf is great for this kind of thing…

Jun 7, 2011 at 2:19am

Why do you want the coma there? I think you’d be better off sending a number, then a list. [line~] doesn’t know anything about the coma. It’s just short-hand for message to break things into separate messages. Look at what it does:

– Pasted Max Patch, click to expand. –
Jun 8, 2011 at 7:06pm

ok thanks everyone. I used the “Jeff Thompson” solution.
Here is my patch.

(my first patch on max :) I used to work with puredata)


You must be logged in to reply to this topic.