public interface Soundbank
Soundbankcontains a set of
Instrumentsthat can be loaded into a
Synthesizer. Note that a Java Sound
Soundbankis different from a MIDI bank. MIDI permits up to 16383 banks, each containing up to 128 instruments (also sometimes called programs, patches, or timbres). However, a
Soundbankcan contain 16383 times 128 instruments, because the instruments within a
Soundbankare indexed by both a MIDI program number and a MIDI bank number (via a
Patchobject). Thus, a
Soundbankcan be thought of as a collection of MIDI banks.
Soundbank includes methods that return
objects containing the sound bank's name, manufacturer, version number, and
description. The precise content and format of these strings is left
to the implementor.
Different synthesizers use a variety of synthesis techniques. A common
one is wavetable synthesis, in which a segment of recorded sound is
played back, often with looping and pitch change. The Downloadable Sound
(DLS) format uses segments of recorded sound, as does the Headspace Engine.
Instruments that are based on
wavetable synthesis (or other uses of stored sound recordings) should
typically implement the
method to provide access to these recorded segments. This is optional,
however; the method can return an zero-length array if the synthesis technique
doesn't use sampled sound (FM synthesis and physical modeling are examples
of such techniques), or if it does but the implementor chooses not to make the
|Modifier and Type||Method and Description|
Obtains a textual description of the sound bank, suitable for display.
Obtains a list of instruments contained in this sound bank.
Obtains the name of the sound bank.
Extracts a list of non-Instrument resources contained in the sound bank.
Obtains the version string for the sound bank.
Stringnaming the sound bank
Stringthat indicates the sound bank's version
stringnaming the company that provides the sound bank
Stringthat describes the sound bank
Instrument getInstrument(Patch patch)
Instrumentfrom the given
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.