Interface OutputSynthManager
- All Known Implementing Classes:
DefaultOutputSynthManager
public interface OutputSynthManager
A manager for OutputSynth instances.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classImplement the RhythmVoiceInstrumentProvider service using the default OutputSynth provided by the OutputSynthManager. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Loggerstatic final StringProperty change event fired each time a new OutputSynth is associated to the default JJazzLab MidiDevice OUT: oldValue=old OutputSynth, newValue=new OutputSynth.static final StringProperty change event fired each time a new OutputSynth is associated to a MidiDevice OUT: oldValue=Midi device OUT name, newValue=OutputSynth.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddPropertyChangeListener(String propName, PropertyChangeListener l) static OutputSynthManagerGet the first implementation available in the global lookup, or if not found return the DefaultOutputSynthManager instance.Get the current OuputSynth associated to the default JJazzLab Midi Device OUT.getMidiDeviceOutputSynth(String mdOutName) Get the OutputSynth associated to the specified output MidiDevice.default OutputSynthgetStandardOutputSynth(String stdName) Get a new instance of a standard OutputSynth.default voidrefresh()Scan all the system OUT MidiDevices and make sure each MidiDevice is associated to an OutputSynth.voidvoidremovePropertyChangeListener(String propName, PropertyChangeListener l) voidsetMidiDeviceOutputSynth(String mdOutName, OutputSynth outSynth) Associate outSynth to the specified midi OUT device name.
-
Field Details
-
STD_GM
- See Also:
-
STD_GM2
- See Also:
-
STD_XG
- See Also:
-
STD_GS
- See Also:
-
STD_JJAZZLAB_SOUNDFONT_GS
- See Also:
-
STD_JJAZZLAB_SOUNDFONT_XG
- See Also:
-
STD_JJAZZLAB_SOUNDFONT_GM2
- See Also:
-
PROP_DEFAULT_OUTPUTSYNTH
Property change event fired each time a new OutputSynth is associated to the default JJazzLab MidiDevice OUT: oldValue=old OutputSynth, newValue=new OutputSynth.The change event is also fired when default JJazzLab MidiDevice OUT changes.
- See Also:
-
PROP_MDOUT_OUTPUTSYNTH
Property change event fired each time a new OutputSynth is associated to a MidiDevice OUT: oldValue=Midi device OUT name, newValue=OutputSynth.- See Also:
-
LOGGER
-
-
Method Details
-
getDefault
Get the first implementation available in the global lookup, or if not found return the DefaultOutputSynthManager instance.- Returns:
-
getDefaultOutputSynth
OutputSynth 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.
- Returns:
- Can't be null
- See Also:
-
getStandardOutputSynth
Get a new instance of a standard OutputSynth.- Parameters:
stdName- The name of the standard output synth, eg "GM".- Returns:
- Can be null
-
getMidiDeviceOutputSynth
Get 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.
- Parameters:
mdOutName- A Midi device OUT name, can't be null or empty- Returns:
- Can't be null.
-
setMidiDeviceOutputSynth
Associate outSynth to the specified midi OUT device name.- Parameters:
mdOutName- Can't be nulloutSynth- Can't be null
-
refresh
default void refresh()Scan all the system OUT MidiDevices and make sure each MidiDevice is associated to an OutputSynth.Should be called if the list of available OUT system MidiDevices has changed.
-
addPropertyChangeListener
-
addPropertyChangeListener
-
removePropertyChangeListener
-
removePropertyChangeListener
-