Interface EmbeddedSynthProvider


public interface EmbeddedSynthProvider
Provide an EmbeddedSynth instance and its related methods.
  • Field Details

  • Method Details

    • getDefaultProvider

      static EmbeddedSynthProvider getDefaultProvider()
      Get the first EmbeddedSynthProvider instance found in the global lookup.
      Returns:
    • getDefaultSynth

      static EmbeddedSynth getDefaultSynth()
      Get the default EmbeddedSynth instance.

      Rely on getDefaultProvider().

      Returns:
      Can be null.
    • getEmbeddedSynth

      EmbeddedSynth getEmbeddedSynth()
      Get the EmbeddedSynth instance.
      Returns:
      Might be null if provider is disabled.
    • getOutMidiDevice

      MidiDevice getOutMidiDevice()
      Get the OUT MidiDevice associated to the embedded synth.
      Returns:
      Might be null if provider is disabled.
    • setEmbeddedSynthActive

      void setEmbeddedSynthActive(boolean b) throws EmbeddedSynthException
      If b is true do what's necessary so that the EmbeddedSynth becomes the current JJazzLab output synth.

      If state is changed a PROP_EMBEDDED_SYNTH_ACTIVE change event is fired.

      Parameters:
      b -
      Throws:
      EmbeddedSynthException
    • isEmbeddedSynthActive

      boolean isEmbeddedSynthActive()
      Check if the EmbeddedSynth is active.
      Returns:
    • isEnabled

      boolean isEnabled()
      Check if this EmbeddedSynthProvider is enabled. By default an EmbeddedSynthProvider is enabled, but it might get itself disabled if it encounters initialization errors, typically when calling setEmbeddedSynthActive(). When it becomes disabled a PROP_PROVIDER_ENABLED change event is fired.
      Returns:
    • addPropertyChangeListener

      void addPropertyChangeListener(PropertyChangeListener l)
    • removePropertyChangeListener

      void removePropertyChangeListener(PropertyChangeListener l)