71 |
import org.jsampler.event.SamplerChannelListEvent; |
import org.jsampler.event.SamplerChannelListEvent; |
72 |
|
|
73 |
import org.jsampler.view.JSChannel; |
import org.jsampler.view.JSChannel; |
74 |
|
import org.jsampler.view.fantasia.basic.*; |
75 |
import org.jsampler.view.std.JSPianoRoll; |
import org.jsampler.view.std.JSPianoRoll; |
76 |
|
|
77 |
import org.linuxsampler.lscp.Instrument; |
import org.linuxsampler.lscp.Instrument; |
242 |
valueChanged(ListSelectionEvent e) { |
valueChanged(ListSelectionEvent e) { |
243 |
if(e.getValueIsAdjusting()) return; |
if(e.getValueIsAdjusting()) return; |
244 |
|
|
245 |
JSChannel[] chnS = CC.getMainFrame().getChannelsPane(0).getSelectedChannels(); |
JSChannel[] chnS = CC.getMainFrame().getSelectedChannelsPane().getSelectedChannels(); |
246 |
if(chnS == null || chnS.length == 0) { |
if(chnS == null || chnS.length == 0) { |
247 |
disconnectChannel(); |
disconnectChannel(); |
248 |
return; |
return; |
481 |
} |
} |
482 |
|
|
483 |
SamplerChannel sc = channel.getChannelInfo(); |
SamplerChannel sc = channel.getChannelInfo(); |
484 |
int i = CC.getSamplerModel().getChannelIndex(channel) + 1; |
String s = CC.getMainFrame().getChannelPath(channel); |
485 |
|
|
486 |
StringBuffer sb = new StringBuffer(); |
StringBuffer sb = new StringBuffer(); |
487 |
sb.append(i18n.getLabel("PianoKeyboardPane.channel", i)).append(" - "); |
sb.append(i18n.getLabel("PianoKeyboardPane.channel", s)).append(" - "); |
488 |
|
|
489 |
int status = sc.getInstrumentStatus(); |
int status = sc.getInstrumentStatus(); |
490 |
if(status >= 0 && status < 100) { |
if(status >= 0 && status < 100) { |