How to separate a symbol?

    May 02 2014 | 1:21 pm
    Hello everybody, I'm new with MAX!
    I'm working in a patch and I basically need to do this :
    one message (like a name) I need to separate it into several messages =
    (ana) = (a) (n) (a)
    Thanks a lot!

    • May 02 2014 | 1:50 pm
      i think [unpack 0 0 0] is what you need.
    • May 02 2014 | 2:03 pm
      Thanks for your answer, but unpack don't do it! unpack will take the symbol (ana) as one symbol.
      What I'm trying to do is to get 3 symbols from one symbol
      (ana) becomes (a) (n) (a)
      Thanks anyway!!
    • May 02 2014 | 2:20 pm
      atoi iter itoa:
    • May 02 2014 | 2:38 pm
      Sounds like the name of a pacific island ; )
    • May 02 2014 | 2:40 pm
      you can replace the atoi-iter with a spell
    • May 03 2014 | 8:04 am
      WOOOOOOOOOh! I feel so good guys!
      You're awesome!
      Thnaks very very much!
    • May 03 2014 | 10:24 am
      Pretty handy.
      How to do you pack the individual elements back into symbols?
      More specifically, I have a long string (OSC) that I want to remove two elements from.
      So if I feed it: /dfscore/score/setup/performer1/Rodrigo
      I want back: 1 Rodrigo
      At the moment I'm doing this with javascript, but if I can do it natively, even better.
    • May 03 2014 | 11:58 am
    • May 03 2014 | 12:55 pm
      Hah, that's perfect!
      regexp is one of those voodoo objects...
    • May 03 2014 | 1:57 pm
      indeed... well worth learning for general text processing tho, can make short work of lots of stuff (just comment well so you can understand what's going on 6 months later :))
    • May 03 2014 | 2:25 pm
      Yeah. I've gotten a lot more comfortable with sptrintf which has helped tons. Now I know to look to regexp for my string unpacking related stuff.
    • Apr 14 2016 | 2:24 am
      nice! great to erase a part of a file path with no spaces inside
    • Oct 07 2016 | 2:13 pm
      I have a strange Problem with regexp.
      I have the message 1475848037639;Name;Location I use regexp ; @substitude " " I get back the right format of the list but now the number changed to -1620712185
      Why??? Can anyone help?
    • Oct 07 2016 | 2:15 pm
      Found the answer:
      The size of integer that can be handled depends on whether Max is operating in 32 or 64 bit mode. To see the difference, enter a ridiculously high number, like 7245569558. The integer number box may have changed to -2147483648. How did that happen? Integers always have a limit – in 32 bit mode, the maximum value of an integer is 2147483520. In 64 bit mode, the top value is 9223372036854775807. Any numbers greater than that cause the integer value to "overflow", and become the greatest negative number. Other very high values might provide other values, depending on how far over this limit the number is. The range of floating point numbers is approximately 38 digits in 32 bit mode and 308 digits in 64 bit mode.