X-Git-Url: https://ruin.nu/git/?p=moosique.git;a=blobdiff_plain;f=MooTrackView.java;h=1a612e47eb01f7f748ed05e70d01cc88351b7be0;hp=b06355430b125be17116ef370a5c26a761f55563;hb=65ea2a43eb97459592d222ea00082e46343c9d8b;hpb=cb597eafcb8d01784857381580ae5f35b5427e63 diff --git a/MooTrackView.java b/MooTrackView.java index b063554..1a612e4 100644 --- a/MooTrackView.java +++ b/MooTrackView.java @@ -66,7 +66,7 @@ public class MooTrackView extends JPanel { addKeyListener(new MooKeyboard()); } - public void layoutElementMooNoteElement elem, boolean old){ + public void layoutElement(MooNoteElement elem, boolean old){ // If the element is currently in the view, removes its coordinates from the list. Rectangle r = new Rectangle(); if (old){ @@ -101,7 +101,6 @@ public class MooTrackView extends JPanel { viewLength = y + height; if(old)setPreferredSize(new Dimension(VIEW_WIDTH, viewLength + extraHeight)); } - } public Track getTrack() { @@ -169,8 +168,9 @@ public class MooTrackView extends JPanel { public void actionPerformed(ActionEvent e) { Object source = e.getSource(); if (source == popupAdd) { - addNote(new MooNote()); + //addNote(new MooNote()); // int channel, int pitch, int velocity, long timestamp, int duration + } } } } \ No newline at end of file