31 |
|
|
32 |
|
|
33 |
/** |
/** |
34 |
* |
* This task sets the MIDI input port of a specific sampler channel. |
35 |
* @author Grigor Iliev |
* @author Grigor Iliev |
36 |
*/ |
*/ |
37 |
public class SetChannelMidiInputPort extends EnhancedTask { |
public class SetChannelMidiInputPort extends EnhancedTask { |
38 |
private int channel; |
private int channel; |
39 |
private int port; |
private int port; |
40 |
|
|
41 |
|
/** |
42 |
|
* Creates new instance of <code>SetChannelMidiInputPort</code>. |
43 |
|
* @param channel The sampler channel number. |
44 |
|
* @param port The MIDI input port number |
45 |
|
* of the MIDI input device connected to the specified sampler channel. |
46 |
|
*/ |
47 |
public |
public |
48 |
SetChannelMidiInputPort(int channel, int port) { |
SetChannelMidiInputPort(int channel, int port) { |
49 |
setTitle("SetChannelMidiInputPort_task"); |
setTitle("SetChannelMidiInputPort_task"); |
55 |
this.port = port; |
this.port = port; |
56 |
} |
} |
57 |
|
|
58 |
|
/** The entry point of the task. */ |
59 |
public void |
public void |
60 |
run() { |
run() { |
61 |
try { CC.getClient().setChannelMidiInputPort(channel, port); } |
try { CC.getClient().setChannelMidiInputPort(channel, port); } |