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

Mar 12, 2009 at 1:19pm

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

– Pasted Max Patch, click to expand. –

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

Thank you.

#42818
Mar 12, 2009 at 1:51pm

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.

lh

#153271
Mar 12, 2009 at 4:19pm

Thanks very much, that has got it working great.

#153272
Mar 12, 2009 at 4:35pm
thereishopeforus@hotmail.com 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.

#153273

You must be logged in to reply to this topic.