Iāve been adjusting the script for non varibright 64 users today, and Iāve been running into the same issue, the playhead LED is one ābuttonā off when pressed. Is it something about how the pos_grid is being called in the g.led parts in this snippet(this is modded for 64, so 16=8 etc.)? Messed around with it a bit without fixing it.
v.gridredraw[vCUT] = function()
g:all(0)
gridredraw_nav()
for i=1,TRACKS do
if track[i].loop == 1 then
for x=track[i].loop_start,track[i].loop_end do
g:led(x,i+1,4)
end
end
if track[i].play == 1 then
g:led((track[i].pos_grid+1)%8+1, i+1, 15)
end
end
g:refresh();
end
If anyone else want to have a crack at this script Iāve attached it here. Havenāt looked into the recall stuff yet. Absolutely magical script, sat around for some hours just droning with my guitar straight into mlr, pure joy.
mlr64.lua (20.7 KB)
Edit: Fixed it(I think) in my script. Removed the +1 in, but itās still one off in reverse.
g:led((track[i].pos_grid+1)%8+1, i+1, 15)