javax.sound.midi
Class Patch

java.lang.Object
  extended by javax.sound.midi.Patch

public class Patch
extends Object

A Patch describes where an Instrument is loaded on a Synthesizer.

Since:
1.3

Constructor Summary
Patch(int bank, int program)
          Create a Patch object, specifying the bank and program in which this Patch is located.
 
Method Summary
 int getBank()
          Get the bank in which this Patch is located.
 int getProgram()
          Get the program in which this Patch is located.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Patch

public Patch(int bank,
             int program)
Create a Patch object, specifying the bank and program in which this Patch is located.

Parameters:
bank - the bank in which this Patch is located
program - the program in which this Patch is located
Method Detail

getBank

public int getBank()
Get the bank in which this Patch is located.

Returns:
the bank in which this Patch is located

getProgram

public int getProgram()
Get the program in which this Patch is located.

Returns:
the program in which this Patch is located