I am having trouble converting a 2-D matrix in 1-D matrix. So I have a 256 x 256 matrix that I want to convert in a 1-D matrix and then feed into the buffer to play it. I tried using peek and poke but I am doing something wrong and nothing seems to work. Any help is much appreciated.

Thanks.

]]>I would start with [jit.scanwrap] (to convert 2D->1D).

You could use other methods. ]]>