42 lines
1.6 KiB
Plaintext
42 lines
1.6 KiB
Plaintext
#N canvas 416 174 912 698 12;
|
|
#X obj 18 17 grid;
|
|
#X text 60 16 - simple I/O for the monome grid;
|
|
#X text 18 43 The grid object connects to a running instance of serialosc
|
|
and communicates with the first serialosc device as a monome (or compatible)
|
|
grid controller.;
|
|
#X obj 19 437 grid;
|
|
#X msg 21 100 connect;
|
|
#X msg 30 124 disconnect;
|
|
#X msg 118 148 set 0 0 0;
|
|
#X text 76 101 the connect message connects to the grid;
|
|
#X text 109 123 the disconnect message disconnects from the grid;
|
|
#X text 192 147 the set message sets a single LED at the position x
|
|
\, y in the first two arguments to either on (1 in the last argument)
|
|
or off (0 in the last argument);
|
|
#X floatatom 19 464 5 0 0 0 - - -;
|
|
#X floatatom 61 465 5 0 0 0 - - -;
|
|
#X floatatom 103 466 5 0 0 0 - - -;
|
|
#X text 19 489 the grid object's outlets are the x \, y \, and state
|
|
(press or release as 1 or 0) of grid button presses.;
|
|
#X msg 114 214 all 1;
|
|
#X msg 159 214 all 0;
|
|
#X text 203 208 the all message sets all the LEDs on or off;
|
|
#X msg 45 148 set 0 0 1;
|
|
#X msg 161 275 lset 0 0 5;
|
|
#X text 245 252 messages prefixed with "l" act like their non-l counterparts
|
|
\, but set the brightness level (0-15) rather than just on or off;
|
|
#X text 163 308 there are more messages than this \, with one for each
|
|
message "to device" in the monome osc docs: https://monome.org/docs/serialosc/osc/
|
|
the "l" prefixed versions correspond to those with brightness \, others
|
|
not;
|
|
#X connect 3 0 10 0;
|
|
#X connect 3 1 11 0;
|
|
#X connect 3 2 12 0;
|
|
#X connect 4 0 3 0;
|
|
#X connect 5 0 3 0;
|
|
#X connect 6 0 3 0;
|
|
#X connect 14 0 3 0;
|
|
#X connect 15 0 3 0;
|
|
#X connect 17 0 3 0;
|
|
#X connect 18 0 3 0;
|