com.sun.media.sound
Class ModelPatch
java.lang.Object
javax.sound.midi.Patch
com.sun.media.sound.ModelPatch
public class ModelPatch
- extends javax.sound.midi.Patch
A extended patch object that has isPercussion function.
Which is necessary to identify percussion instruments
from melodic instruments.
- Author:
- Karl Helgason
Constructor Summary |
ModelPatch(int bank,
int program)
|
ModelPatch(int bank,
int program,
boolean percussion)
|
Methods inherited from class javax.sound.midi.Patch |
getBank, getProgram |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModelPatch
public ModelPatch(int bank,
int program)
ModelPatch
public ModelPatch(int bank,
int program,
boolean percussion)
isPercussion
public boolean isPercussion()