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 |
* |
* |
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. |
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 |
*/ |
*/ |
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 |
} |
} |