public class

SimpleSoundbank

extends Object
implements Soundbank
java.lang.Object
   ↳ com.sun.media.sound.SimpleSoundbank

Class Overview

A simple soundbank that contains instruments and soundbankresources.

Summary

Public Constructors
SimpleSoundbank()
Public Methods
void addAllInstruments(Soundbank soundbank)
void addInstrument(Instrument resource)
void addResource(SoundbankResource resource)
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.
void removeAllInstruments(Soundbank soundbank)
void removeInstrument(Instrument resource)
void removeResource(SoundbankResource resource)
void setDescription(String description)
void setName(String name)
void setVendor(String vendor)
void setVersion(String version)
[Expand]
Inherited Methods
From class java.lang.Object
From interface javax.sound.midi.Soundbank

Public Constructors

public SimpleSoundbank ()

Public Methods

public void addAllInstruments (Soundbank soundbank)

public void addInstrument (Instrument resource)

public void addResource (SoundbankResource resource)

public String getDescription ()

Obtains a textual description of the sound bank, suitable for display.

Returns
  • a String that describes the sound bank

public Instrument getInstrument (Patch patch)

Obtains an Instrument from the given Patch.

Parameters
patch a Patch object specifying the bank index and program change number
Returns
  • the requested instrument, or null if the sound bank doesn't contain that instrument

public Instrument[] getInstruments ()

Obtains a list of instruments contained in this sound bank.

Returns
  • an array of the Instruments in this SoundBank If the sound bank contains no instruments, returns an array of length 0.

public String getName ()

Obtains the name of the sound bank.

Returns
  • a String naming the sound bank

public SoundbankResource[] getResources ()

Extracts a list of non-Instrument resources contained in the sound bank.

Returns
  • an array of resources, exclusing instruments. If the sound bank contains no resources (other than instruments), returns an array of length 0.

public String getVendor ()

Obtains a string naming the company that provides the sound bank

Returns
  • the vendor string

public String getVersion ()

Obtains the version string for the sound bank.

Returns
  • a String that indicates the sound bank's version

public void removeAllInstruments (Soundbank soundbank)

public void removeInstrument (Instrument resource)

public void removeResource (SoundbankResource resource)

public void setDescription (String description)

public void setName (String name)

public void setVendor (String vendor)

public void setVersion (String version)