Forums > MaxMSP

How to separate a symbol?

May 02 2014 | 6:21 am

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 | 6:50 am

i think [unpack 0 0 0] is what you need.

May 02 2014 | 7:03 am

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 | 7:20 am

atoi iter itoa:

-- Pasted Max Patch, click to expand. --

May 02 2014 | 7:38 am

Sounds like the name of a pacific island ; )

May 02 2014 | 7:40 am

you can replace the atoi-iter with a spell

May 03 2014 | 1:04 am

WOOOOOOOOOh! I feel so good guys!

You’re awesome!

Thnaks very very much!


May 03 2014 | 3: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:

I want back:
1 Rodrigo

At the moment I’m doing this with javascript, but if I can do it natively, even better.

-- Pasted Max Patch, click to expand. --

  • This reply was modified 2 years by  Rodrigo.
May 03 2014 | 4:58 am


-- Pasted Max Patch, click to expand. --

May 03 2014 | 5:55 am

Hah, that’s perfect!

regexp is one of those voodoo objects…

May 03 2014 | 6:57 am

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 | 7:25 am

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 13 2016 | 7:24 pm

nice! great to erase a part of a file path with no spaces inside

-- Pasted Max Patch, click to expand. --

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

Forums > MaxMSP