Class ModelPatch

java.lang.Object
javax.sound.midi.Patch
com.sun.media.sound.ModelPatch

public final class ModelPatch extends Patch
A extended patch object that has isPercussion function. Which is necessary to identify percussion instruments from melodic instruments.
  • Constructor Details

    • ModelPatch

      public ModelPatch(int bank, int program)
    • ModelPatch

      public ModelPatch(int bank, int program, boolean percussion)
  • Method Details

    • isPercussion

      public boolean isPercussion()