javax.sound.midi
Class Instrument
java.lang.Object
javax.sound.midi.SoundbankResource
javax.sound.midi.Instrument
public abstract class Instrument
- extends SoundbankResource
The abstract base class for all MIDI instruments.
- Since:
- 1.3
Method Summary |
Patch |
getPatch()
Get the patch for this instrument. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Instrument
protected Instrument(Soundbank soundbank,
Patch patch,
String name,
Class<?> dataClass)
- Create a new Instrument.
- Parameters:
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
getPatch
public Patch getPatch()
- Get the patch for this instrument.
- Returns:
- the patch for this instrument