Communication and management for monome serialosc grid controllers. For more information on monome see https://monome.org
For details on the serialosc protocol used with grid devices see https://monome.org/docs/serialosc/serial.txt
All grid coordinates and level values are 0-indexed.
| 0-3 | off |
| 4-7 | low intensity |
| 8-11 | medium intensity |
| 12-15 | high intensity |
allocate MonomeGrid object
| rotation |
cable orientation: left = 0 (default), down = 1, right = 2, up = 3 (also accepts 0, 90, 180, and 270 degrees) |
| prefix |
assign this grid a unique string identifier defaults to "/monome" if nil |
| fps |
rate of maximum grid redraw in frames per second defaults to 60 if nil |
assign a callback function whenever a new grid is added / physically connected
| func |
assign a callback function whenever an added grid is removed / physically disconnected
| func |
returns the serial numbers of each device that's been connected since the Server started (or last refreshConnections)
returns the OSC ports of each device that's been connected since the Server started (or last refreshConnections)
returns the assigned prefixes of each device that's been connected since the Server started (or last refreshConnections)
sends message to serialosc to refresh SuperCollider's list of currently-connected devices
choose which device to connect from the device list
| devicenum |
device list index, begins at 0 if not provided, will default to 0 |
choose which device to connect via OSC port
| port |
OSC port identifier |
choose which device to connect via serial string
| serial |
serial identifier |
assign a function to interpret key presses
| func |
function which receives key x/y coordinates and z state |
| x |
x in cartesian coordinates |
| y |
y in cartesian coordinates |
| val |
brightness level value 0-15 |
| x |
x in cartesian coordinates |
| y |
y in cartesian coordinates |
| state |
0 (off) - 1 (full brightness) |
set all leds to a variable brightness
| val |
brightness level 0-15 |
global intensity for entire grid
| val |
intensity level 0-15 |
set active state of tilt sensor on (device) n to (state) s
| device |
nth device: to receive tilt for |
| state |
0 or 1 |
use a specific port for device communication
| portnum |
all leds are turned off and osc communication is disconnected
device prefix
index of device in device list (0-indexed)
the device's serial number
OSC port the device is currently communicating on
rotation of device (cable orientation): 0, 90, 180, 270
the device's redraw rate (frames per second)
number of rows a grid device has (1-indexed)
number of columns a grid device has (1-indexed)