title.addFocusListener(new TitleFocusListener());
add(title);
- instruments = new MooInstrumentList(channel);
- // instruments = new MooInstrumentList(channel, programChangeMessage);
+ int type;
+ if (channel == 9) type = MooInstrumentList.DRUMS;
+ else type = MooInstrumentList.INSTRUMENTS;
+ instruments = new MooInstrumentList(channel, type);
+ // instruments = new MooInstrumentList(channel, type, programChangeMessage);
add(instruments);
channelBox = new JComboBox();
checkboxes.add(solo);
add(checkboxes);
}
+
+ /**
+ * Returns the channel of the track that the view is visualising.
+ * @return the chanel of the visualised track
+ */
+ public int getChannel() {
+ return channel;
+ }
/**
* Checks if the focus is lost.