|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Synthesizer
Interface for MIDI audio synthesizer devices.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface javax.sound.midi.MidiDevice |
---|
MidiDevice.Info |
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. |
Methods inherited from interface javax.sound.midi.MidiDevice |
---|
close, getDeviceInfo, getMaxReceivers, getMaxTransmitters, getMicrosecondPosition, getReceiver, getTransmitter, isOpen, open |
Method Detail |
---|
int getMaxPolyphony()
long getLatency()
MidiChannel[] getChannels()
VoiceStatus[] getVoiceStatus()
boolean isSoundbankSupported(Soundbank soundbank)
soundbank
- the Soundbank to examine
boolean loadInstrument(Instrument instrument)
instrument
- the Instrument to load
IllegalArgumentException
- if this synth doesn't support instrumentvoid unloadInstrument(Instrument instrument)
instrument
- the Instrument to unload
IllegalArgumentException
- if this synth doesn't support instrumentboolean remapInstrument(Instrument from, Instrument to)
from
- the instrument sourceto
- the instrument target
IllegalArgumentException
Soundbank getDefaultSoundbank()
Instrument[] getAvailableInstruments()
Instrument[] getLoadedInstruments()
boolean loadAllInstruments(Soundbank soundbank)
soundbank
- the Soundbank from which to load instruments
IllegalArgumentException
- if the soundbank isn't supported by thisvoid unloadAllInstruments(Soundbank soundbank)
soundbank
- the Soundbank containing the instruments to unload
IllegalArgumentException
- 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 load
IllegalArgumentException
- 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 unload
IllegalArgumentException
- if the soundbank isn't supported by this
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |