From ab04807c8c21e30c7f6a18722a4738aecaabb5de Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Tue, 13 May 2003 17:42:52 +0000 Subject: [PATCH] not needed to go through all notes.. --- MooTrackTitle.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MooTrackTitle.java b/MooTrackTitle.java index fd9aa96..a97844b 100644 --- a/MooTrackTitle.java +++ b/MooTrackTitle.java @@ -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. -- 2.39.2