-- MIDI Grid: cursor right one cell (pass-through when grid mode is off) local dir = ({ reaper.get_action_context() })[2]:match("@?(.*[\\/])") local G = dofile(dir .. "midigrid_lib.lua") if not G.isActive() then G.passThrough("_OSARA_NEXTCHORD") return end local hwnd, take, err = G.editor() if not take then G.say(err) return end local _, _, idx = G.cell(take) G.gotoCell(take, idx + 1) local content = G.cellContentText(take) G.say(G.cellPosText(take) .. ", " .. content) local ppqA, ppqB = G.cellPPQ(take) G.preview(G.pitchesInCell(take, ppqA, ppqB))