Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Excerpt
Panel

setParameter(

...

nameOrID, value)

Description

Use this function

Function to set the

current

value of a parameter. The parameter can be

identified

determined by name or ID

or name

.

Note that identifying by name is more expensive for performance. If the parameter doesn't exists nothing is happen.

Info

The type of the new value must fit to the parameters type.

...

If a parameter is modified by a relative quick control, the audio/MIDI processing part of a module actually receives the modified value, while the UI still shows the original unmodified value. setParameter will only affect the original value, and the quick control modification is still applied before passing it to the processing part.

...

The function will have no effect if the parameter does not exist.

Available in: Controller, Processor.

Arguments

...

nameOrIDThe name or ID of the parameter

...

.

...

string or number

...

valueThe value that you want to set.

...

The

...

new value must match the data type of the parameter.

Example

Code Block
function onInitProcessor()
   print(this.parent:setParameter("Level", 0))
   print(this.parent:setParameter(6, 0))
end

Excerpt Include
Working with Parameters
Working with Parameters
nopaneltrue

Panel

See Also: getParameter, getParameterNormalized, setParameterNormalized, hasParameter