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 18 9
GetParameter function
The GetParameter() function retrieves information from parameters dened with
var PluginParameters.
The GetParameter name argument must match the dened PluginParameters name value.
Code use example
Text following “//” describes the argument function. Open the Mod Wheel Glissando JavaScript in
the Script Editor to see how the GetParameter function is used.
note.velocity = GetParameter("Note Velocity"); // used within a HandleMIDI
function, retrieves "Note Velocity" information from the defined "Note
Velocity" parameter
var PluginParameters = [{name:"name:"Note Velocity", type:"lin", minValue:1,
maxValue:127, numberOfSteps:126, defaultValue:80"}]; // create a linear
parameter called "Note Velocity" with a range of 1 to 127, and a default
value of 80
ParameterChanged function
The ParameterChanged() function lets you perform tasks triggered by changes to plug-in
parameters. ParameterChanged is called each time one of the plug-in’s parameters is set to a
new value. ParameterChanged is also called once for each parameter when you load a plug-in
setting.
ParameterChanged is called with two arguments, rst the parameter index (an integer number
starting from 0), then the parameter value (a number).
Code example
Print parameter changes to the plug-in console. This example also creates a slider in the plug-in
window and assigns the ParameterChanged function to it.
Text following “//” describes the argument function.
var PluginParameters = [{name:"Slider"}]; // create a slider (default range 0.0
- 1.0)
function ParameterChanged(param, value) {
if (param == 0) // if it's the slider you just
created
Event.trace(value); // print the value to the console
}
Reset function
Reset() is called when the plugin is reset.