// If note is not already on and the key is mapped to a note, sends the NoteOn event.
if (!isOn[noteNumber] && noteNumber > 0) Moosique.getActiveChannel().noteOn(noteNumber, 127);
isOn[noteNumber] = true;
- System.out.println("NoteON");
} catch (ArrayIndexOutOfBoundsException x) {
return;
}
// Sends the NoteOff event.
Moosique.getActiveChannel().noteOff(noteNumber);
isOn[noteNumber] = false;
- System.out.println("NoteOFF");
} catch (ArrayIndexOutOfBoundsException x) {
return;
}