GetParameter function

The GetParameter() function retrieves information from parameters defined with var PluginParameters.

The GetParameter name argument must match the defined 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" parametervar 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