Package com.softsynth.jmsl
Class NullMixer
java.lang.Object
com.softsynth.jmsl.NullMixer
- All Implemented Interfaces:
Mixer
,PanAmpListener
public class NullMixer extends java.lang.Object implements Mixer
This Mixer does very little other than implement some methods for debugging
and development. You can add Instruments to this mixer but don't expect them
to do anything.
- Author:
- Nick Didkovsky, email: nick@didkovsky.com, (c) 2003 Nick Didkovsky, all rights reserved.
-
Constructor Summary
Constructors Constructor Description NullMixer()
-
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 faderNumer)
FALSEboolean
getFaderSolo(int faderNumer)
FALSEjava.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)
static void
main(java.lang.String[] args)
void
muteChange(int faderIndex, boolean flag)
void
panAmpChange(int faderIndex, double pan, double amp)
void
removeInstrument(Instrument ins)
Remove all faders associated with this instrumentvoid
repatch(Instrument ins)
Does nothingvoid
setFaderMute(int faderNumber, boolean flag)
Does nothingvoid
setFaderSolo(int faderNumber, boolean flag)
Does nothingvoid
soloChange(int faderIndex, boolean flag)
void
start()
void
stop()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
NullMixer
public NullMixer()
-
-
Method Details
-
addInstrument
Description copied from interface:Mixer
When Instruments are added to this Mixer, they are implicitely associated with an autoincrementing fader index.- Specified by:
addInstrument
in interfaceMixer
- Returns:
- number of new faders added to mixer by adding this instrument
-
addInstrument
Description copied from interface:Mixer
add Instrument with initial pan and amp values. Both pan and amp range 0..1- Specified by:
addInstrument
in interfaceMixer
-
removeInstrument
Description copied from interface:Mixer
Remove all faders associated with this instrument- Specified by:
removeInstrument
in interfaceMixer
-
repatch
Does nothing -
setFaderMute
public void setFaderMute(int faderNumber, boolean flag)Does nothing- Specified by:
setFaderMute
in interfaceMixer
-
setFaderSolo
public void setFaderSolo(int faderNumber, boolean flag)Does nothing- Specified by:
setFaderSolo
in interfaceMixer
-
getFaderMute
public boolean getFaderMute(int faderNumer)FALSE- Specified by:
getFaderMute
in interfaceMixer
-
getFaderSolo
public boolean getFaderSolo(int faderNumer)FALSE- Specified by:
getFaderSolo
in interfaceMixer
-
muteChange
public void muteChange(int faderIndex, boolean flag)- Specified by:
muteChange
in interfacePanAmpListener
-
soloChange
public void soloChange(int faderIndex, boolean flag)- Specified by:
soloChange
in interfacePanAmpListener
-
getInstrument
Description copied from interface:Mixer
Get instrument associated with fader index (some instruments may have more than one fader, so you cannot assume fader n goes with ins n)- Specified by:
getInstrument
in interfaceMixer
-
getFaderIndexes
Description copied from interface:Mixer
faders index(es) associated with an instrument, or NULL if not found- Specified by:
getFaderIndexes
in interfaceMixer
-
getNumFaders
public int getNumFaders()- Specified by:
getNumFaders
in interfaceMixer
-
start
public void start() -
stop
public void stop() -
panAmpChange
public void panAmpChange(int faderIndex, double pan, double amp)- Specified by:
panAmpChange
in interfacePanAmpListener
-
getPan
public double getPan(int faderIndex) -
getAmp
public double getAmp(int faderIndex) -
main
public static void main(java.lang.String[] args) -
getGUIComponent
public java.awt.Component getGUIComponent()- Specified by:
getGUIComponent
in interfaceMixer
-