View Single Post
Old 04-19-2019, 07:23 PM   #613
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 2,684
Default

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).

Last edited by cfillion; 04-20-2019 at 10:36 AM.
cfillion is offline   Reply With Quote