KUIML
Blue Cat's User Interface Programming Language
PARAM

Description

This element can be used to create custom parameters (literals).

Inherited Attributes

See Attributes Common to All Elements.

Specific Attributes

Name Value Type Default Value Description Comment V. Exp.

name

string

Empty.

Displayed named of the parameter.


1.1

1.9.2

comment

string

Empty.

Comment about the parameter.


1.1

No

unit

string

Empty.

Unit of the parameter


1.1

1.9.2

type

param type

'real'

Type of the declared parameter


1.1

No

min

real number

0

Parameter minimum value.


1.1

1.6.2

max

real number

0

Parameter maximum value.


1.1

1.6.2

default

real number

0

Parameter default value.


1.1

1.6.2

persistent

boolean

false

Sets the persistency of the parameter.

When this property is set to 'true', the parameter will be saved when closing the user interface and the value will be restored next time the user interface is opened.

1.3

No

enum_values

list of strings separated by ';'

Empty

List of text values for an enumeration. When set, this automatically sets the range from 0 to the number of values in the list minus 1.

Starting with v1.6.2, the start value for the enumeration is not necessarily 0, but the min value specified with the parameter if any.

1.4.3

1.4.3

value_format

param value formatting

' .2'

Custom formatting used by default to display the parameter as text.

See the {text_value} field in parameter text widgets.

1.9.1

No

Read Only Attributes

capturing

boolean

false

true if user is changing the value.

1.9.2

text_value

string

 

The value of the parameter as text.

2.7.1

Events

value_changed

event

the event is triggered anytime the value of the object has changed.

2.0

Actions

BeginCapture

action

Begin value edition (call when starting to modify the value from scripts, especially for parameters that are exposed to automation).

Changes the value of the capturing attribute.

2.4

EndCapture

action

End value edition (call when done with modifying the value from scripts, especially for parameters that are exposed to automation).

Changes the value of the capturing attribute.

2.4

Examples

The following example creates a single parameter used to manage the gain of the plug-in:

<?xml version="1.0" encoding="utf-8" ?>
<SKIN language_version="1.1">
	<PARAM name="gain" default="0" max="20" min="-20" unit="dB" comment="gain of the plug-in" />
</SKIN>