Package com.sun.media.sound
Class SF2Instrument
java.lang.Object
javax.sound.midi.SoundbankResource
javax.sound.midi.Instrument
com.sun.media.sound.ModelInstrument
com.sun.media.sound.SF2Instrument
Soundfont instrument.
-
Field Summary
Modifier and TypeFieldDescription(package private) int
(package private) long
(package private) SF2GlobalRegion
(package private) long
(package private) long
(package private) String
(package private) int
(package private) List<SF2InstrumentRegion>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) static ModelDestination
convertDestination
(int dst, double[] amountcorrection, ModelSource[] extrasrc) getData()
long
getGenre()
long
long
getName()
getPatch()
void
setGenre
(long genre) void
setGlobalZone
(SF2GlobalRegion zone) void
setLibrary
(long library) void
setMorphology
(long morphology) void
void
toString()
Methods inherited from class com.sun.media.sound.ModelInstrument
getChannelMixer, getChannels, getDirector, getKeys, getPatchAlias
Methods inherited from class javax.sound.midi.SoundbankResource
getDataClass, getSoundbank
-
Field Details
-
name
String name -
preset
int preset -
bank
int bank -
library
long library -
genre
long genre -
morphology
long morphology -
globalregion
SF2GlobalRegion globalregion -
regions
List<SF2InstrumentRegion> regions
-
-
Constructor Details
-
SF2Instrument
public SF2Instrument() -
SF2Instrument
-
-
Method Details
-
getName
- Overrides:
getName
in classSoundbankResource
-
setName
-
getPatch
- Overrides:
getPatch
in classInstrument
-
setPatch
-
getData
- Specified by:
getData
in classSoundbankResource
-
getGenre
public long getGenre() -
setGenre
public void setGenre(long genre) -
getLibrary
public long getLibrary() -
setLibrary
public void setLibrary(long library) -
getMorphology
public long getMorphology() -
setMorphology
public void setMorphology(long morphology) -
getRegions
-
getGlobalRegion
-
setGlobalZone
-
toString
-
getPerformers
- Overrides:
getPerformers
in classModelInstrument
-
convertDestination
static ModelDestination convertDestination(int dst, double[] amountcorrection, ModelSource[] extrasrc)
-