Package org.jjazz.outputsynth.api
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
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCreate an instance with sendModeOnUponPlay=OFF, audioLatency=50, userInstrument = 1st instrument of the midiSynth, empty GMremapTable -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add PropertyChangeListener.int
Get the value of AudioLatencyThe enclosing OutputSynth.Get the value of sendModeOnUponStartupGet the user melodic instrument.void
Remove PropertyChangeListener.Save this UserSettings as a string.void
Send the Sysex messages corresponding to getSendModeOnUponPlay().void
set
(OutputSynth.UserSettings userSettings) void
setAudioLatency
(int audioLatency) Set the value of AudioLatencyvoid
Update this UserSettings from the specified string.void
Copy the RemapTable values from the specified GMRemapTable.void
setSendModeOnUponPlay
(OutputSynth.UserSettings.SendModeOnUponPlay sendModeOnUponPlay) Set the value of sendModeOnUponStartupvoid
Set 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
The enclosing OutputSynth.- Returns:
-
set
-
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
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
Save this UserSettings as a string.- Returns:
- See Also:
-
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
-
sendModeOnUponPlaySysexMessages
public void sendModeOnUponPlaySysexMessages()Send the Sysex messages corresponding to getSendModeOnUponPlay(). -
toString
-
addPropertyChangeListener
Add PropertyChangeListener.- Parameters:
listener
-
-
removePropertyChangeListener
Remove PropertyChangeListener.- Parameters:
listener
-
-