X
Table Of Contents
- Logic Pro X Effects
- Contents
- Chapter 1: Amps and pedals
- Chapter 2: Delay effects
- Chapter 3: Distortion effects
- Chapter 4: Dynamics processors
- Chapter 5: Equalizers
- Chapter 6: Filter effects
- Filter effects overview
- AutoFilter
- EVOC 20 Filterbank
- EVOC 20 TrackOscillator
- EVOC 20 TrackOscillator overview
- Vocoder overview
- EVOC 20 TrackOscillator interface
- EVOC 20 TrackOscillator analysis in parameters
- Use EVOC 20 TrackOscillator analysis in
- EVOC 20 TrackOscillator U/V detection parameters
- EVOC 20 TrackOscillator synthesis in parameters
- EVOC 20 TrackOscillator oscillators
- EVOC 20 TrackOscillator formant filter
- EVOC 20 TrackOscillator modulation
- EVOC 20 TrackOscillator output parameters
- Fuzz-Wah
- Spectral Gate
- Chapter 7: Imaging processors
- Chapter 8: Metering tools
- Chapter 9: MIDI plug-ins
- Chapter 10: Modulation effects
- Chapter 11: Pitch effects
- Chapter 12: Reverb effects
- Chapter 13: Space Designer convolution reverb
- Chapter 14: Specialized effects and utilities
- Chapter 15: Utilities and tools
- Appendix: Legacy effects
Chapter 9 MIDI plug-ins 187
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.
Scripter API overview
You can create your own MIDI processing plug-ins using the JavaScript API described in these
sections.
•
MIDI processing functions overview
•
JavaScript objects overview
•
Create Scripter controls
Tip: View the supplied scripts in the Script Editor to see how they are constructed. You can
modify and re-use the code to change functions or to create new processors. See Use the
Script Editor.
MIDI processing functions
MIDI processing functions overview
The Scripter plug-in exposes a set of JavaScript functions that you can implement in your script
to communicate with the host application. See the linked sections for details about dierent
JavaScript function types and how to use them to create MIDI plug-ins:
•
HandleMIDI function
•
ProcessMIDI function
•
ParameterChanged function
•
Reset function
HandleMIDI function
The HandleMIDI() function lets you process MIDI events that the plug-in receives. HandleMIDI
is called each time a MIDI event is received by the plug-in and is required to process incoming
MIDI events. If you do not implement the HandleMIDI function, events pass through the plug-in
unaected.
HandleMIDI is called with one argument, which is a JavaScript object that represents the
incoming MIDI event. HandleMIDI and JavaScript Event object use is shown in the examples.
Code example 1
Pass MIDI events through the plug-in.
function HandleMIDI(event) {
event.send(); }
Code example 2
Log events to the plug-in console and do not send them anywhere.
function HandleMIDI(event) {
event.trace();
}