javax.sound.midi
public interface Synthesizer extends MidiDevice
MidiDevice.Info
Modifier and Type | Method and Description |
---|---|
Instrument[] |
getAvailableInstruments()
Get an array containing all instruments in this synthesizer.
|
MidiChannel[] |
getChannels()
Get the set of MIDI channels controlled by this synth.
|
Soundbank |
getDefaultSoundbank()
Get the default Soundbank for this synth.
|
long |
getLatency()
The processing latency for this synth in microseconds.
|
Instrument[] |
getLoadedInstruments()
Get an array containing all instruments loaded in this synthesizer.
|
int |
getMaxPolyphony()
Get the maximum number of notes that the synth can play at once.
|
VoiceStatus[] |
getVoiceStatus()
Get the current status for the voices produced by this synth.
|
boolean |
isSoundbankSupported(Soundbank soundbank)
Returns true is this synth is capable of loading soundbank.
|
boolean |
loadAllInstruments(Soundbank soundbank)
Load all soundbank instruments into this synthesizer.
|
boolean |
loadInstrument(Instrument instrument)
Load an instrument into this synth.
|
boolean |
loadInstruments(Soundbank soundbank,
Patch[] patchList)
Load a subset of soundbank instruments into this synthesizer.
|
boolean |
remapInstrument(Instrument from,
Instrument to)
Move an intrument from one place to another.
|
void |
unloadAllInstruments(Soundbank soundbank)
Unload all soundbank instruments from this synthesizer.
|
void |
unloadInstrument(Instrument instrument)
Unload an instrument from this synth.
|
void |
unloadInstruments(Soundbank soundbank,
Patch[] patchList)
Unload a subset of soundbank instruments from this synthesizer.
|
close, getDeviceInfo, getMaxReceivers, getMaxTransmitters, getMicrosecondPosition, getReceiver, getTransmitter, isOpen, open
int getMaxPolyphony()
long getLatency()
MidiChannel[] getChannels()
VoiceStatus[] getVoiceStatus()
boolean isSoundbankSupported(Soundbank soundbank)
soundbank
- the Soundbank to examineboolean loadInstrument(Instrument instrument)
instrument
- the Instrument to loadIllegalArgumentException
- if this synth doesn't support instrumentvoid unloadInstrument(Instrument instrument)
instrument
- the Instrument to unloadIllegalArgumentException
- if this synth doesn't support instrumentboolean remapInstrument(Instrument from, Instrument to)
from
- the instrument sourceto
- the instrument targetIllegalArgumentException
Soundbank getDefaultSoundbank()
Instrument[] getAvailableInstruments()
Instrument[] getLoadedInstruments()
boolean loadAllInstruments(Soundbank soundbank)
soundbank
- the Soundbank from which to load instrumentsIllegalArgumentException
- if the soundbank isn't supported by thisvoid unloadAllInstruments(Soundbank soundbank)
soundbank
- the Soundbank containing the instruments to unloadIllegalArgumentException
- if the soundbank isn't supported by thisboolean loadInstruments(Soundbank soundbank, Patch[] patchList)
soundbank
- the Soundbank from which to load instrumentspatchList
- the array of patches identifying instruments to loadIllegalArgumentException
- if the soundbank isn't supported by thisvoid unloadInstruments(Soundbank soundbank, Patch[] patchList)
soundbank
- the Soundbank containing the instruments to unloadpatchList
- the array of patches identifying instruments to unloadIllegalArgumentException
- if the soundbank isn't supported by this