Package com.sun.media.sound
Class SF2Soundbank
java.lang.Object
com.sun.media.sound.SF2Soundbank
- All Implemented Interfaces:
Soundbank
A SoundFont 2.04 soundbank reader.
Based on SoundFont 2.04 specification from:
http://developer.creative.com
http://www.soundfont.com/ ;
-
Field Summary
Modifier and TypeFieldDescription(package private) String
(package private) String
(package private) String
(package private) String
(package private) int
(package private) int
(package private) String
(package private) String
(package private) String
(package private) int
(package private) int
(package private) String
(package private) String
-
Constructor Summary
ConstructorDescriptionSF2Soundbank
(File file) SF2Soundbank
(InputStream inputstream) SF2Soundbank
(URL url) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addInstrument
(SF2Instrument resource) void
addResource
(SoundbankResource resource) getInstrument
(Patch patch) SF2Layer[]
getName()
int
int
getTools()
void
removeInstrument
(SF2Instrument resource) void
removeResource
(SoundbankResource resource) void
void
save
(OutputStream out) void
void
setCreationDate
(String creationDate) void
void
void
setProduct
(String product) void
setRomName
(String romName) void
setRomVersionMajor
(int romVersionMajor) void
setRomVersionMinor
(int romVersionMinor) void
setTargetEngine
(String targetEngine) void
void
-
Field Details
-
major
int major -
minor
int minor -
targetEngine
String targetEngine -
name
String name -
romName
String romName -
romVersionMajor
int romVersionMajor -
romVersionMinor
int romVersionMinor -
creationDate
String creationDate -
engineers
String engineers -
product
String product -
copyright
String copyright -
comments
String comments -
tools
String tools
-
-
Constructor Details
-
SF2Soundbank
public SF2Soundbank() -
SF2Soundbank
- Throws:
IOException
-
SF2Soundbank
- Throws:
IOException
-
SF2Soundbank
- Throws:
IOException
-
-
Method Details
-
save
- Throws:
IOException
-
save
- Throws:
IOException
-
save
- Throws:
IOException
-
getName
-
getVersion
- Specified by:
getVersion
in interfaceSoundbank
-
getVendor
-
getDescription
- Specified by:
getDescription
in interfaceSoundbank
-
setName
-
setVendor
-
setDescription
-
getResources
- Specified by:
getResources
in interfaceSoundbank
-
getInstruments
- Specified by:
getInstruments
in interfaceSoundbank
-
getLayers
-
getSamples
-
getInstrument
- Specified by:
getInstrument
in interfaceSoundbank
-
getCreationDate
-
setCreationDate
-
getProduct
-
setProduct
-
getRomName
-
setRomName
-
getRomVersionMajor
public int getRomVersionMajor() -
setRomVersionMajor
public void setRomVersionMajor(int romVersionMajor) -
getRomVersionMinor
public int getRomVersionMinor() -
setRomVersionMinor
public void setRomVersionMinor(int romVersionMinor) -
getTargetEngine
-
setTargetEngine
-
getTools
-
setTools
-
addResource
-
removeResource
-
addInstrument
-
removeInstrument
-