A SoundbankResource represents any audio resource stored
in a . Common soundbank resources include:
Soundbank
Patch
which specifies the MIDI program and bank by which it may be
referenced in MIDI messages. Instrument information may be
stored in Instrument objects.
Synthesizer to synthesize sound in response to MIDI
commands, or extracted for use by an application.
(The terminology reflects musicians' use of the word "sample" to refer
collectively to a series of contiguous audio samples or frames, rather than
to a single, instantaneous sample.)
The data class for an audio sample will be an object
that encapsulates the audio sample data itself and information
about how to interpret it (the format of the audio data), such
as an javax.sound.sampled.AudioInputStream. Sequence.
Synthesizers that use wavetable synthesis or related
techniques play back the audio in a sample when
synthesizing notes, often when emulating the real-world instrument that
was originally recorded. However, there is not necessarily a one-to-one
correspondence between the Instruments and samples
in a Soundbank. A single Instrument can use
multiple SoundbankResources (typically for notes of dissimilar pitch or
brightness). Also, more than one Instrument can use the same
sample.