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

Diff of /jsampler/trunk/src/org/jsampler/SamplerChannelModel.java

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

revision 1775 by iliev, Mon Apr 2 21:18:31 2007 UTC revision 1776 by iliev, Thu Sep 11 18:48:36 2008 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-2006 Grigor Iliev <grigor@grigoriliev.com>   *   Copyright (C) 2005-2008 Grigor Iliev <grigor@grigoriliev.com>
5   *   *
6   *   This file is part of JSampler.   *   This file is part of JSampler.
7   *   *
# Line 28  import org.jsampler.event.SamplerChannel Line 28  import org.jsampler.event.SamplerChannel
28  import org.linuxsampler.lscp.FxSend;  import org.linuxsampler.lscp.FxSend;
29  import org.linuxsampler.lscp.SamplerChannel;  import org.linuxsampler.lscp.SamplerChannel;
30    
31    import org.linuxsampler.lscp.event.MidiDataEvent;
32    import org.linuxsampler.lscp.event.MidiDataListener;
33    
34  /**  /**
35   * A data model representing a sampler channel.   * A data model representing a sampler channel.
# Line 61  public interface SamplerChannelModel { Line 63  public interface SamplerChannelModel {
63          public void removeEffectSendsListener(EffectSendsListener l);          public void removeEffectSendsListener(EffectSendsListener l);
64                    
65          /**          /**
66             * Registers the specified listener to be notified when
67             * MIDI events are sent to the channel.
68             * @param l The <code>MidiDataListener</code> to register.
69             */
70            public void addMidiDataListener(MidiDataListener l);
71            
72            /**
73             * Removes the specified listener.
74             * @param l The <code>MidiDataListener</code> to remove.
75             */
76            public void removeMidiDataListener(MidiDataListener l);
77            
78            /**
79           * Gets the sampler channel number.           * Gets the sampler channel number.
80           * @return The sampler channel number or -1 if the sampler channel number is not set.           * @return The sampler channel number or -1 if the sampler channel number is not set.
81           */           */
# Line 312  public interface SamplerChannelModel { Line 327  public interface SamplerChannelModel {
327           * @param level The new volume value.           * @param level The new volume value.
328           */           */
329          public void setBackendFxSendLevel(int fxSend, float level);          public void setBackendFxSendLevel(int fxSend, float level);
330            
331            /**
332             * Sends a MIDI data message to this sampler channel.
333             */
334            public void sendBackendMidiData(MidiDataEvent e);
335            
336            /**
337             * Sends a MIDI data message to this sampler channel.
338             * @param type The type of MIDI message to send.
339             * @param arg1 Depends on the message type.
340             * @param arg2 Depends on the message type.
341             */
342            public void sendBackendMidiData(MidiDataEvent.Type type, int arg1, int arg2);
343  }  }

Legend:
Removed from v.1775  
changed lines
  Added in v.1776

  ViewVC Help
Powered by ViewVC