Mod-us šį vld., šis psl. bus įklt. iš n.

Scripter GetParameter function in Logic Pro for Mac

The GetParameter() function retrieves information from parameters defined with var PluginParameters. Parameter variables can include type, minimum and maximum range values, and default values within the defined range, for example. Also see Create Scripter MIDI plug-in controls.

The GetParameter name argument must match the defined PluginParameters name value.

Load the corresponding Tutorial setting to view the script in the Script Editor. This will help you to understand the syntax structure and layout of code and comments. See Use the Script Editor.

Tutorial script 6: Velocity Slider

Text following /* shows comments that explain the JavaScript code.

function HandleMIDI(event) {event.velocity = GetParameter("Note Velocity"); /* retrieves "Note Velocity" information from the defined "Note Velocity" parameter */event.send(); /* sends the note event */}var PluginParameters = [{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 */

Download the guides:

Logic Pro User Guide: PDF

Logic Pro Instruments: PDF

Logic Pro Effects: PDF

Control Surfaces Support Guide: PDF

Morty Proxy This is a proxified and sanitized view of the page, visit original site.
Naudingas?
Ženklų limitas: 250
Didžiausias ženklų limitas yra 250.
Dėkojame už atsiliepimą.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.