From 26f267077ef4c6df2f02aee1a60f16ebe7922bf9 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Tue, 13 May 2003 17:36:48 +0000 Subject: [PATCH] stuff.. --- MooInstrumentList.java | 2 -- MooTrackTitle.java | 9 +-------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/MooInstrumentList.java b/MooInstrumentList.java index d109227..ed976dd 100644 --- a/MooInstrumentList.java +++ b/MooInstrumentList.java @@ -21,9 +21,7 @@ public class MooInstrumentList extends JComboBox implements ActionListener { public void setChannel(int chan){ channel = chan; - System.out.println(chan); setSelectedIndex(Moosique.getChannel(channel).getProgram()); - System.out.println(Moosique.getChannel(channel).getProgram()); } public void actionPerformed(ActionEvent e) { diff --git a/MooTrackTitle.java b/MooTrackTitle.java index 74e7a1e..fd9aa96 100644 --- a/MooTrackTitle.java +++ b/MooTrackTitle.java @@ -72,14 +72,7 @@ public class MooTrackTitle extends JPanel { for (int i = 1; i <= 16; i++) channelBox.addItem(new Integer(i)); - for (int j = 0; j < track.size(); j++) { - MidiEvent me = track.get(j); - if (me instanceof MooNote){ - MooNote mn = (MooNote)me; - channelBox.setSelectedIndex(mn.getChannel()); - break; - } - } + channelBox.setSelectedIndex(channel); instruments = new MooInstrumentList(channelBox.getSelectedIndex()); -- 2.39.2