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 |
* |
* |
75 |
private final Vector<MidiDeviceModel> midiDeviceModels = new Vector<MidiDeviceModel>(); |
private final Vector<MidiDeviceModel> midiDeviceModels = new Vector<MidiDeviceModel>(); |
76 |
private final Vector<MidiInstrumentMap> midiInstrMaps = new Vector<MidiInstrumentMap>(); |
private final Vector<MidiInstrumentMap> midiInstrMaps = new Vector<MidiInstrumentMap>(); |
77 |
|
|
78 |
|
private final EffectList effects = new EffectList(); |
79 |
|
|
80 |
private final Vector<SamplerListener> listeners = new Vector<SamplerListener>(); |
private final Vector<SamplerListener> listeners = new Vector<SamplerListener>(); |
81 |
private final Vector<ListListener<MidiInstrumentMap>> mapsListeners = |
private final Vector<ListListener<MidiInstrumentMap>> mapsListeners = |
82 |
new Vector<ListListener<MidiInstrumentMap>>(); |
new Vector<ListListener<MidiInstrumentMap>>(); |
673 |
public void |
public void |
674 |
setEngines(SamplerEngine[] engines) { this.engines = engines; } |
setEngines(SamplerEngine[] engines) { this.engines = engines; } |
675 |
|
|
676 |
|
/** Gets the list of internal effects */ |
677 |
|
public EffectList |
678 |
|
getEffects() { return effects; } |
679 |
|
|
680 |
/** |
/** |
681 |
* Gets the model of the sampler channel in the specified position. |
* Gets the model of the sampler channel in the specified position. |
682 |
* @param index The position of the channel to return. |
* @param index The position of the channel to return. |
834 |
@Override |
@Override |
835 |
public void |
public void |
836 |
removeAllChannels() { |
removeAllChannels() { |
837 |
if(channelModels.size() == 0) return; |
if(channelModels.isEmpty()) return; |
838 |
|
|
839 |
setChannelListIsAdjusting(true); |
setChannelListIsAdjusting(true); |
840 |
for(int i = channelModels.size() - 1; i > 0; i--) { |
for(int i = channelModels.size() - 1; i > 0; i--) { |