Code:
-- @description Add notes interval (bundle)
-- @version 1.0
-- @metapackage
-- @provides
-- [main=main,midi_editor,midi_inlineeditor] . > Add notes interval (bundle)/sr_Add notes -24.lua
-- [main=main,midi_editor,midi_inlineeditor] . > Add notes interval (bundle)/sr_Add notes -12.lua
-- [main=main,midi_editor,midi_inlineeditor] . > Add notes interval (bundle)/sr_Add notes -7.lua
local scriptName = ({reaper.get_action_context()})[2]:match("([^/\\_]+)%.lua$")
local interval = tonumber(scriptName:match("Add notes (%-?%d+)"))
Check out the GUI tool at
https://reapack.com/upload/reascript; it can help generate these metadata headers (even if you don't upload to a ReaTeam repo).