Uses of Interface
javax.sound.midi.Soundbank
Package
Description
Provides interfaces and classes for I/O, sequencing, and synthesis of MIDI
(Musical Instrument Digital Interface) data.
Supplies interfaces for service providers to implement when offering new MIDI
devices, MIDI file readers and writers, or sound bank readers.
-
Uses of Soundbank in javax.sound.midi
Modifier and TypeMethodDescriptionSynthesizer.getDefaultSoundbank()
Obtains the default soundbank for the synthesizer, if one exists.static Soundbank
MidiSystem.getSoundbank
(File file) Constructs aSoundbank
by reading it from the specifiedFile
.static Soundbank
MidiSystem.getSoundbank
(InputStream stream) Constructs a MIDI sound bank by reading it from the specified stream.static Soundbank
MidiSystem.getSoundbank
(URL url) Constructs aSoundbank
by reading it from the specified URL.SoundbankResource.getSoundbank()
Obtains the sound bank that contains thisSoundbankResource
.Modifier and TypeMethodDescriptionboolean
Synthesizer.isSoundbankSupported
(Soundbank soundbank) Informs the caller whether this synthesizer is capable of loading instruments from the specified soundbank.boolean
Synthesizer.loadAllInstruments
(Soundbank soundbank) Loads onto theSynthesizer
all instruments contained in the specifiedSoundbank
.boolean
Synthesizer.loadInstruments
(Soundbank soundbank, Patch[] patchList) Loads the instruments referenced by the specified patches, from the specifiedSoundbank
.void
Synthesizer.unloadAllInstruments
(Soundbank soundbank) Unloads all instruments contained in the specifiedSoundbank
.void
Synthesizer.unloadInstruments
(Soundbank soundbank, Patch[] patchList) Unloads the instruments referenced by the specified patches, from the MIDI sound bank specified.ModifierConstructorDescriptionprotected
Instrument
(Soundbank soundbank, Patch patch, String name, Class<?> dataClass) Constructs a new MIDI instrument from the specifiedPatch
.protected
SoundbankResource
(Soundbank soundBank, String name, Class<?> dataClass) Constructs a newSoundbankResource
from the given sound bank and wavetable index. -
Uses of Soundbank in javax.sound.midi.spi
Modifier and TypeMethodDescriptionabstract Soundbank
SoundbankReader.getSoundbank
(File file) Obtains a soundbank object from theFile
provided.abstract Soundbank
SoundbankReader.getSoundbank
(InputStream stream) Obtains a soundbank object from theInputStream
provided.abstract Soundbank
SoundbankReader.getSoundbank
(URL url) Obtains a soundbank object from theURL
provided.