In Modality, one can have several MKtls for the same device, and switch between them, like hardware controller pages. One can also activate them polyphically if desired, e.g. to control multiple similar processes from the same gestures.
A PagedMKtl lets one make such pages for a single physical controller. It has a dict of several MKtls, which are all controlled from the same physical interface. Paging to one contained MKtl enables it, and disables all other pages/mktls.
First code examples:
all PagedMktls by name.
make a paged MKtl
name |
name for the PagedMKtl |
mktlNames |
an array of names of MKtl names which already exist, and which are usually all controlled from the same physical interface. |
pageNames |
an optional list of names for the pages, which can be different from the MKtl names. |
the name of the PagedMKtl
the dict of mktls used as pages
get the list of pageNames
get currently active MKtl/page
get the currently active page name
get the index of the currently active page name
step pages by + 1 / -1
page to a name or index
index | |
wrap |
pageKey |
turn all pages off