Files
midigrid/MidiGrid_ToggleHold.lua
T

8 lines
332 B
Lua
Raw Normal View History

-- MIDI Grid: toggle hold mode (adjacent cells join into one sustained note)
local dir = ({ reaper.get_action_context() })[2]:match("@?(.*[\\/])")
local G = dofile(dir .. "midigrid_lib.lua")
local now = not G.isHold()
G.set("hold", now and 1 or 0)
G.say(now and "Hold on, adjacent notes join" or "Hold off, adjacent notes repeat")