]> ruin.nu Git - moosique.git/blobdiff - MooNoteElement.java
setting mute and solo on channel instead..
[moosique.git] / MooNoteElement.java
index e1bcfb019d55c756867942c0c006b9110cbebe7b..e93eb298ace082ede63be2c0dafd84936f407a08 100644 (file)
@@ -13,7 +13,6 @@ public class MooNoteElement extends JPanel {
 
        private MooTrackView mtv;
        private MooNote note;
-       private int columns;
        private boolean selected;
        private Rectangle pitchRect, veloRect;
        public static final Color bgColor = new Color(160, 218, 255);
@@ -31,7 +30,6 @@ public class MooNoteElement extends JPanel {
                mtv = parent;
                note = mn;
                calculateString();
-               columns = mn.getDuration() / (Moosique.getSequence().getResolution() / 4);
                setBorder(BorderFactory.createLineBorder(Color.black));
                setBackground(bgColor);
                addMouseListener(new MAdapter());
@@ -156,7 +154,7 @@ public class MooNoteElement extends JPanel {
        }
 
        protected void remove(){
-               mtv.remove(this);
+               mtv.removeNote(this, note);
        }
 
 }