]> ruin.nu Git - moosique.git/blobdiff - MooNoteElement.java
no message
[moosique.git] / MooNoteElement.java
index c502b4d568cd47e6269e0fb79e0cd3ff1f753ec9..46b8047c4ae9bf5c1c26ed569fd283ffdafa1bba 100644 (file)
@@ -14,6 +14,7 @@ public class MooNoteElement extends JPanel {
        private MooNote note;
        private int columns;
        private boolean selected;
+       public static final Color bgColor = new Color(160, 218, 255);
 
        /** 
         * Creates a new note element.
@@ -22,8 +23,9 @@ public class MooNoteElement extends JPanel {
         */
        public MooNoteElement (MooNote mn) {
                note = mn;
-               columns = mn.getDuration() / 24;
+               columns = mn.getDuration() / (Moosique.getSequence().getResolution() / 4);
                setBorder(BorderFactory.createLineBorder(Color.black));
+               setBackground(bgColor);
        }
 
        /**