-- MIDI Grid: previous note anywhere (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_PREVCHORD") return end G.runNoteJump(-1)