Package com.sun.media.sound
Class ModelPatch
java.lang.Object
javax.sound.midi.Patch
com.sun.media.sound.ModelPatch
A extended patch object that has isPercussion function.
Which is necessary to identify percussion instruments
from melodic instruments.
-
Constructor Summary
ConstructorDescriptionModelPatch
(int bank, int program) ModelPatch
(int bank, int program, boolean percussion) -
Method Summary
Methods inherited from class javax.sound.midi.Patch
getBank, getProgram
-
Constructor Details
-
ModelPatch
public ModelPatch(int bank, int program) -
ModelPatch
public ModelPatch(int bank, int program, boolean percussion)
-
-
Method Details
-
isPercussion
public boolean isPercussion()
-