public class Instrument extends java.lang.Object implements Disposable
Constructor and Description |
---|
Instrument(java.lang.String name,
Scale scale,
IStreamRef refstreamsoundback,
java.awt.Image picture,
java.lang.String descriptionurl)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Dispose the resources associated to an object
|
java.lang.String |
getDescriptionUrl()
get the description url
|
java.awt.Image |
getMiniPicture()
Small reduction of the picture
|
java.lang.String |
getName()
get the instrument name
|
RegisterSoundLink |
getRegisterSoundLink()
Get the register sound link with the sound bank
|
Scale |
getScale()
get the scale of the instrument
|
IStreamRef |
getSoundBankStream() |
java.awt.Image |
getThumbnail()
Get instrument picture
|
javax.sound.midi.Soundbank |
openSoundBank()
open and read the soundbank
|
java.lang.String |
toString() |
public Instrument(java.lang.String name, Scale scale, IStreamRef refstreamsoundback, java.awt.Image picture, java.lang.String descriptionurl)
name
- name of the instrumentscale
- scale of the instrumentsb
- sound bank associated to the instrumentpicture
- optional picture (may be null)public java.lang.String getName()
public Scale getScale()
public javax.sound.midi.Soundbank openSoundBank() throws java.io.IOException
java.io.IOException
public IStreamRef getSoundBankStream()
public java.awt.Image getThumbnail()
public java.awt.Image getMiniPicture()
public java.lang.String getDescriptionUrl()
public RegisterSoundLink getRegisterSoundLink()
public void dispose()
Disposable
dispose
in interface Disposable
public java.lang.String toString()
toString
in class java.lang.Object