]> ruin.nu Git - moosique.git/blobdiff - MooNoteElement.java
no message
[moosique.git] / MooNoteElement.java
index f64e082c16884aa0f9382c8f2ba9380658161c6a..dd31c86b800cc2b7cb1e8a1c077f12bee74f8ad2 100644 (file)
@@ -12,6 +12,7 @@ import java.awt.event.*;
 public class MooNoteElement extends JPanel {
 
        private MooNote note;
+       private int columns;
        private boolean selected;
 
        /** 
@@ -21,6 +22,7 @@ public class MooNoteElement extends JPanel {
         */
        public MooNoteElement (MooNote mn, int rows) {
                note = mn;
+               columns = mn.getDuration() / 24;
        }
 
        /** 
@@ -65,6 +67,15 @@ public class MooNoteElement extends JPanel {
                        case 10: n = "A#"; break;
                        case 11: n = "B"; break;
                }
+
+       /*
+               switch(columns) {
+                       case 0:
+                       case 1:
+                       ...
+               }
+       */
+               
                g2.setFont(new Font("Helvetica", Font.PLAIN, 8));
                n = n +(pitch/12);
                g2.drawString(n + " "+ note.getVelocity(), 1, 9);