]> ruin.nu Git - moosique.git/commitdiff
stuff..
authorMichael Andreen <harv@ruin.nu>
Tue, 13 May 2003 17:36:48 +0000 (17:36 +0000)
committerMichael Andreen <harv@ruin.nu>
Tue, 13 May 2003 17:36:48 +0000 (17:36 +0000)
MooInstrumentList.java
MooTrackTitle.java

index d109227a287d17173737e08e18cd7072b3229126..ed976dd4434d952c614a113bc77030980b2d6855 100644 (file)
@@ -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) {
index 74e7a1e8ae2c1ae64a85d158ee555b808344456a..fd9aa967599be3ebc647f9ee8bf792494a90db96 100644 (file)
@@ -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());