X-Git-Url: https://ruin.nu/git/?p=moosique.git;a=blobdiff_plain;f=MooKeyboard.java;h=35b2496ff0fa707a8b74bb0bdee285ab7d041cf2;hp=90ed18fd4acf3d582b7569f08f16c23b25fc4ebc;hb=aae2d0b4428236b4147f466b3858a34bb7ed174f;hpb=e49990e17bff158ad638a16ba4aa616673b94627 diff --git a/MooKeyboard.java b/MooKeyboard.java index 90ed18f..35b2496 100644 --- a/MooKeyboard.java +++ b/MooKeyboard.java @@ -47,7 +47,7 @@ public class MooKeyboard extends KeyAdapter { * 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; } @@ -92,4 +92,4 @@ public class MooKeyboard extends KeyAdapter { keyToNote[48] = startNote + 27; keyToNote[80] = startNote + 28; } -} \ No newline at end of file +}