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 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 faderNumer)FALSEbooleangetFaderSolo(int faderNumer)FALSEjava.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)static voidmain(java.lang.String[] args)voidmuteChange(int faderIndex, boolean flag)voidpanAmpChange(int faderIndex, double pan, double amp)voidremoveInstrument(Instrument ins)Remove all faders associated with this instrumentvoidrepatch(Instrument ins)Does nothingvoidsetFaderMute(int faderNumber, boolean flag)Does nothingvoidsetFaderSolo(int faderNumber, boolean flag)Does nothingvoidsoloChange(int faderIndex, boolean flag)voidstart()voidstop()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:MixerWhen Instruments are added to this Mixer, they are implicitely associated with an autoincrementing fader index.- Specified by:
addInstrumentin interfaceMixer- Returns:
- number of new faders added to mixer by adding this instrument
-
addInstrument
Description copied from interface:Mixeradd Instrument with initial pan and amp values. Both pan and amp range 0..1- Specified by:
addInstrumentin interfaceMixer
-
removeInstrument
Description copied from interface:MixerRemove all faders associated with this instrument- Specified by:
removeInstrumentin interfaceMixer
-
repatch
Does nothing -
setFaderMute
public void setFaderMute(int faderNumber, boolean flag)Does nothing- Specified by:
setFaderMutein interfaceMixer
-
setFaderSolo
public void setFaderSolo(int faderNumber, boolean flag)Does nothing- Specified by:
setFaderSoloin interfaceMixer
-
getFaderMute
public boolean getFaderMute(int faderNumer)FALSE- Specified by:
getFaderMutein interfaceMixer
-
getFaderSolo
public boolean getFaderSolo(int faderNumer)FALSE- Specified by:
getFaderSoloin interfaceMixer
-
muteChange
public void muteChange(int faderIndex, boolean flag)- Specified by:
muteChangein interfacePanAmpListener
-
soloChange
public void soloChange(int faderIndex, boolean flag)- Specified by:
soloChangein interfacePanAmpListener
-
getInstrument
Description copied from interface:MixerGet 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:
getInstrumentin interfaceMixer
-
getFaderIndexes
Description copied from interface:Mixerfaders index(es) associated with an instrument, or NULL if not found- Specified by:
getFaderIndexesin interfaceMixer
-
getNumFaders
public int getNumFaders()- Specified by:
getNumFadersin interfaceMixer
-
start
public void start() -
stop
public void stop() -
panAmpChange
public void panAmpChange(int faderIndex, double pan, double amp)- Specified by:
panAmpChangein 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:
getGUIComponentin interfaceMixer
-