public interface Soundbank
A Soundbank contains a set of Instruments
that can be loaded into a Synthesizer.
Note that a Java Sound Soundbank is 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 Soundbank can contain 16383 times 128 instruments,
because the instruments within a Soundbank are indexed by both
a MIDI program number and a MIDI bank number (via a Patch
object). Thus, a Soundbank can be thought of as a collection
of MIDI banks.
Soundbank includes methods that return String
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.
Soundbanks and Instruments that are based on
wavetable synthesis (or other uses of stored sound recordings) should
typically implement the getResources()
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
samples accessible.
Synthesizer.getDefaultSoundbank(),
Synthesizer.isSoundbankSupported(javax.sound.midi.Soundbank),
Synthesizer.loadInstruments(Soundbank, Patch[]),
Patch,
Instrument,
SoundbankResource| Method Summary | |
|---|---|
String |
getDescription()
Obtains a textual description of the sound bank, suitable for display. |
Instrument |
getInstrument(Patch patch)
Obtains an Instrument from the given Patch. |
Instrument[] |
getInstruments()
Obtains a list of instruments contained in this sound bank. |
String |
getName()
Obtains the name of the sound bank. |
SoundbankResource[] |
getResources()
Extracts a list of non-Instrument resources contained in the sound bank. |
String |
getVendor()
Obtains a string naming the company that provides the
sound bank |
String |
getVersion()
Obtains the version string for the sound bank. |
| Method Detail |
|---|
String getName()
String naming the sound bankString getVersion()
String that indicates the sound bank's versionString getVendor()
string naming the company that provides the
sound bank
String getDescription()
String that describes the sound bankSoundbankResource[] getResources()
Instrument[] getInstruments()
Instruments in this
SoundBank
If the sound bank contains no instruments, returns an array of length 0.Synthesizer.getLoadedInstruments(),
getInstrument(Patch)Instrument getInstrument(Patch patch)
Instrument from the given Patch.
patch - a Patch object specifying the bank index
and program change number
null if the
sound bank doesn't contain that instrumentgetInstruments(),
Synthesizer.loadInstruments(Soundbank, Patch[])Ces informations proviennent du site de http://java.sun.com
Le contenu de cette page provient du site de Sun, et est généré depuis un cache sur l'infobrol après certains traitements automatisés. La présentation peut donc différer du document original, mais le contenu aussi. Vous pouvez utiliser ce bouton pour afficher la page originale du site de Sun :
Maintenir les pages en cache sur différents sites peut offrir plus de disponibilité.
Chaque page est indexée dans la base de donnée, ce qui permet de retrouver facilement les informations, au moyen des sommaires, du moteur de recherche interne, etc.
Des facilités sont mises en place pour que les membres de l'infobrol puissent effectuer des traductions en français des différents documents. Ceci devrait permettre aux débutants en programmation Java de consulter les API en français s'ils maîtrisent moins bien la langue de Shakespeare. Dans le cas où une traduction a été soumise, elle est disponible au moyen d'un lien en bas de page. Si la traduction a été validée, la page s'affiche par défaut en français, et un lien en bas de page permet d'atteindre la version en anglais.
Le code sur l'infobrol est automatiquement coloré selon la syntaxe, et les différents mots clés sont transformés en liens pour accéder rapidement aux informations.
Vous avez la possibilité de partager vos expériences en proposant vos propres extraits de code en utilisant le bouton "ajouter un commentaire" en bas de page. Si vous visitez simplement l'infobrol, vous avez déjà accès à cette fonction, mais si vous étes membre du brol, vous pouvez en plus utiliser des boutons supplémentaires de mise en forme, dont la coloration automatique de vos extraits de codes.
Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.
7 mots clés dont 0 définis manuellement (plus d'information...).
Avertissement
Cette page ne possède pas encore de mots clés manuels, ceci est donc un exemple automatique (les niveaux de pertinence sont fictifs, mais les liens sont valables). Pour tester le nuage avec une page qui contient des mots définis manuellement, vous pouvez cliquer ici.Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher le nuage de mots clés.
Recherche (afficher)
Utilisateur (masquer)
Navigation (masquer)
Apparence (afficher)
Stats (afficher)
Citation (masquer)