Package com.softsynth.jmsl.jsyn
Class JSynMixer
java.lang.Object
com.softsynth.jmsl.jsyn.JSynMixer
- All Implemented Interfaces:
Mixer
,PanAmpListener
public class JSynMixer extends java.lang.Object implements Mixer
Deprecated.
use the pure Java JSyn2 package instead
JSynMixer, accomodates JSynInstruments with any number of parts in their
getOutput(). Includes LineOut
- Author:
- Nick Didkovsky, email: nick@didkovsky.com, (c) 2003 Nick Didkovsky, all rights reserved.
-
Constructor Summary
Constructors Constructor Description JSynMixer()
Deprecated. -
Method Summary
Modifier and Type Method Description int
addInstrument(Instrument ins)
Deprecated.When Instruments are added to this Mixer, they are implicitely associated with an autoincrementing fader index.int
addInstrument(Instrument ins, double pan, double amp)
Deprecated.Add a JSynInstrument to JSynMixer.double
getAmp(int faderIndex)
Deprecated.int[]
getFaderIndexes(Instrument ins)
Deprecated.faders index(es) associated with an instrument, or NULL if not foundboolean
getFaderMute(int faderIndex)
Deprecated.boolean
getFaderSolo(int faderIndex)
Deprecated.java.awt.Component
getGUIComponent()
Deprecated.Instrument
getInstrument(int faderIndex)
Deprecated.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()
Deprecated.com.softsynth.jsyn.SynthOutput
getOutput(int part)
Deprecated.This method is unique to JSynMixer, not part of Mixer interface .double
getPan(int faderIndex)
Deprecated.boolean
hasExtension(java.lang.String fname, java.lang.String ext)
Deprecated.True if filename ends in 3 letter extension ext.static void
main(java.lang.String[] args)
Deprecated.void
muteChange(int faderIndex, boolean flag)
Deprecated.void
panAmpChange(int faderIndex, double pan, double amp)
Deprecated.void
removeInstrument(Instrument ins)
Deprecated.Remove all faders associated with this instrumentvoid
repatch(Instrument ins)
Deprecated.Sometimes the internals of an instrument change which require that it be repatchedvoid
setFaderMute(int faderIndex, boolean flag)
Deprecated.void
setFaderSolo(int faderIndex, boolean flag)
Deprecated.Disconnect non-soloed SynthOutputs, connect soloed SynthOutputs.void
soloChange(int faderIndex, boolean flag)
Deprecated.void
start()
Deprecated.start()'s BusReaders, LineOut, and all FaderUnitsvoid
stop()
Deprecated.stop()'s BusReaders, LineOut, and all FaderUnitsMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
JSynMixer
public JSynMixer()Deprecated.
-
-
Method Details
-
getNumFaders
public int getNumFaders()Deprecated.- Specified by:
getNumFaders
in interfaceMixer
-
getOutput
public com.softsynth.jsyn.SynthOutput getOutput(int part)Deprecated.This method is unique to JSynMixer, not part of Mixer interface . You can get at this mixer from JMSLMixerContainer with a call to JMSLMixerContainer.getMixer(JSynMixer.class.getName()); -
addInstrument
Deprecated.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
Deprecated.Add a JSynInstrument to JSynMixer. Handles multipart SynthOutput, adds a PanAmpPanel and FaderUnit for each. So adding a mono instrument and a stereo instrument would result in three faders- Specified by:
addInstrument
in interfaceMixer
- Returns:
- numParts of instrument's outputs, ie number of faders added to this mixer
-
removeInstrument
Deprecated.Description copied from interface:Mixer
Remove all faders associated with this instrument- Specified by:
removeInstrument
in interfaceMixer
-
setFaderMute
public void setFaderMute(int faderIndex, boolean flag)Deprecated.- Specified by:
setFaderMute
in interfaceMixer
-
setFaderSolo
public void setFaderSolo(int faderIndex, boolean flag)Deprecated.Disconnect non-soloed SynthOutputs, connect soloed SynthOutputs. Connect all if none are soloed- Specified by:
setFaderSolo
in interfaceMixer
-
getFaderMute
public boolean getFaderMute(int faderIndex)Deprecated.- Specified by:
getFaderMute
in interfaceMixer
-
getFaderSolo
public boolean getFaderSolo(int faderIndex)Deprecated.- Specified by:
getFaderSolo
in interfaceMixer
-
muteChange
public void muteChange(int faderIndex, boolean flag)Deprecated.- Specified by:
muteChange
in interfacePanAmpListener
-
soloChange
public void soloChange(int faderIndex, boolean flag)Deprecated.- Specified by:
soloChange
in interfacePanAmpListener
-
repatch
Deprecated.Description copied from interface:Mixer
Sometimes the internals of an instrument change which require that it be repatched -
getInstrument
Deprecated.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
- Returns:
- Instrument associated with a fader.
-
getFaderIndexes
Deprecated.Description copied from interface:Mixer
faders index(es) associated with an instrument, or NULL if not found- Specified by:
getFaderIndexes
in interfaceMixer
-
start
public void start()Deprecated.start()'s BusReaders, LineOut, and all FaderUnits -
stop
public void stop()Deprecated.stop()'s BusReaders, LineOut, and all FaderUnits -
panAmpChange
public void panAmpChange(int faderIndex, double pan, double amp)Deprecated.- Specified by:
panAmpChange
in interfacePanAmpListener
-
getPan
public double getPan(int faderIndex)Deprecated. -
getAmp
public double getAmp(int faderIndex)Deprecated. -
getGUIComponent
public java.awt.Component getGUIComponent()Deprecated.- Specified by:
getGUIComponent
in interfaceMixer
-
hasExtension
public boolean hasExtension(java.lang.String fname, java.lang.String ext)Deprecated.True if filename ends in 3 letter extension ext. Case insensitive -
main
public static void main(java.lang.String[] args)Deprecated.
-