3

Table Of Contents
Chapter 9 MIDI plug-ins 174
See the Scripter API overview for Scripter API documentation and code examples.
Run Script button
Code Editor
Interactive Console
Script Editor parameters
Run Script button: Click to evaluate the script and congure the plug-in and parameters.
Output, including errors, is shown in the Interactive Console when you click this button.
Code Editor: Type JavaScript code in this area. The editor provides the following features:
Syntax highlighting for JavaScript keywords and the available MIDI API (Application
Programming Interface).
Live syntax checking, which highlights error lines immediately, making it easier to write
your scripts.
Line numbers, which are useful for error checking because they are reported by line number
in the Interactive Console.
Interactive Console: Displays debugging information and allows you to execute code on the
command prompt by typing after the prompt and pressing Return. Type clear and press
Return to clear the console.
Create and store a Scripter plug-in
1 Open the Scripter plug-in.
2 Click the Open Script In Editor button.
3 Type (or copy and paste existing) JavaScript code in the Code Editor.
4 Click the Run Script button.
5 Test your plug-in to verify it behaves as intended.
6 Assuming no errors are shown in the Interactive Console, save the host document, setting, or
patch containing the script.