Package com.softsynth.jmsl
Interface Mixer
- All Superinterfaces:
PanAmpListener
- All Known Implementing Classes:
JMSLMixerContainer,JSynMixer,JSynMixer,MidiMixer,NullMixer
public interface Mixer extends PanAmpListener
Mixer is an ordered collection of faders associated with Instruments.
Mixer receives pan/amp/faderindex change notifications and must implement these.
Use PanAmpListener.panAmpChange() to change pan/amp values
- Author:
- Nick Didkovsky, email: nick@didkovsky.com, (c) 2003 Nick Didkovsky, all rights reserved.
-
Method Summary
Modifier and Type Method Description intaddInstrument(Instrument ins)When Instruments are added to this Mixer, they are implicitely associated with an autoincrementing fader index.intaddInstrument(Instrument ins, double pan, double amp)add Instrument with initial pan and amp values.doublegetAmp(int faderIndex)int[]getFaderIndexes(Instrument ins)faders index(es) associated with an instrument, or NULL if not foundbooleangetFaderMute(int faderIndex)booleangetFaderSolo(int faderIndex)java.awt.ComponentgetGUIComponent()InstrumentgetInstrument(int faderIndex)Get instrument associated with fader index (some instruments may have more than one fader, so you cannot assume fader n goes with ins n)intgetNumFaders()doublegetPan(int faderIndex)voidremoveInstrument(Instrument ins)Remove all faders associated with this instrumentvoidrepatch(Instrument ins)Sometimes the internals of an instrument change which require that it be repatchedvoidsetFaderMute(int faderIndex, boolean flag)voidsetFaderSolo(int faderIndex, boolean flag)voidstart()voidstop()Methods inherited from interface com.softsynth.jmsl.PanAmpListener
muteChange, panAmpChange, soloChange
-
Method Details
-
addInstrument
When Instruments are added to this Mixer, they are implicitely associated with an autoincrementing fader index.- Returns:
- number of new faders added to mixer by adding this instrument
-
addInstrument
add Instrument with initial pan and amp values. Both pan and amp range 0..1 -
removeInstrument
Remove all faders associated with this instrument -
repatch
Sometimes the internals of an instrument change which require that it be repatched -
getInstrument
Get instrument associated with fader index (some instruments may have more than one fader, so you cannot assume fader n goes with ins n) -
getFaderIndexes
faders index(es) associated with an instrument, or NULL if not found -
getNumFaders
int getNumFaders() -
getPan
double getPan(int faderIndex) -
getAmp
double getAmp(int faderIndex) -
setFaderMute
void setFaderMute(int faderIndex, boolean flag) -
setFaderSolo
void setFaderSolo(int faderIndex, boolean flag) -
getFaderMute
boolean getFaderMute(int faderIndex) -
getFaderSolo
boolean getFaderSolo(int faderIndex) -
start
void start() -
stop
void stop() -
getGUIComponent
java.awt.Component getGUIComponent()
-