]> ruin.nu Git - moosique.git/blobdiff - MooTrackTitle.java
Fixed the select function.
[moosique.git] / MooTrackTitle.java
index c2f1c0fa20097364e509b16493e548ec7916f250..e22c3219846e013d6553dbbda8f851c8b65fe250 100644 (file)
@@ -76,15 +76,15 @@ public class MooTrackTitle extends JPanel {
 
                channelBox.addActionListener(new ActionListener(){
                                public void actionPerformed(ActionEvent e){
-                                       int chan = channelBox.getSelectedIndex();
+                                       channel = channelBox.getSelectedIndex();
                                        MidiEvent me;
                                        MooNote mn;
-                                       instruments.setChannel(channelBox.getSelectedIndex());
+                                       instruments.setChannel(channel);
                                        for (int j = 0; j < track.size(); j++) {
                                                me = track.get(j);
                                            if (me instanceof MooNote){
                                                        mn = (MooNote)me;
-                                                       mn.setChannel(chan);
+                                                       mn.setChannel(channel);
                                                }
                                }}});
                add(channelBox);