31 |
|
|
32 |
|
|
33 |
/** |
/** |
34 |
* |
* This task sets the MIDI input device on a specific sampler channel. |
35 |
* @author Grigor Iliev |
* @author Grigor Iliev |
36 |
*/ |
*/ |
37 |
public class SetChannelMidiInputDevice extends EnhancedTask { |
public class SetChannelMidiInputDevice extends EnhancedTask { |
38 |
private int channel; |
private int channel; |
39 |
private int deviceID; |
private int deviceID; |
40 |
|
|
41 |
|
/** |
42 |
|
* Creates new instance of <code>SetChannelMidiInputDevice</code>. |
43 |
|
* @param channel The sampler channel number. |
44 |
|
* @param deviceID The numerical ID of the MIDI input device. |
45 |
|
*/ |
46 |
public |
public |
47 |
SetChannelMidiInputDevice(int channel, int deviceID) { |
SetChannelMidiInputDevice(int channel, int deviceID) { |
48 |
setTitle("SetChannelMidiInputDevice_task"); |
setTitle("SetChannelMidiInputDevice_task"); |
52 |
this.deviceID = deviceID; |
this.deviceID = deviceID; |
53 |
} |
} |
54 |
|
|
55 |
|
/** The entry point of the task. */ |
56 |
public void |
public void |
57 |
run() { |
run() { |
58 |
try { CC.getClient().setChannelMidiInputDevice(channel, deviceID); } |
try { CC.getClient().setChannelMidiInputDevice(channel, deviceID); } |