com.softsynth.jmsl
Interface Mixer

All Superinterfaces:
PanAmpListener
All Known Implementing Classes:
JMSLMixerContainer, 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: didkovn@mail.rockefeller.edu, (c) 2003 Nick Didkovsky, all rights reserved.

Method Summary
 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 found
 boolean 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 instrument
 void repatch(Instrument ins)
          Sometimes the internals of an instrument change which require that it be repatched
 void 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 Detail

addInstrument

int addInstrument(Instrument ins)
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

int addInstrument(Instrument ins,
                  double pan,
                  double amp)
add Instrument with initial pan and amp values. Both pan and amp range 0..1


removeInstrument

void removeInstrument(Instrument ins)
Remove all faders associated with this instrument


repatch

void repatch(Instrument ins)
Sometimes the internals of an instrument change which require that it be repatched


getInstrument

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)


getFaderIndexes

int[] getFaderIndexes(Instrument ins)
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()