Class DefaultOutputSynthManager
java.lang.Object
org.jjazz.outputsynth.api.DefaultOutputSynthManager
- All Implemented Interfaces:
PropertyChangeListener,EventListener,OutputSynthManager
public class DefaultOutputSynthManager
extends Object
implements OutputSynthManager, PropertyChangeListener
A default implementation of an OutputSynthManager.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jjazz.outputsynth.spi.OutputSynthManager
OutputSynthManager.DefaultRhythmVoiceInstrumentProviderImpl -
Field Summary
Fields inherited from interface org.jjazz.outputsynth.spi.OutputSynthManager
PROP_DEFAULT_OUTPUTSYNTH, PROP_MDOUT_OUTPUTSYNTH, STD_GM, STD_GM2, STD_GS, STD_JJAZZLAB_SOUNDFONT_GM2, STD_JJAZZLAB_SOUNDFONT_GS, STD_JJAZZLAB_SOUNDFONT_XG, STD_XG -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddPropertyChangeListener(String propName, PropertyChangeListener l) Get the current OuputSynth associated to the default JJazzLab Midi Device OUT.static DefaultOutputSynthManagergetMidiDeviceOutputSynth(String mdOutName) Get the OutputSynth associated to the specified output MidiDevice.getStandardOutputSynth(String stdName) Get a new instance of a standard OutputSynth.voidvoidvoidremovePropertyChangeListener(String propName, PropertyChangeListener l) voidsetMidiDeviceOutputSynth(String mdOutName, OutputSynth outSynth) Associate outSynth to the specified midi OUT device name.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jjazz.outputsynth.spi.OutputSynthManager
refresh
-
Method Details
-
getInstance
-
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.
- Specified by:
getDefaultOutputSynthin interfaceOutputSynthManager- Returns:
- Can't be null
- See Also:
-
getMidiDeviceOutputSynth
Description copied from interface:OutputSynthManagerGet 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.
- Specified by:
getMidiDeviceOutputSynthin interfaceOutputSynthManager- Parameters:
mdOutName- A Midi device OUT name, can't be null or empty- Returns:
- Can't be null.
-
setMidiDeviceOutputSynth
Description copied from interface:OutputSynthManagerAssociate outSynth to the specified midi OUT device name.- Specified by:
setMidiDeviceOutputSynthin interfaceOutputSynthManager- Parameters:
mdOutName- Can't be nulloutSynth- Can't be null
-
getStandardOutputSynth
Description copied from interface:OutputSynthManagerGet a new instance of a standard OutputSynth.- Specified by:
getStandardOutputSynthin interfaceOutputSynthManager- Parameters:
stdName- The name of the standard output synth, eg "GM".- Returns:
- Can be null
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfaceOutputSynthManager
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfaceOutputSynthManager
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListenerin interfaceOutputSynthManager
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListenerin interfaceOutputSynthManager
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-