how to send a coma in "pack"


    Jun 06 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

    • Jun 06 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:
    • Jun 06 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...
    • Jun 07 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:
    • Jun 08 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)