I get a repeating not in view! error even though code runs and works. Using an apc mini the error seems to stem from line 122-32 in mg_128 and similar with mg_256
function midigrid:led(x, y, brightness) grid_buf[x][y] = brightness local index =16*y+x local note = views[curr_view][index] if note ~= nil then local vel = brightness_handler(brightness) _brightness_to_buffer(note, vel, config:led_sysex(note, vel)) else print("not in view!") end end
Thanks for the update.
I get a repeating not in view! error even though code runs and works. Using an apc mini the error seems to stem from line 122-32 in mg_128 and similar with mg_256
function midigrid:led(x, y, brightness) grid_buf[x][y] = brightness local index =16*y+x local note = views[curr_view][index] if note ~= nil then local vel = brightness_handler(brightness) _brightness_to_buffer(note, vel, config:led_sysex(note, vel)) else print("not in view!") end end
I am too much of a newbe to figure it out.