Skip to content

Instantly share code, notes, and snippets.

@JRHeaton
Created December 30, 2013 19:58
Show Gist options
  • Save JRHeaton/8187226 to your computer and use it in GitHub Desktop.
Save JRHeaton/8187226 to your computer and use it in GitHub Desktop.
for(var i=0;i<client.numDevices;++i) {
var d = client.deviceAtIndex(i);
if(isLaunchpad(d)) {
d.reset();
for(var i=0;i<8;++i) {
for(var y=0;y<8;++y) {
d.wait(.05)
.sendMIDI([0x90, (y*16)+i, Math.floor(Math.random() * (127 - 20 + 1)) + 20])
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment