how to send a coma in "pack"

halflifebe's icon

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

2337.question.jpg
jpg
hans w. koch's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

Jeff Thompson's icon

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

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

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:

halflifebe's icon

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

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

2340.granulartest.maxpat
Max Patch