This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Class: externalAudioPlugin

Set normalized parameter value of hosted plugin




setParameter(hostedPlugin,parameter,newValue) sets the normalized value corresponding to the parameter of hostedPlugin to newValue. Specify the parameter by its unique display name or its index. Specify the new normalized parameter value as a scalar in the range 0–1.

For example, assume hostedPlugin has a parameter with index 3 and a unique display name, 'Gain'. These commands are identical:

  • setParameter(hostedPlugin,'Gain',0.2)

  • setParameter(hostedPlugin,3,0.2)


A hosted plugin might quantize its parameters. The result of setParameter for quantized parameters depends on the type of quantization.

Introduced in R2016b