Forums > MaxMSP

Matrixctrl – Row and column as one number

Jun 06 2009 | 2:57 am

I cannot seem to figure this out. I am looking for a way to combine row and column data from Matrixctrl. So say row = 7 and column = 7, you would get 77, then have it converted from octal to decimal so i can get a number between 0 and 63 from an 8×8 matrixctrl. I searched but couldnt find anything doing this as i dont know what to call combining numbers as such. Any help would be much appreciated. Unless there is an easier way to do it.

Jun 06 2009 | 7:30 am

If I’m understanding you right – [sprintf] and [coll] should do the trick.

Jun 06 2009 | 12:01 pm

I would recommend doing Math instead of sprintf which is an object mainly designed to make symbols manipulation. * 8 is what you’re looking for

— Pasted Max Patch, click to expand. —
Jun 06 2009 | 9:32 pm

Exactly what i needed, Thanks sooo much.

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

Forums > MaxMSP