/**
* Creates the title bar.
- * @param aTrack the track that this tracktitle is operating on.
+ * @param aTrack the track that this track title is operating on.
*/
public MooTrackTitle (Track aTrack) {
setDoubleBuffered(true);
}
} else if (status >= 192 && status < 208) {
programChangeMessage = (ShortMessage)msg;
- // System.out.println("Program change " + programChangeMessage.getData1());
- channel = status - 192;
+ channel = programChangeMessage.getChannel();
}
}
int type;
if (channel == 9) type = MooInstrumentList.DRUMS;
else type = MooInstrumentList.INSTRUMENTS;
- instruments = new MooInstrumentList(channel, type);
- // instruments = new MooInstrumentList(channel, type, programChangeMessage);
+ instruments = new MooInstrumentList(channel, type, programChangeMessage);
add(instruments);
channelBox = new JComboBox();