com.softsynth.jmsl
Class MixerFader
java.lang.Object
com.softsynth.jmsl.MixerFader
public class MixerFader
- extends java.lang.Object
Useful for a Mixer to keep track of Objects associated with the idea of a fader
- Author:
- Nick Didkovsky, email: didkovn@mail.rockefeller.edu, (c) 2003 Nick
Didkovsky, all rights reserved.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MixerFader
public MixerFader()
main
public static void main(java.lang.String[] args)
getAssociatedFaderIndex
public int getAssociatedFaderIndex()
- Returns:
- index of the fader on another mixer that this fader maps to (for
example a master mixer fader N controlling a embedded JSynMixer on
fader M
getInstrument
public Instrument getInstrument()
- Returns:
- Instrument associated with this fader
getMixer
public Mixer getMixer()
- Returns:
- Mixer associated with this fader
getPanAmpPair
public PanAmpPair getPanAmpPair()
- Returns:
- panAmpPair which stores pan/amp info for this fader
setAssociatedFaderIndex
public void setAssociatedFaderIndex(int faderIndex)
- Parameters:
faderIndex,
- the fader index on an associated mixer to which this fader
maps
setInstrument
public void setInstrument(Instrument instrument)
- Parameters:
instrument
-
setMixer
public void setMixer(Mixer mixer)
- Parameters:
mixer
-
setPanAmpPair
public void setPanAmpPair(PanAmpPair pair)
- Parameters:
pair
-
isMute
public boolean isMute()
- Returns:
- Returns the mute.
setMute
public void setMute(boolean mute)
- Parameters:
mute
- The mute to set.
isSolo
public boolean isSolo()
- Returns:
- Returns the solo.
setSolo
public void setSolo(boolean solo)
- Parameters:
solo
- The solo to set.