Interface Mixer

All Superinterfaces:
PanAmpListener
All Known Implementing Classes:
JMSLMixerContainer, JSynMixer, 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: nick@didkovsky.com, (c) 2003 Nick Didkovsky, all rights reserved.
  • Method Details

    • 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()