This documentation covers the Lua API available for Grid controllers. Each handler receives self as an implicit parameter providing access to element-specific methods.
| Global |
Short |
Description |
| element |
ele |
Array of all elements on the controller |
| global_functions |
- |
LED, MIDI, page, timer, utility functions |
| Handler |
Short |
Element |
Description |
| init_handler |
ini |
All |
Element/page initialization (runs once) |
| Handler |
Short |
Element |
Description |
| draw_handler |
ld |
LCD |
Screen drawing/refresh events |
These functions are available across most handlers:
| Short |
Human Name |
Description |
ind |
element_index |
Element index |
glc |
led_color |
Set LED color |
glp |
led_phase |
Set LED phase |
gms |
midi_send |
Send MIDI message |
gtt |
timer_start |
Start timer |
gtp |
timer_stop |
Stop timer |
get |
event_trigger |
Trigger event |
gen |
element_name |
Get element name |
gsen |
element_name_set |
Set element name |
Each element type has specific handler slots:
- Encoder: init (
ini), button (bc), encoder (ec), timer (tim)
- Button: init (
ini), button (bc), timer (tim)
- Potmeter: init (
ini), potmeter (pc), timer (tim)
- Endless: init (
ini), button (bc), endless (epc), timer (tim)
- System: init (
ini), mapmode (map), midirx (mrx), timer (tim)
- LCD: init (
ini), draw (ld)
Intech Studio Official: