The Scripter plug-in provides JavaScript objects that describe or represent MIDI information and information about Logic Pro X, in addition to performing MIDI processing-related functions. See these sections for details about different object types.
Use the JavaScript Event object
Use the JavaScript TimingInfo object
Use the Trace object
Use the MIDI event beatPos property
Use the JavaScript MIDI object