49 |
import org.jsampler.CC; |
import org.jsampler.CC; |
50 |
import org.jsampler.DefaultOrchestraModel; |
import org.jsampler.DefaultOrchestraModel; |
51 |
import org.jsampler.HF; |
import org.jsampler.HF; |
52 |
import org.jsampler.Instrument; |
import org.jsampler.OrchestraInstrument; |
53 |
import org.jsampler.OrchestraModel; |
import org.jsampler.OrchestraModel; |
54 |
|
|
55 |
import org.jsampler.event.OrchestraAdapter; |
import org.jsampler.event.OrchestraAdapter; |
135 |
mouseClicked(MouseEvent e) { |
mouseClicked(MouseEvent e) { |
136 |
if(e.getClickCount() < 2) return; |
if(e.getClickCount() < 2) return; |
137 |
|
|
138 |
Instrument instr = instrumentTable.getSelectedInstrument(); |
OrchestraInstrument instr = instrumentTable.getSelectedInstrument(); |
139 |
if(instr == null) return; |
if(instr == null) return; |
140 |
loadInstrument(instr); |
loadInstrument(instr); |
141 |
} |
} |
143 |
} |
} |
144 |
|
|
145 |
private void |
private void |
146 |
loadInstrument(Instrument instr) { |
loadInstrument(OrchestraInstrument instr) { |
147 |
JSChannelsPane cp = CC.getMainFrame().getSelectedChannelsPane(); |
JSChannelsPane cp = CC.getMainFrame().getSelectedChannelsPane(); |
148 |
JSChannel chn = null; |
JSChannel chn = null; |
149 |
|
|
164 |
return; |
return; |
165 |
} |
} |
166 |
|
|
167 |
chn.getModel().loadBackendInstrument(instr.getPath(), instr.getInstrumentIndex()); |
chn.getModel().loadBackendInstrument(instr.getFilePath(), instr.getInstrumentIndex()); |
168 |
} |
} |
169 |
|
|
170 |
/** |
/** |