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

Dr. Spankenstein's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

Thank you.

Luke Hall's icon

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

Dr. Spankenstein's icon

Thanks very much, that has got it working great.

Emmanuel Jourdan's icon

thereishopeforus@hotmail.com wrote on Thu, 12 March 2009 14:51To 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.