/[svn]/jsampler/trunk/src/org/jsampler/task/SetChannelMidiInputDevice.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/task/SetChannelMidiInputDevice.java

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

revision 910 by iliev, Thu Mar 16 18:08:34 2006 UTC revision 911 by iliev, Mon Aug 7 18:25:58 2006 UTC
# Line 31  import static org.jsampler.JSI18n.i18n; Line 31  import static org.jsampler.JSI18n.i18n;
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");
# Line 47  public class SetChannelMidiInputDevice e Line 52  public class SetChannelMidiInputDevice e
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); }

Legend:
Removed from v.910  
changed lines
  Added in v.911

  ViewVC Help
Powered by ViewVC