APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.media.sound

public Class SimpleInstrument

extends ModelInstrument
Class Inheritance
Imports
java.util.ArrayList, .List, javax.sound.midi.Patch

A simple instrument that is made of other ModelInstrument, ModelPerformer objects.
Author
Karl Helgason

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
protected int
protected String
protected List<SimpleInstrument.SimpleInstrumentPart>
protected boolean
protected int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
add(ModelPerformer[] performers, int keyFrom, int keyTo, int velFrom, int velTo, int exclusiveClass)

public void
add(ModelPerformer[] performers, int keyFrom, int keyTo, int velFrom, int velTo)

public void
add(ModelPerformer[] performers, int keyFrom, int keyTo)

public void
add(ModelPerformer[] performers)

public void
add(ModelPerformer performer, int keyFrom, int keyTo, int velFrom, int velTo, int exclusiveClass)

public void
add(ModelPerformer performer, int keyFrom, int keyTo, int velFrom, int velTo)

public void
add(ModelPerformer performer, int keyFrom, int keyTo)

public void
add(ModelPerformer performer)

public void
add(ModelInstrument ins, int keyFrom, int keyTo, int velFrom, int velTo, int exclusiveClass)

public void
add(ModelInstrument ins, int keyFrom, int keyTo, int velFrom, int velTo)

public void
add(ModelInstrument ins, int keyFrom, int keyTo)

public void
public void
public Object
getData()

Implements abstract javax.sound.midi.SoundbankResource.getData.

Obtains the sampled audio that is stored in this SoundbankResource.

public String
getName()

Overrides javax.sound.midi.SoundbankResource.getName.

Obtains the name of the resource.

public ModelPatch
getPatch()

Overrides javax.sound.midi.Instrument.getPatch.

Obtains the Patch object that indicates the bank and program numbers where this instrument is to be stored in the synthesizer.

public ModelPerformer[]
public void
public void
setPatch(Patch patch)

Inherited from com.sun.media.sound.ModelInstrument:
getChannelMixergetChannelsgetDirectorgetKeysgetPatchAlias

Field Detail

bankback to summary
protected int bank
nameback to summary
protected String name

Hides javax.sound.midi.SoundbankResource.name.

partsback to summary
protected List<SimpleInstrument.SimpleInstrumentPart> parts
percussionback to summary
protected boolean percussion
presetback to summary
protected int preset

Constructor Detail

SimpleInstrumentback to summary
public SimpleInstrument()

Method Detail

addback to summary
public void add(ModelPerformer[] performers, int keyFrom, int keyTo, int velFrom, int velTo, int exclusiveClass)
addback to summary
public void add(ModelPerformer[] performers, int keyFrom, int keyTo, int velFrom, int velTo)
addback to summary
public void add(ModelPerformer[] performers, int keyFrom, int keyTo)
addback to summary
public void add(ModelPerformer[] performers)
addback to summary
public void add(ModelPerformer performer, int keyFrom, int keyTo, int velFrom, int velTo, int exclusiveClass)
addback to summary
public void add(ModelPerformer performer, int keyFrom, int keyTo, int velFrom, int velTo)
addback to summary
public void add(ModelPerformer performer, int keyFrom, int keyTo)
addback to summary
public void add(ModelPerformer performer)
addback to summary
public void add(ModelInstrument ins, int keyFrom, int keyTo, int velFrom, int velTo, int exclusiveClass)
addback to summary
public void add(ModelInstrument ins, int keyFrom, int keyTo, int velFrom, int velTo)
addback to summary
public void add(ModelInstrument ins, int keyFrom, int keyTo)
addback to summary
public void add(ModelInstrument ins)
clearback to summary
public void clear()
getDataback to summary
public Object getData()

Implements abstract javax.sound.midi.SoundbankResource.getData.

Doc from javax.sound.midi.SoundbankResource.getData.

Obtains the sampled audio that is stored in this SoundbankResource. The type of object returned depends on the implementation of the concrete class, and may be queried using getDataClass.

Annotations
@Override
getNameback to summary
public String getName()

Overrides javax.sound.midi.SoundbankResource.getName.

Doc from javax.sound.midi.SoundbankResource.getName.

Obtains the name of the resource. This should generally be a string descriptive of the resource.

Annotations
@Override
getPatchback to summary
public ModelPatch getPatch()

Overrides javax.sound.midi.Instrument.getPatch.

Doc from javax.sound.midi.Instrument.getPatch.

Obtains the Patch object that indicates the bank and program numbers where this instrument is to be stored in the synthesizer.

Annotations
@Override
getPerformersback to summary
public ModelPerformer[] getPerformers()

Overrides com.sun.media.sound.ModelInstrument.getPerformers.

Annotations
@Override
setNameback to summary
public void setName(String name)
setPatchback to summary
public void setPatch(Patch patch)
com.sun.media.sound back to summary

private Class SimpleInstrument.SimpleInstrumentPart

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv int
pack-priv int
pack-priv ModelPerformer[]
pack-priv int
pack-priv int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

exclusiveClassback to summary
pack-priv int exclusiveClass
keyFromback to summary
pack-priv int keyFrom
keyToback to summary
pack-priv int keyTo
performersback to summary
pack-priv ModelPerformer[] performers
velFromback to summary
pack-priv int velFrom
velToback to summary
pack-priv int velTo

Constructor Detail

SimpleInstrumentPartback to summary
private SimpleInstrumentPart()