Package com.sun.media.sound
Class ModelInstrument
java.lang.Object
javax.sound.midi.SoundbankResource
javax.sound.midi.Instrument
com.sun.media.sound.ModelInstrument
- Direct Known Subclasses:
SF2Instrument
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.
-
Constructor Summary
ModifierConstructorDescriptionprotected
ModelInstrument
(Soundbank soundbank, Patch patch, String name, Class<?> dataClass) -
Method Summary
Modifier and TypeMethodDescriptiongetChannelMixer
(MidiChannel channel, AudioFormat format) final boolean[]
getDirector
(ModelPerformer[] performers, MidiChannel channel, ModelDirectedPlayer player) final String[]
getKeys()
final Patch
Methods inherited from class javax.sound.midi.Instrument
getPatch
Methods inherited from class javax.sound.midi.SoundbankResource
getData, getDataClass, getName, getSoundbank
-
Constructor Details
-
ModelInstrument
-
-
Method Details
-
getDirector
public ModelDirector getDirector(ModelPerformer[] performers, MidiChannel channel, ModelDirectedPlayer player) -
getPerformers
-
getChannelMixer
-
getPatchAlias
-
getKeys
-
getChannels
public final boolean[] getChannels()
-