Package org.jjazz.midimix.spi
Interface RhythmVoiceInstrumentProvider
- All Known Implementing Classes:
DefaultRhythmVoiceInstrumentProviderImpl
public interface RhythmVoiceInstrumentProvider
A service provider to find an appropriate Instrument to render a RhythmVoice in a MidiMix.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Name reserved for the default implementation, see getProvider(). -
Method Summary
Modifier and TypeMethodDescriptionFind the most appropriate Instrument on the system to render the specified RhythmVoice in a MidiMix.getId()
The id of the provider.Return a provider.
-
Field Details
-
DEFAULT_ID
Name reserved for the default implementation, see getProvider().- See Also:
-
-
Method Details
-
getProvider
Return a provider.Search for implementations in the global lookup: return the first one with Id different from DEFAULT_ID, otherwise return the one with DEFAULT_ID.
- Returns:
- Can't be null
- Throws:
IllegalStateException
- If no provider found.
-
getId
String getId()The id of the provider.- Returns:
-
findInstrument
Find the most appropriate Instrument on the system to render the specified RhythmVoice in a MidiMix.- Parameters:
rv
-- Returns:
- Can't be null. It may be the VoidInstrument for drums/percussion.
-