javax.sound.midi
public abstract class Instrument extends SoundbankResource
Modifier | Constructor and Description |
---|---|
protected |
Instrument(Soundbank soundbank,
Patch patch,
String name,
Class<?> dataClass)
Create a new Instrument.
|
Modifier and Type | Method and Description |
---|---|
Patch |
getPatch()
Get the patch for this instrument.
|
getData, getDataClass, getName, getSoundbank
protected Instrument(Soundbank soundbank, Patch patch, String name, Class<?> dataClass)
soundbank
- the Soundbank containing the instrument.patch
- the patch for this instrumentname
- the name of this instrumentdataClass
- the class used to represent sample data for this instrument