Class OutputSynth.UserSettings

java.lang.Object
org.jjazz.outputsynth.api.OutputSynth.UserSettings
Enclosing class:
OutputSynth

public class OutputSynth.UserSettings extends Object
The user-dependent settings associated to the OutputSynth: GM remap table, latency, user track default voice, etc.
  • Field Details

  • Constructor Details

    • UserSettings

      public UserSettings()
      Create an instance with sendModeOnUponPlay=OFF, audioLatency=50, userInstrument = 1st instrument of the midiSynth, empty GMremapTable
  • Method Details

    • getOutputSynth

      public OutputSynth getOutputSynth()
      The enclosing OutputSynth.
      Returns:
    • set

      public void set(OutputSynth.UserSettings userSettings)
    • getAudioLatency

      public int getAudioLatency()
      Get the value of AudioLatency
      Returns:
      the value of AudioLatency
    • setAudioLatency

      public void setAudioLatency(int audioLatency)
      Set the value of AudioLatency
      Parameters:
      audioLatency - new value of AudioLatency
    • getUserMelodicInstrument

      public Instrument getUserMelodicInstrument()
      Get the user melodic instrument.
      Returns:
      Can't be null
    • setUserMelodicInstrument

      public void setUserMelodicInstrument(Instrument ins)
      Set the value of userInstrument.
      Parameters:
      ins - Must be an instrument contained in the MidiSynth.
    • setRemapTableValues

      public void setRemapTableValues(GMRemapTable tbl)
      Copy the RemapTable values from the specified GMRemapTable.
      Parameters:
      tbl -
    • getGMRemapTable

      public GMRemapTable getGMRemapTable()
    • saveAsString

      public String saveAsString()
      Save this UserSettings as a string.
      Returns:
      See Also:
    • setFromString

      public void setFromString(String s) throws IOException
      Update this UserSettings from the specified string.
      Parameters:
      s -
      Throws:
      IOException
    • getSendModeOnUponPlay

      public OutputSynth.UserSettings.SendModeOnUponPlay getSendModeOnUponPlay()
      Get the value of sendModeOnUponStartup
      Returns:
      the value of sendModeOnUponStartup
    • setSendModeOnUponPlay

      public void setSendModeOnUponPlay(OutputSynth.UserSettings.SendModeOnUponPlay sendModeOnUponPlay)
      Set the value of sendModeOnUponStartup
      Parameters:
      sendModeOnUponPlay - new value of sendModeOnUponStartup
    • sendModeOnUponPlaySysexMessages

      public void sendModeOnUponPlaySysexMessages()
      Send the Sysex messages corresponding to getSendModeOnUponPlay().
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener listener)
      Add PropertyChangeListener.
      Parameters:
      listener -
    • removePropertyChangeListener

      public void removePropertyChangeListener(PropertyChangeListener listener)
      Remove PropertyChangeListener.
      Parameters:
      listener -