]> ruin.nu Git - moosique.git/commitdiff
not needed to go through all notes..
authorMichael Andreen <harv@ruin.nu>
Tue, 13 May 2003 17:42:52 +0000 (17:42 +0000)
committerMichael Andreen <harv@ruin.nu>
Tue, 13 May 2003 17:42:52 +0000 (17:42 +0000)
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.