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

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

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

revision 2199 by iliev, Mon Mar 16 22:12:32 2009 UTC revision 2200 by iliev, Sun Jul 3 22:01:16 2011 UTC
# Line 1  Line 1 
1  /*  /*
2   *   JSampler - a java front-end for LinuxSampler   *   JSampler - a java front-end for LinuxSampler
3   *   *
4   *   Copyright (C) 2005-2009 Grigor Iliev <grigor@grigoriliev.com>   *   Copyright (C) 2005-2011 Grigor Iliev <grigor@grigoriliev.com>
5   *   *
6   *   This file is part of JSampler.   *   This file is part of JSampler.
7   *   *
# Line 517  public class Channel { Line 517  public class Channel {
517          }          }
518    
519          /**          /**
520           * This taks sets the volume of a specific sampler channel.           * This task sets the volume of a specific sampler channel.
521           */           */
522          public static class SetVolume extends EnhancedTask {          public static class SetVolume extends EnhancedTask {
523                  private int channel;                  private int channel;
# Line 820  public class Channel { Line 820  public class Channel {
820          }          }
821    
822          /**          /**
823           * This taks changes the name of a specific effect send.           * This task changes the name of a specific effect send.
824           */           */
825          public static class SetFxSendName extends EnhancedTask {          public static class SetFxSendName extends EnhancedTask {
826                  private int channel;                  private int channel;
# Line 852  public class Channel { Line 852  public class Channel {
852          }          }
853                    
854          /**          /**
855           * This taks sets the MIDI controller of a specific effect send.           * This task sets the MIDI controller of a specific effect send.
856           */           */
857          public static class SetFxSendAudioOutputChannel extends EnhancedTask {          public static class SetFxSendAudioOutputChannel extends EnhancedTask {
858                  private int channel;                  private int channel;
# Line 892  public class Channel { Line 892  public class Channel {
892          }          }
893                    
894          /**          /**
895           * This taks sets the volume of a specific effect send.           * This task sets the volume of a specific effect send.
896           */           */
897          public static class SetFxSendLevel extends EnhancedTask {          public static class SetFxSendLevel extends EnhancedTask {
898                  private int channel;                  private int channel;
# Line 924  public class Channel { Line 924  public class Channel {
924                          CC.getClient().setFxSendLevel(channel, fxSend, volume);                          CC.getClient().setFxSendLevel(channel, fxSend, volume);
925                  }                  }
926          }          }
927            
928            /**
929             * This task (re)assigns the destination effect of a specific effect send.
930             */
931            public static class SetFxSendEffect extends EnhancedTask {
932                    private int channel;
933                    private int fxSend;
934                    private int chainId;
935                    private int chainPos;
936            
937                    /**
938                     * Creates new instance of <code>SetFxSendEffect</code>.
939                     * @param channel The sampler channel number.
940                     * @param fxSend The numerical ID of the effect send.
941                     * @param chainId The numerical ID of the effect chain. If -1 is
942                     * specified the destination effect is removed.
943                     */
944                    public
945                    SetFxSendEffect(int channel, int fxSend, int chainId, int chainPos) {
946                            setTitle("Channel.SetFxSendEffect_task");
947                            String s = i18n.getMessage("Channel.SetFxSendEffect.desc", channel, fxSend);
948                            setDescription(s);
949                    
950                            this.channel = channel;
951                            this.fxSend = fxSend;
952                            this.chainId = chainId;
953                            this.chainPos = chainPos;
954                    }
955            
956                    /** The entry point of the task. */
957                    @Override
958                    public void
959                    exec() throws Exception {
960                            if(chainId == -1) {
961                                    CC.getClient().removeFxSendEffect(channel, fxSend);
962                            } else {
963                                    CC.getClient().setFxSendEffect(channel, fxSend, chainId, chainPos);
964                            }
965                    }
966            }
967    
968          /**          /**
969           * This taks sets the MIDI controller of a specific effect send.           * This task sets the MIDI controller of a specific effect send.
970           */           */
971          public static class SetFxSendMidiController extends EnhancedTask {          public static class SetFxSendMidiController extends EnhancedTask {
972                  private int channel;                  private int channel;

Legend:
Removed from v.2199  
changed lines
  Added in v.2200

  ViewVC Help
Powered by ViewVC