Skip to content

Instantly share code, notes, and snippets.

@Maciek416
Created May 2, 2010 01:32
Show Gist options
  • Select an option

  • Save Maciek416/386815 to your computer and use it in GitHub Desktop.

Select an option

Save Maciek416/386815 to your computer and use it in GitHub Desktop.
void mouseReleased() {
if ( SHOW_SEQUENCER ) {
// Plot notes in sequencer
var col = parseInt(mouseX / (width/32));
var row = parseInt(mouseY / (height/24));
if(window.synth != null){
window.synth.setNote(col,row,!sequencer[col][row]);
} else {
sequencer[col][row] = !sequencer[col][row];
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment