Skip to content

Instantly share code, notes, and snippets.

@jordanorelli
Created July 7, 2012 17:21
Show Gist options
  • Save jordanorelli/3067249 to your computer and use it in GitHub Desktop.
Save jordanorelli/3067249 to your computer and use it in GitHub Desktop.
receive monome key presses in chuck
OscRecv recv;
27647 => recv.port;
recv.listen();
recv.event("/monome/grid/key", "iii") @=> OscEvent oe;
while(true) {
int x;
int y;
int down;
oe => now;
while(oe.nextMsg() != 0) {
oe.getInt() => x;
oe.getInt() => y;
oe.getInt() => down;
}
<<< x, y, down >>>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment