uk.org.toot.music.performance
Class Instrument

java.lang.Object
  extended by uk.org.toot.music.performance.Instrument

public class Instrument
extends java.lang.Object

An Instrument is a program on a channel. Most likely a MIDI program on a MIDI channel.

Author:
st

Constructor Summary
Instrument(int channel, int program)
           
 
Method Summary
 int getChannel()
           
 int getProgram()
           
 void setChannel(int channel)
           
 void setProgram(int program)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Instrument

public Instrument(int channel,
                  int program)
Method Detail

getChannel

public int getChannel()
Returns:
the channel

setChannel

public void setChannel(int channel)
Parameters:
channel - the channel to set

getProgram

public int getProgram()
Returns:
the program

setProgram

public void setProgram(int program)
Parameters:
program - the program to set


Copyright © 2004, 2005, 2006, 2007 Steve Taylor. All Rights Reserved.