]> ruin.nu Git - moosique.git/commitdiff
Added the MOOSE icon
authorEinar Pehrson <einarp@itstud.chalmers.se>
Mon, 12 May 2003 11:04:24 +0000 (11:04 +0000)
committerEinar Pehrson <einarp@itstud.chalmers.se>
Mon, 12 May 2003 11:04:24 +0000 (11:04 +0000)
MooGUI.java
Moosique.java

index 32285ac5191375271ec0ba593f2dddfb8cb45ac6..b313b0267ff060a5fb7127065d4759d134c8196b 100644 (file)
@@ -75,6 +75,7 @@ public class MooGUI extends JFrame {
                // Configures window.
                addWindowListener(new MooGUICloser());
                pack();
+               setIconImage(Toolkit.getDefaultToolkit().getImage("images/moose.gif"));
                Dimension bounds = Toolkit.getDefaultToolkit().getScreenSize();
                setSize(bounds.width,bounds.height - 40);
                setLocation(0, 0);
index 5d6ed9716b569d472141910edfb0e41358c21d74..83545047c848264510512e014a610cdce79ca27a 100644 (file)
@@ -1,6 +1,7 @@
 import javax.sound.midi.*;
 import java.io.*;
 import javax.swing.*;
+import java.util.*;
 
 /**
  * Moosique - The MIDI Tracker
@@ -234,6 +235,13 @@ public class Moosique {
                MidiMessage nextMsg;
                ShortMessage shortMsg;
                for (int i = 0; i < tracks.length; i++) {
+       /*
+                       Collections.sort(track[i].events, new Comparator() {
+                               public int compare(Object o1, Object o2) {
+                                       return ((MidiEvent)o2).getTick() - ((MidiEvent)o1).getTick();
+                               }
+                       });
+       */
                        for (int j = 0; j < tracks[i].size(); j++) {
                                noteOn = tracks[i].get(j);
                                if (noteOn.getMessage() instanceof ShortMessage) {