+ /**
+ * Sets the octave of the lower part of the keyboard (default = 4)
+ * @param n the octave to start at
+ */
+ public static void setOctave(int n) {
+ startNote = n * 12;
+ }
+
+ /** Maps keycodes (array indices) to MIDI note numbers using the following layout: