X-Git-Url: https://ruin.nu/git/?p=moosique.git;a=blobdiff_plain;f=MooTrackTitle.java;h=e22c3219846e013d6553dbbda8f851c8b65fe250;hp=c2f1c0fa20097364e509b16493e548ec7916f250;hb=ecef41268a927f27f71839d5df1d68a151b37e5e;hpb=8acc1b9983cf0c679fbe556f480a6d7f4d45e518 diff --git a/MooTrackTitle.java b/MooTrackTitle.java index c2f1c0f..e22c321 100644 --- a/MooTrackTitle.java +++ b/MooTrackTitle.java @@ -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);