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

public abstract Class ModelInstrument

extends Instrument
Class Inheritance
Known Direct Subclasses
com.sun.media.sound.ModelMappedInstrument, com.sun.media.sound.SF2Instrument, com.sun.media.sound.SimpleInstrument, com.sun.media.sound.DLSInstrument
Imports
javax.sound.midi.Instrument, .MidiChannel, .Patch, .Soundbank, javax.sound.sampled.AudioFormat

The model instrument class.

The main methods to override are:
getPerformer, getDirector, getChannelMixer.

Performers are used to define what voices which will playback when using the instrument.
ChannelMixer is used to add channel-wide processing on voices output or to define non-voice oriented instruments.
Director is used to change how the synthesizer chooses what performers to play on midi events.

Author
Karl Helgason

Constructor Summary

AccessConstructor and Description
protected
ModelInstrument(Soundbank soundbank, Patch patch, String name, Class<?> dataClass)

Method Summary

Modifier and TypeMethod and Description
public ModelChannelMixer
public final boolean[]
public ModelDirector
public final String[]
public final Patch
public ModelPerformer[]
Inherited from javax.sound.midi.Instrument:
getPatch

Constructor Detail

ModelInstrumentback to summary
protected ModelInstrument(Soundbank soundbank, Patch patch, String name, Class<?> dataClass)

Method Detail

getChannelMixerback to summary
public ModelChannelMixer getChannelMixer(MidiChannel channel, AudioFormat format)
getChannelsback to summary
public final boolean[] getChannels()
getDirectorback to summary
public ModelDirector getDirector(ModelPerformer[] performers, MidiChannel channel, ModelDirectedPlayer player)
getKeysback to summary
public final String[] getKeys()
getPatchAliasback to summary
public final Patch getPatchAlias()
getPerformersback to summary
public ModelPerformer[] getPerformers()