Class OutputSynth.UserSettings
java.lang.Object
org.jjazz.outputsynth.api.OutputSynth.UserSettings
- Enclosing class:
OutputSynth
The user-dependent settings associated to the OutputSynth: GM remap table, latency, user track default voice, etc.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate an instance with sendModeOnUponPlay=OFF, audioLatency=50, userInstrument = 1st instrument of the midiSynth, empty GMremapTable -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd PropertyChangeListener.intGet the value of AudioLatency (ms).Get the Sysex messages corresponding to getSendModeOnUponPlay().The enclosing OutputSynth.Get the value of sendModeOnUponStartupGet the user melodic instrument.voidRemove PropertyChangeListener.Save this UserSettings as a string.voidSend the Sysex messages corresponding to getSendModeOnUponPlay().voidset(OutputSynth.UserSettings userSettings) voidsetAudioLatency(int audioLatency) Set the value of AudioLatency (ms).voidUpdate this UserSettings from the specified string.voidCopy the RemapTable values from the specified GMRemapTable.voidsetSendModeOnUponPlay(OutputSynth.UserSettings.SendModeOnUponPlay sendModeOnUponPlay) Set the value of sendModeOnUponStartupvoidSet the value of userInstrument.toString()
-
Field Details
-
PROP_USERINSTRUMENT
- See Also:
-
PROP_GM_REMAP_TABLE
This property change event if fired each time GMremapTable is changed.- See Also:
-
PROP_AUDIO_LATENCY
- See Also:
-
PROP_SEND_MODE_ON_UPON_PLAY
- See Also:
-
-
Constructor Details
-
UserSettings
public UserSettings()Create an instance with sendModeOnUponPlay=OFF, audioLatency=50, userInstrument = 1st instrument of the midiSynth, empty GMremapTable
-
-
Method Details
-
getOutputSynth
-
set
-
getAudioLatency
public int getAudioLatency()Get the value of AudioLatency (ms).- Returns:
-
setAudioLatency
public void setAudioLatency(int audioLatency) Set the value of AudioLatency (ms).- Parameters:
audioLatency-
-
getUserMelodicInstrument
Get the user melodic instrument.- Returns:
- Can't be null
-
setUserMelodicInstrument
Set the value of userInstrument.- Parameters:
ins- Must be an instrument contained in the MidiSynth.
-
setRemapTableValues
Copy the RemapTable values from the specified GMRemapTable.- Parameters:
tbl-
-
getGMRemapTable
-
saveAsString
-
setFromString
Update this UserSettings from the specified string.- Parameters:
s-- Throws:
IOException
-
getSendModeOnUponPlay
Get the value of sendModeOnUponStartup- Returns:
- the value of sendModeOnUponStartup
-
setSendModeOnUponPlay
Set the value of sendModeOnUponStartup- Parameters:
sendModeOnUponPlay- new value of sendModeOnUponStartup
-
getModeOnUponPlaySysexMessages
Get the Sysex messages corresponding to getSendModeOnUponPlay().- Returns:
- Can be null
-
sendModeOnUponPlaySysexMessages
public void sendModeOnUponPlaySysexMessages()Send the Sysex messages corresponding to getSendModeOnUponPlay(). -
toString
-
addPropertyChangeListener
Add PropertyChangeListener.- Parameters:
listener-
-
removePropertyChangeListener
Remove PropertyChangeListener.- Parameters:
listener-
-