Module grid
Grid class
The norns script reference has examples for this module.
Functions
add (dev) | static callback when any grid device is added; user scripts can redefine |
remove (dev) | static callback when any grid device is removed; user scripts can redefine |
rotation (val) | set grid rotation. |
tilt_enable (id, val) | enable/disable grid tilt. |
led (x, y, val) | set state of single LED on this grid device. |
all (val) | set state of all LEDs on this grid device. |
refresh () | update any dirty quads on this grid device. |
intensity (i) | intensity |
connect (n) | create device, returns object with handler and send. |
cleanup () | clear handlers. |
Functions
- add (dev)
-
static callback when any grid device is added;
user scripts can redefine
Parameters:
- dev : a Grid table
- remove (dev)
-
static callback when any grid device is removed;
user scripts can redefine
Parameters:
- dev : a Grid table
- rotation (val)
-
set grid rotation.
Parameters:
- val integer : rotation 0,90,180,270 as [0, 3]
- tilt_enable (id, val)
-
enable/disable grid tilt.
Parameters:
- id integer : sensor
- val integer : off/on [0, 1]
- led (x, y, val)
-
set state of single LED on this grid device.
Parameters:
- x integer : column index (1-based!)
- y integer : row index (1-based!)
- val integer : LED brightness in [0, 15]
- all (val)
-
set state of all LEDs on this grid device.
Parameters:
- val integer : LED brightness in [0, 15]
- refresh ()
- update any dirty quads on this grid device.
- intensity (i)
-
intensity
Parameters:
- i
- connect (n)
-
create device, returns object with handler and send.
Parameters:
- n integer : vport index
- cleanup ()
- clear handlers.