com.sun.media.sound
Class ModelPatch

java.lang.Object
  extended by javax.sound.midi.Patch
      extended by 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)
           
 
Method Summary
 boolean isPercussion()
           
 
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
 

Constructor Detail

ModelPatch

public ModelPatch(int bank,
                  int program)

ModelPatch

public ModelPatch(int bank,
                  int program,
                  boolean percussion)
Method Detail

isPercussion

public boolean isPercussion()