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

Diff of /jsampler/trunk/src/org/jsampler/task/LoadInstrument.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 34  import static org.jsampler.JSI18n.i18n; Line 34  import static org.jsampler.JSI18n.i18n;
34    
35    
36  /**  /**
37   *   * This task loads and assigns an instrument to a sampler channel.
38   * @author Grigor Iliev   * @author Grigor Iliev
39   */   */
40  public class LoadInstrument extends EnhancedTask {  public class LoadInstrument extends EnhancedTask {
# Line 42  public class LoadInstrument extends Enha Line 42  public class LoadInstrument extends Enha
42          private int instrIndex;          private int instrIndex;
43          private int channel;          private int channel;
44                    
45            /**
46             * Creates new instance of <code>LoadInstrument</code>.
47             * @param filename The name of the instrument file
48             * on the LinuxSampler instance's host system.
49             * @param instrIndex The index of the instrument in the instrument file.
50             * @param channel The number of the sampler channel the instrument should be assigned to.
51             */
52          public          public
53          LoadInstrument(String filename, int instrIndex, int channel) {          LoadInstrument(String filename, int instrIndex, int channel) {
54                  this.filename = filename;                  this.filename = filename;
# Line 52  public class LoadInstrument extends Enha Line 59  public class LoadInstrument extends Enha
59                  setDescription(i18n.getMessage("LoadInstrument.description"));                  setDescription(i18n.getMessage("LoadInstrument.description"));
60          }          }
61                    
62            /** The entry point of the task. */
63          public void          public void
64          run() {          run() {
65                  try { CC.getClient().loadInstrument(filename, instrIndex, channel, true); }                  try { CC.getClient().loadInstrument(filename, instrIndex, channel, true); }

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

  ViewVC Help
Powered by ViewVC