maybe this example using jit.matrix for paging helps:
http://archive.monome.org/docs/dev:max:paging