|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softsynth.jmsl.JMSLMixerContainer
public class JMSLMixerContainer
A heterogenous Mixer which can accept any Instrument whose getMixerClassName() returns a valid class name. This Mixer can therefore set up faders for MidiInstruments and JSyn Instruments. It is really a container of Mixer implementations, which are created by asking the Instrument for its Mixer classname. It maintains a Hashtable of Mixer classname to Mixer instances. All instruments with the same Mixer classname will all get added to the same Mixer. The Faders on this mixer container are mapped to the faders of the Mixer implementations it contains.
Constructor Summary | |
---|---|
JMSLMixerContainer()
|
Method Summary | |
---|---|
int |
addInstrument(Instrument ins)
When Instruments are added to this Mixer, they are implicitely associated with an autoincrementing fader index. |
int |
addInstrument(Instrument ins,
double pan,
double amp)
add Instrument with initial pan and amp values. |
double |
getAmp(int faderIndex)
|
int[] |
getFaderIndexes(Instrument ins)
faders index(es) associated with an instrument, or NULL if not found |
boolean |
getFaderMute(int faderNumer)
|
boolean |
getFaderSolo(int faderNumer)
|
java.awt.Component |
getGUIComponent()
The GUI component is an extra component a Mixer can make available for a layout. |
Instrument |
getInstrument(int insIndex)
Get instrument associated with fader index (some instruments may have more than one fader, so you cannot assume fader n goes with ins n) |
Mixer |
getMixer(java.lang.String mixerClassName)
|
int |
getNumFaders()
|
double |
getPan(int faderIndex)
|
java.awt.Component |
getPanAmpControlPanel()
|
java.awt.Component |
getPanAmpControlPanel(int rows,
int cols)
|
java.awt.Component |
getPanAmpControlPanel(int rows,
int cols,
int hgap,
int vgap)
|
static void |
main(java.lang.String[] args)
|
void |
muteChange(int faderIndex,
boolean flag)
|
void |
panAmpChange(int faderIndex,
double pan,
double amp)
Pass pan/amp change for this faderindex down to the fader's associated mixer and its asociated fader number on that mixer |
void |
removeInstrument(Instrument ins)
Calls removeInstrument(ins) on mixer which owns ins. |
void |
repatch(Instrument ins)
Enumerate all MixerFaders. |
void |
setFaderMute(int faderNumber,
boolean flag)
|
void |
setFaderSolo(int faderNumber,
boolean flag)
|
void |
setFromPanAmpPairs(java.util.Vector panAmpPairs)
|
void |
soloChange(int faderIndex,
boolean flag)
|
void |
start()
Start all mixers in this mixer |
void |
stop()
Stop all mixers in this mixer |
void |
writeXML(java.io.PrintWriter out)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JMSLMixerContainer()
Method Detail |
---|
public int addInstrument(Instrument ins)
Mixer
addInstrument
in interface Mixer
public int addInstrument(Instrument ins, double pan, double amp)
Mixer
addInstrument
in interface Mixer
public void removeInstrument(Instrument ins)
removeInstrument
in interface Mixer
public void setFaderMute(int faderNumber, boolean flag)
setFaderMute
in interface Mixer
public void setFaderSolo(int faderNumber, boolean flag)
setFaderSolo
in interface Mixer
public boolean getFaderMute(int faderNumer)
getFaderMute
in interface Mixer
public boolean getFaderSolo(int faderNumer)
getFaderSolo
in interface Mixer
public void repatch(Instrument ins)
repatch
in interface Mixer
public Mixer getMixer(java.lang.String mixerClassName)
public Instrument getInstrument(int insIndex)
Mixer
getInstrument
in interface Mixer
public int[] getFaderIndexes(Instrument ins)
Mixer
getFaderIndexes
in interface Mixer
public int getNumFaders()
getNumFaders
in interface Mixer
public double getPan(int faderIndex)
getPan
in interface Mixer
public double getAmp(int faderIndex)
getAmp
in interface Mixer
public java.awt.Component getGUIComponent()
getGUIComponent
in interface Mixer
public void start()
start
in interface Mixer
public void stop()
stop
in interface Mixer
public void panAmpChange(int faderIndex, double pan, double amp)
panAmpChange
in interface PanAmpListener
public void muteChange(int faderIndex, boolean flag)
muteChange
in interface PanAmpListener
public void soloChange(int faderIndex, boolean flag)
soloChange
in interface PanAmpListener
public void setFromPanAmpPairs(java.util.Vector panAmpPairs)
public void writeXML(java.io.PrintWriter out) throws java.io.IOException
writeXML
in interface XMLWritable
java.io.IOException
public java.awt.Component getPanAmpControlPanel()
public java.awt.Component getPanAmpControlPanel(int rows, int cols)
public java.awt.Component getPanAmpControlPanel(int rows, int cols, int hgap, int vgap)
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |