Este posibil ca produsele, serviciile și funcțiile sistemului de operare
să nu fie disponibile în această țară.
Modificarea acestei comenzi va actualiza automat această pagină

Scripter SetParameter function in Logic Pro for Mac

The SetParameter() function allows you to programmatically set the value of a control.

Usage is similar to the GetParameter function, but you need to add a second argument for the value you want to set.

  • The first argument describes which parameter is accessed. This can be either an integer (index) or a string (parameter name).

  • The second argument is the value that you want to set (this is always a number).

Important: Using the SetParameter function and track automation for a parameter at the same time can lead to unexpected behavior. You can circumvent such problems by turning off automation for each parameter.

Code use example

The example code creates a slider control and resets the value of that slider to 0 each time the plug-in is reset.

Note: You can opt out of automation on a per-parameter basis by including 'disableAutomation:true' in the parameter definition.

function Reset() {SetParameter('slider', 0);}var PluginParameters = [{name:'slider', type:'lin', defaultValue:0.5, numberOfSteps:100, minValue:0, maxValue:1}];

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.
Util?
Limită de caractere: 250
Limita maximă de caractere este de 250.
Îți mulțumim pentru feedback.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.