/[svn]/jsampler/trunk/src/org/jsampler/view/fantasia/PianoKeyboardPane.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/view/fantasia/PianoKeyboardPane.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1778 by iliev, Sun Sep 28 20:38:36 2008 UTC revision 1785 by iliev, Tue Oct 7 00:07:14 2008 UTC
# Line 71  import org.jsampler.event.SamplerChannel Line 71  import org.jsampler.event.SamplerChannel
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;
# Line 241  public class PianoKeyboardPane extends F Line 242  public class PianoKeyboardPane extends F
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;
# Line 480  public class PianoKeyboardPane extends F Line 481  public class PianoKeyboardPane extends F
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) {

Legend:
Removed from v.1778  
changed lines
  Added in v.1785

  ViewVC Help
Powered by ViewVC