Prerequisite You added a Lua Script midi module. Procedure In the editor for the Lua Script midi module, click Edit Script. In the text editor, enter your script, and click OK.