|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Mixer
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
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 faderIndex)
|
boolean |
getFaderSolo(int faderIndex)
|
java.awt.Component |
getGUIComponent()
|
Instrument |
getInstrument(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) |
int |
getNumFaders()
|
double |
getPan(int faderIndex)
|
void |
removeInstrument(Instrument ins)
Remove all faders associated with this instrument |
void |
repatch(Instrument ins)
Sometimes the internals of an instrument change which require that it be repatched |
void |
setFaderMute(int faderIndex,
boolean flag)
|
void |
setFaderSolo(int faderIndex,
boolean flag)
|
void |
start()
|
void |
stop()
|
Methods inherited from interface com.softsynth.jmsl.PanAmpListener |
---|
muteChange, panAmpChange, soloChange |
Method Detail |
---|
int addInstrument(Instrument ins)
int addInstrument(Instrument ins, double pan, double amp)
void removeInstrument(Instrument ins)
void repatch(Instrument ins)
Instrument getInstrument(int faderIndex)
int[] getFaderIndexes(Instrument ins)
int getNumFaders()
double getPan(int faderIndex)
double getAmp(int faderIndex)
void setFaderMute(int faderIndex, boolean flag)
void setFaderSolo(int faderIndex, boolean flag)
boolean getFaderMute(int faderIndex)
boolean getFaderSolo(int faderIndex)
void start()
void stop()
java.awt.Component getGUIComponent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |