Matrix button change order

Hi,
I made a 4x4 matrix buttons to send midi note to create a sampler.
But I wish to change the origin at the bottom left instead of the top left ?

is it possible ?

I don’t think you can reverse the grid layout’s order, but you could simply compute a reversed index to use instead of $:
var index = 14 - $;

Now my origin point is 15 instead of 12,
Maybe I’ll custom every button using an array.

@jean-emmanuel could it be a feature one day ?

Probably not given how the layout works, but you can do pretty much anything already:

var indices = [12, 13, 14, 15, 8, 9, 10, 11, 4, 5, 6, 7, 0, 1, 2, 3],
    index = indices[$]

this the kind of logic that I’m missing.
Have to upgrade my internal coding system. ahah