Pilcrow Records

The Complete Guide to Logic Pro's Scripter

Cover image for The Complete Guide to Logic Pro's Scripter by Philip Regan

The Complete Guide to Logic Pro's Scripter is available on Apple Books and Amazon Kindle. ISBN: 978-0-578-37719-3

Enhance your MIDI production with Logic Pro's Scripter MIDI Effect! Scripter allows musicians to capture and manipulate MIDI in real-time with JavaScript. Everything you need to know about how to use Scripter for your music is in The Complete Guide to Logic’s Pro’s Scripter. Written for musicians and programmers of any skill level, this guide comes with comprehensive overviews of Scripter’s functions, a music-based JavaScript tutorial inside which takes you from your first line of JavaScript to an entire script, a link to a free open source code library on GitHub, and working examples of features not covered in Apple’s own documentation.

View a free excerpt from the book here: Scripter JavaScript Tutorial. The tutorial covers everything needed to work with JavaScript in Scripter and provides examples within a musical, Scripter, and Logic Pro context wherever possible.

How Scripter Works

  1. Using Scripter in a Track
  2. Coding and Testing in the Script Editor
Scripter’s JavaScript Overview
  1. Using Trace()
  2. Global Objects and Callbacks
  3. Parameter Controls
Scripter’s JavaScript Tutorial
  1. Introduction
  2. JavaScript Fundamentals
    1. Statements
    2. Syntax
    3. Variables
    4. Data Types
    5. String
    6. Boolean
    7. null and undefined
    8. Operators and Math
    9. Comparison Operators
    10. Logical Operators
    11. Type Operators
    12. Operator Precedence
    13. Functions
  3. JavaScript Advanced
    1. Arrays
    2. Objects
    3. Conditional Branching
    4. Loops
    5. Parameter Controls
  4. Code Quality
    1. Script Organization
    2. Comments
    3. Variable and Function Names
    4. Clear Syntax
    5. Using Functions
    6. Versioning
    7. Debugging Errors
  5. Bringing It All Together: A Script Review
Scripter's Technical Details
  1. Architecture
  2. MIDI Event Processing
  3. Parameter Control Properties
  4. Controlling Plug Ins with TargetEvent
  5. NoteOn.Detune Property
Appendix: Operator Order of Precedence
Appendix: Object Reference
Appendix: Code Snippets