MKtlElementGroup is used in the hierarchical tree structure of MKtl: elements. It can do an action when any of the elements it contains is touched. MKtlElementGroup can also be used to make custom groups of MKtlElements and other MKtlElementGroups. The elements are stored in a fixed order, and can be accessed equally via either an index (a number) or a key (a symbol). See also Creating_Named_Groups and Creating_Custom_Elements_and_Groups
create a new MKtlElementGroup with a name, a source MKtl, and a list of elements
create an MKtlElementGroup from a list of elements
create an MKtlElementGroup from an element description, as contained in a desc file.
gets and sets the Array
of elements contained
gets and sets the Event
containing all elements of the group
get an element inside the group via a list of indices or keys.
a Function
that is fired when any of the enclosed elements is touched. The first argument of this function is the MKtlElement
that is touched. The arguments that follow are it's enclosing MKtlElementGroups up until this
.
Iterate a function for its enclosed MKtlElements and MKtlGroups
Recursively evaluate a function on itself and its linked MKtlElements and MKtlGroups
function |
the function to evaluate. Its parameters are
|
includeGroups |
if |
a nested Array
structure of the enclosed elements. Any enclosed element that is an MKtlElementGroup
will be converted into a normal Array
a flat Array
of all enclosed MKtlElements.
open a GUI window for this
parent |
the parent window (will create one if not specified) |
bounds |
the desired bounds of the window |
an MKtlElementGroupGUI
get and set the value of all elements in the group (nested if group is nested)
get and set the deviceValue of all elements in the group
get the previous value or deviceValue of all elements in the group
set the value or deviceValue of all elements in the group, and do the action of the group only (i.e. not of each element contained)
for groups of MIDI [\noteOn, \noteOff], return true if the \on element was activated last. see How_to_create_a_description_file_for_MIDI