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

public final Class SoftInstrument

extends Instrument
Class Inheritance
Imports
javax.sound.midi.Instrument, .MidiChannel

Software synthesizer internal instrument.
Author
Karl Helgason

Field Summary

Modifier and TypeField and Description
private final Object
private final ModelInstrument
private ModelPerformer[]
private SoftPerformer[]

Constructor Summary

AccessConstructor and Description
public
public
SoftInstrument(ModelInstrument ins, ModelPerformer[] overrideperformers)

Method Summary

Modifier and TypeMethod and Description
public Object
getData()

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

Obtains the sampled audio that is stored in this SoundbankResource.

public ModelDirector
public SoftPerformer
getPerformer(int index)

public ModelInstrument
private void
initPerformers(ModelPerformer[] modelperformers)

Inherited from javax.sound.midi.Instrument:
getPatch

Field Detail

databack to summary
private final Object data
insback to summary
private final ModelInstrument ins
modelperformersback to summary
private ModelPerformer[] modelperformers
performersback to summary
private SoftPerformer[] performers

Constructor Detail

SoftInstrumentback to summary
public SoftInstrument(ModelInstrument ins)
SoftInstrumentback to summary
public SoftInstrument(ModelInstrument ins, ModelPerformer[] overrideperformers)

Method Detail

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
getDirectorback to summary
public ModelDirector getDirector(MidiChannel channel, ModelDirectedPlayer player)
getPerformerback to summary
public SoftPerformer getPerformer(int index)
getSourceInstrumentback to summary
public ModelInstrument getSourceInstrument()
initPerformersback to summary
private void initPerformers(ModelPerformer[] modelperformers)