javax.sound.midi

Class 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
intgetBank()
Get the bank in which this Patch is located.
intgetProgram()
Get the program in which this Patch is located.

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