javax.sound.midi
public interface Synthesizer extends MidiDevice
Since: 1.3
Method Summary | |
---|---|
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.
|
Returns: an array containing all instruments in this synthesizer
Returns: an array of MIDI channels controlled by this synth
Returns: the default Soundbank for this synth, possibly null.
Returns: the processing latency for this synth in microseconds
Returns: an array containing all instruments loaded in this synthesizer
Returns: the maximum number of notes that the synth can play at once
Returns: an array of VoiceStatus objects, getMaxPolyphony() in length
Parameters: soundbank the Soundbank to examine
Returns: true if soundbank can be loaded, false otherwise
Parameters: soundbank the Soundbank from which to load instruments
Returns: true if all instruments were loaded, false othewise
Throws: IllegalArgumentException if the soundbank isn't supported by this
Parameters: instrument the Instrument to load
Returns: true if the instrument was loaded and false otherwise
Throws: IllegalArgumentException if this synth doesn't support instrument
Parameters: soundbank the Soundbank from which to load instruments patchList the array of patches identifying instruments to load
Returns: true if instruments were loaded, false otherwise
Throws: IllegalArgumentException if the soundbank isn't supported by this
Parameters: from the instrument source to the instrument target
Returns: if from was remapped
Throws: IllegalArgumentException
Parameters: soundbank the Soundbank containing the instruments to unload
Throws: IllegalArgumentException if the soundbank isn't supported by this
Parameters: instrument the Instrument to unload
Throws: IllegalArgumentException if this synth doesn't support instrument
Parameters: soundbank the Soundbank containing the instruments to unload patchList the array of patches identifying instruments to unload
Throws: IllegalArgumentException if the soundbank isn't supported by this