public class

ModelMappedInstrument

extends ModelInstrument
java.lang.Object
   ↳ javax.sound.midi.SoundbankResource
     ↳ javax.sound.midi.Instrument
       ↳ com.sun.media.sound.ModelInstrument
         ↳ com.sun.media.sound.ModelMappedInstrument

Class Overview

This class is used to map instrument to another patch.

Summary

Public Constructors
ModelMappedInstrument(ModelInstrument ins, Patch patch)
Public Methods
ModelChannelMixer getChannelMixer(MidiChannel channel, AudioFormat format)
Object getData()
Obtains the sampled audio that is stored in this SoundbankResource.
ModelDirector getDirector(ModelPerformer[] performers, MidiChannel channel, ModelDirectedPlayer player)
ModelPerformer[] getPerformers()
[Expand]
Inherited Methods
From class com.sun.media.sound.ModelInstrument
From class javax.sound.midi.Instrument
From class javax.sound.midi.SoundbankResource
From class java.lang.Object

Public Constructors

public ModelMappedInstrument (ModelInstrument ins, Patch patch)

Public Methods

public ModelChannelMixer getChannelMixer (MidiChannel channel, AudioFormat format)

public Object 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.

Returns
  • an object containing the sampled audio data

public ModelDirector getDirector (ModelPerformer[] performers, MidiChannel channel, ModelDirectedPlayer player)

public ModelPerformer[] getPerformers ()