]> ruin.nu Git - moosique.git/blobdiff - MooTrackTitle.java
not needed to go through all notes..
[moosique.git] / MooTrackTitle.java
index fd9aa967599be3ebc647f9ee8bf792494a90db96..a97844b2f208fc755c7f7e89b10cfb307e6dd480 100644 (file)
@@ -50,7 +50,10 @@ public class MooTrackTitle extends JPanel {
                MidiEvent event;
                for (int i = 0; i < track.size(); i++) {
                        event = track.get(i);
-                       if (event instanceof MooNote) channel = ((MooNote)event).getChannel();
+                       if (event instanceof MooNote) {
+                               channel = ((MooNote)event).getChannel();
+                               break;
+                       }
                }
                
                // Creates and places components.