com.sun.media.sound
Class DLSInstrument

java.lang.Object
  extended by javax.sound.midi.SoundbankResource
      extended by javax.sound.midi.Instrument
          extended by com.sun.media.sound.ModelInstrument
              extended by com.sun.media.sound.DLSInstrument

public class DLSInstrument
extends ModelInstrument

This class is used to store information to describe instrument. It contains list of regions and modulators. It is stored inside a "ins " List Chunk inside DLS files. In the DLS documentation a modulator is called articulator.

Author:
Karl Helgason

Field Summary
protected  int bank
           
protected  boolean druminstrument
           
protected  byte[] guid
           
protected  DLSInfo info
           
protected  java.util.List<DLSModulator> modulators
           
protected  int preset
           
protected  java.util.List<DLSRegion> regions
           
 
Constructor Summary
DLSInstrument()
           
DLSInstrument(DLSSoundbank soundbank)
           
 
Method Summary
 java.lang.Object getData()
           
 byte[] getGuid()
           
 DLSInfo getInfo()
           
 java.util.List<DLSModulator> getModulators()
           
 java.lang.String getName()
           
 ModelPatch getPatch()
           
 ModelPerformer[] getPerformers()
           
 java.util.List<DLSRegion> getRegions()
           
 void setGuid(byte[] guid)
           
 void setName(java.lang.String name)
           
 void setPatch(javax.sound.midi.Patch patch)
           
 java.lang.String toString()
           
 
Methods inherited from class com.sun.media.sound.ModelInstrument
getChannelMixer, getChannels, getDirector, getKeys, getPatchAlias
 
Methods inherited from class javax.sound.midi.SoundbankResource
getDataClass, getSoundbank
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

preset

protected int preset

bank

protected int bank

druminstrument

protected boolean druminstrument

guid

protected byte[] guid

info

protected DLSInfo info

regions

protected java.util.List<DLSRegion> regions

modulators

protected java.util.List<DLSModulator> modulators
Constructor Detail

DLSInstrument

public DLSInstrument()

DLSInstrument

public DLSInstrument(DLSSoundbank soundbank)
Method Detail

getInfo

public DLSInfo getInfo()

getName

public java.lang.String getName()
Overrides:
getName in class javax.sound.midi.SoundbankResource

setName

public void setName(java.lang.String name)

getPatch

public ModelPatch getPatch()
Overrides:
getPatch in class javax.sound.midi.Instrument

setPatch

public void setPatch(javax.sound.midi.Patch patch)

getData

public java.lang.Object getData()
Specified by:
getData in class javax.sound.midi.SoundbankResource

getRegions

public java.util.List<DLSRegion> getRegions()

getModulators

public java.util.List<DLSModulator> getModulators()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getPerformers

public ModelPerformer[] getPerformers()
Overrides:
getPerformers in class ModelInstrument

getGuid

public byte[] getGuid()

setGuid

public void setGuid(byte[] guid)