## from matrixctrl object in M4L to Pads object in Lemur

Oct 13 2010 | 7:41 pm
Hi
I use monome 64 but I use Jazzmutant's Lemur too. I would like to create M4L patch that work in monome and Lemur (with Pads object 8 x 8). In M4L, I use matrixctrl object for the 2 hardwares. Na problem with the monome : same work : x, y and value. But I have a problem with the lemur : Pads object with 8 rows and 8 column work differently : The information is not x, y, value but a list of 0 0 0 0 1 0 0.....
I must do a convertion in M4L. Is there someone that know how to convert this information : - from vector 0 0 0 1 0 0... (Pads object in Lemur)... to x, y and value (matrixctrl object in M4L). - from x, y and value (matrixctrl object in M4L) to vector 0 0 0 1 0 0... (Pads object in Lemur).

• Oct 14 2010 | 4:34 am
How's the Y value represented in the pad vector? (I'm assuming X is place and integer is value...is Y the next pad?)
• Oct 14 2010 | 12:21 pm
Hi
In Lemur, a Pads object with 8 rows and 8 column send a list of 64 "1 or 0" from the left to the right and from the top to the bottom. If you touch the position x=0 , y=0, you send 1 0 0 0 ....0 If you touch the position x=1 , y=0, you send 0 1 0 0 ....0 If you touch the position x=0 , y=1, you send 0 0 0 0 0 0 0 0 1 0 0 ....0
This the list I would like to convert in format x, y and value to contro matrixctrl object in M4L. In this direction, from lemur to matrixctrl, I have a little M4L program. But for the back, from matrixctrl to lemur, I don't knom how program in M4L the convertion.
Thank
• Oct 15 2010 | 2:38 am
You'll have to adjust accordingly for 8 x 8.
• Oct 15 2010 | 2:10 pm
Hi
Thank you very much. It's exactly what I need. I have some difficulty with "zl object". I will worl zl object more.
Alexandre
• Oct 15 2010 | 3:46 pm
[zl] is the answer to everything. :)
• Oct 16 2010 | 1:36 pm
Hi
Your max program that convert data from matrixctrl object in M4L to Pads object in lemur work perfectly. But I have a last request about matrixctrl object.
In fact,the program I use actually to convert data from Pads object in lemur (list of 0 0 0 1 0 0...) to matrixctrl object format in M4L is not perfect and give me many problems :
Because when I release "Pads object" in Lemur, I get x=3, y=3 and v=0 (for a "Pads object" with 4 rows and 4 columns) : it's my last problem +++ I would like to keep the last x and y. By exemple, If I press x=1 and y=2 on my "Pads object" in Lemur, I get after the matrixctrl object : x=1, y=2 and v=1 (this work fine)... and when I release my "Pads object" in Lemur, I would like to get x=1, y=2 and v=0 (but I get actually x=3, y=3 and v=0).
...I would like that "Pads" object in Lemur work exactly like a monome.
Or how avoid the result of the release of the Pads object (x=3, y=3 and v=0) and stay on the last x and y like a monome (value change of course) ?
I send you a little Max program to explain more easily :
Thank you
Alexandre
• Oct 16 2010 | 5:36 pm
Hi
Sorry, but in the beginning of my post, I didn't want to say "your" max program but "my" max program.
Alexandre
• Oct 16 2010 | 6:44 pm
I'm confused, it's "your" in the beginning of my post. English is not my natural language.....
Alexandre