Forums > MaxMSP

list trouble

November 9, 2008 | 3:28 am

Hi,

I’m trying to compress a list of symbols

from something like this:

a b c d e

into this:

abcde

Essentially I want to treat the list as a symbol and remove all the spaces. How do I do it?

Thanks


November 9, 2008 | 4:00 am

On Nov 8, 2008, at 7:28 PM, Craig Fahner wrote:

> I’m trying to compress a list of symbols

sprintf or combine

– Pasted Max Patch, click to expand. –

Chris Muir
cbm@well.com

http://www.xfade.com


November 9, 2008 | 5:37 am

Use [tosymbol] but send it the message "separator" first. Please note that it will show all floats to 4 decimal places.

lh


November 9, 2008 | 6:39 am

or regexp if you are unsure of the number of elements in your list:

– Pasted Max Patch, click to expand. –

November 9, 2008 | 6:11 pm

Thanks, sprintf worked just fine.


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