Interface OutputSynthManager

All Known Implementing Classes:
DefaultOutputSynthManager

public interface OutputSynthManager
A manager for OutputSynth instances.
  • Field Details

  • Method Details

    • getDefault

      static OutputSynthManager getDefault()
      Get the first implementation available in the global lookup, or if not found return the DefaultOutputSynthManager instance.
      Returns:
    • getDefaultOutputSynth

      OutputSynth getDefaultOutputSynth()
      Get the current OuputSynth associated to the default JJazzLab Midi Device OUT.

      If no Midi Device OUT defined, then return a shared instance of a GM Output Synth.

      Returns:
      Can't be null
      See Also:
    • getStandardOutputSynth

      default OutputSynth getStandardOutputSynth(String stdName)
      Get a new instance of a standard OutputSynth.
      Parameters:
      stdName - The name of the standard output synth, eg "GM".
      Returns:
      Can be null
    • getMidiDeviceOutputSynth

      OutputSynth getMidiDeviceOutputSynth(String mdOutName)
      Get the OutputSynth associated to the specified output MidiDevice.

      If no OutputSynth found for this session, try to restore it from a previous session (saved as preferences). If nothing found return the shared GM output synth instance.

      Parameters:
      mdOutName - A Midi device OUT name, can't be null or empty
      Returns:
      Can't be null.
    • setMidiDeviceOutputSynth

      void setMidiDeviceOutputSynth(String mdOutName, OutputSynth outSynth)
      Associate outSynth to the specified midi OUT device name.
      Parameters:
      mdOutName - Can't be null
      outSynth - Can't be null
    • refresh

      default void refresh()
      Scan all the system OUT MidiDevices and make sure each MidiDevice is associated to an OutputSynth.

      Should be called if the list of available OUT system MidiDevices has changed.

    • addPropertyChangeListener

      void addPropertyChangeListener(PropertyChangeListener l)
    • addPropertyChangeListener

      void addPropertyChangeListener(String propName, PropertyChangeListener l)
    • removePropertyChangeListener

      void removePropertyChangeListener(PropertyChangeListener l)
    • removePropertyChangeListener

      void removePropertyChangeListener(String propName, PropertyChangeListener l)