Forums > MaxMSP

How do I send an array of more than 9 elements via OSC?

March 12, 2009 | 1:19 pm

— Pasted Max Patch, click to expand. —

Before now I was just using the $n argument but that only goes up to $9.

Thank you.

March 12, 2009 | 1:51 pm

Your problem is that the $1 only grabs the first element of the list (as it should). To send the entire list try using [tosymbol] or [prepend /OSC_SendArray] instead.


March 12, 2009 | 4:19 pm

Thanks very much, that has got it working great.

March 12, 2009 | 4:35 pm wrote on Thu, 12 March 2009 14:51
To send the entire list try using [tosymbol] or [prepend /OSC_SendArray] instead.

I would highly recommend using the prepend solution. Basically your problem is just to format the list (have a look to zl objects). tosymbol will generate symbols which are not freed until you quit Max so if you’re generating tons of symbols this could cause problems.

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

Forums > MaxMSP