Created
May 2, 2010 01:32
-
-
Save Maciek416/386815 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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