| Package | Description |
|---|---|
| javax.sound.midi |
Provides interfaces and classes for I/O, sequencing, and synthesis of MIDI (Musical Instrument Digital Interface) data.
|
| javax.sound.midi.spi |
Supplies interfaces for service providers to implement when offering new MIDI devices, MIDI file readers and writers, or sound bank readers.
|
| Modifier and Type | Method and Description |
|---|---|
Soundbank |
Synthesizer.getDefaultSoundbank()
Obtains the default soundbank for the synthesizer, if one exists.
|
Soundbank |
SoundbankResource.getSoundbank()
Obtains the sound bank that contains this
SoundbankResource.
|
static Soundbank |
MidiSystem.getSoundbank(File
Constructs a
Soundbank by reading it from the specified
File.
|
static Soundbank |
MidiSystem.getSoundbank(InputStream
Constructs a MIDI sound bank by reading it from the specified stream.
|
static Soundbank |
MidiSystem.getSoundbank(URL
Constructs a
Soundbank by reading it from the specified URL.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Synthesizer.isSoundbankSupported(Soundbank
Informs the caller whether this synthesizer is capable of loading instruments from the specified soundbank.
|
boolean |
Synthesizer.loadAllInstruments(Soundbank
Loads onto the
Synthesizer all instruments contained in the specified
Soundbank.
|
boolean |
Synthesizer.loadInstruments(Soundbank
Loads the instruments referenced by the specified patches, from the specified
Soundbank.
|
void |
Synthesizer.unloadAllInstruments(Soundbank
Unloads all instruments contained in the specified
Soundbank.
|
void |
Synthesizer.unloadInstruments(Soundbank
Unloads the instruments referenced by the specified patches, from the MIDI sound bank specified.
|
| Constructor and Description | |
|---|---|
Instrument(Soundbank
Constructs a new MIDI instrument from the specified
Patch.
|
|
SoundbankResource(Soundbank
Constructs a new
SoundbankResource from the given sound bank and wavetable index.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Soundbank |
SoundbankReader.getSoundbank(File
Obtains a soundbank object from the
File provided.
|
abstract Soundbank |
SoundbankReader.getSoundbank(InputStream
Obtains a soundbank object from the
InputStream provided.
|
abstract Soundbank |
SoundbankReader.getSoundbank(URL
Obtains a soundbank object from the URL provided.
|