import java.awt.event.*;
/**
- * Functional representation of a MIDI note, which contains two MIDI events, note on and note off.
+ * A keyboard listener emulating a synthesizer.
*
* @author Einar Pehrson
*/
* Sets the octave of the lower part of the keyboard (default = 4)
* @param n the octave to start at
*/
- public void setOctave(int n) {
+ public static void setOctave(int n) {
startNote = n * 12;
}
keyToNote[48] = startNote + 27;
keyToNote[80] = startNote + 28;
}
-}
\ No newline at end of file
+}