Forums > MaxMSP

how to send a coma in "pack"

June 6, 2011 | 10:30 pm

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.

Thanks

[attachment=163837,2337]

Attachments:
  1. question.jpg

June 6, 2011 | 10:48 pm

…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. –

June 6, 2011 | 10:48 pm

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…


June 7, 2011 | 2:19 am

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. –

June 8, 2011 | 7:06 pm

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

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


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