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 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 foundboolean
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 instrumentvoid
repatch(Instrument ins)
Sometimes the internals of an instrument change which require that it be repatchedvoid
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 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()
-