LaunchMapPages
Launchmaps are custom files that provide different behavior for a controller depending on what page it is currently set to display. See the MIDI Controller reference post on Custom controller layouts. for more information.
Each page should be placed in a Page[number].scr
file in the top directory of
the script. For example, if a script has 2 pages, it would have two files:
Page1.scr
Page2.scr
init
Initialise launchmap pages.
Args
-
deviceName
(str
): ??? -
width
(int
): ??? -
height
(int
): ???
Included since API version 1.
createOverlayMap
Creates an overlay map.
Args
-
offColor
(int
): ? -
onColor
(int
): ? -
width
(int
): ? -
height
(int
): ?
Included since API version 1.
length
Returns launchmap pages length.
Returns
int
: length.
Included since API version 1.
updateMap
Updates launchmap page at index
.
Args
index
(int
): index of page to update.
Included since API version 1.
getMapItemColor
Returns item color of itemIndex
in map index
.
Args
-
index
(int
): map index. -
itemIndex
(int
): item index.
Returns
int
: color.
Included since API version 1.
getMapCount
Returns the number of items in page at index
.
Args
index
(int
): page index.
Returns
int
: number of items.
Included since API version 1.
getMapItemChannel
Returns the channel for item at itemIndex
on page at index
.
Args
-
index
(int
): page index. -
itemIndex
(int
): item index.
Returns
int
: channel number.
Included since API version 1.
getMapItemAftertouch
Returns the aftertouch for item at itemIndex
on page at index
.
Args
-
index
(int
): page index. -
itemIndex
(int
): item index.
Returns
int
: aftertouch value.
Included since API version 1.
processMapItem
Process map item at itemIndex
of page at index
Args
-
eventData (
eventData
): event data. -
index (
int
): page index. -
itemIndex (
int
): item index. -
velocity (
int
): velocity.
Included since API version 1.
releaseMapItem
Release map item at itemIndex
of page at index
.
HELP WANTED
This doesn't seem quite right, there is no itemIndex
argument.
Args
-
eventData
(eventData
): event data. -
index
(int
): page index.
Included since API version 1.
checkMapForHiddenItem
Checks for launchpad hidden item???
HELP WANTED
What does this do?
Included since API version 1.