28 |
import org.jsampler.HF; |
import org.jsampler.HF; |
29 |
import org.jsampler.SamplerModel; |
import org.jsampler.SamplerModel; |
30 |
|
|
|
import net.sf.juife.AbstractTask; |
|
|
|
|
31 |
import org.linuxsampler.lscp.SamplerChannel; |
import org.linuxsampler.lscp.SamplerChannel; |
32 |
|
|
33 |
import static org.jsampler.JSI18n.i18n; |
import static org.jsampler.JSI18n.i18n; |
37 |
* |
* |
38 |
* @author Grigor Iliev |
* @author Grigor Iliev |
39 |
*/ |
*/ |
40 |
public class LoadInstrument extends AbstractTask { |
public class LoadInstrument extends EnhancedTask { |
41 |
private String filename; |
private String filename; |
42 |
private int instrIndex; |
private int instrIndex; |
43 |
private int channel; |
private int channel; |
53 |
} |
} |
54 |
|
|
55 |
public void |
public void |
|
stop() { CC.cleanExit(); } |
|
|
|
|
|
public void |
|
56 |
run() { |
run() { |
57 |
try { CC.getClient().loadInstrument(filename, instrIndex, channel, true); } |
try { CC.getClient().loadInstrument(filename, instrIndex, channel, true); } |
58 |
catch(Exception x) { |
catch(Exception x) { |