So currently I’m having real issues with the redraw method in MAX JS, I’ve looked into the Grid Studies.js, Step.js and meadowphysics.js for some clarification but since I’m new to JS in MAX I was wondering if anyone can give me additional pointers.
my main concern is led redraw for example
// pattern row
for(i1=0;i1<16;i1++) {
leds[i1+16] = 5;
}
leds[16+pattern] = 15;
This plays patterns on row 2. However when I change this to say:
// pattern row
for(i1=0;i1<112;i1++) {
leds[i1+112] = 5;
}
leds[112+pattern] = 15;
I get errors, the Monome freezes and my message from map0 and map1 give where row numbers should be.
Can anyone give an indication as to how redraw is working? I can easily change rows with the function key, ie (y == 1) —>row 2 to (y==7) row 8 and have buttons perform accordingly - I’m just a bit stumped with redraw.
Thanks
GRID.maxpat (53.5 KB)