org.jfugue
Class Controller

java.lang.Object
  extended by org.jfugue.Controller
All Implemented Interfaces:
JFugueElement

public class Controller
extends java.lang.Object
implements JFugueElement

Contains information for MIDI Controller Events.

Version:
2.0
Author:
David Koelle

Constructor Summary
Controller()
          Creates a new Controller object
Controller(byte index, byte value)
          Creates a new Controller object, with the specified controller index and value.
 
Method Summary
 byte getIndex()
          Returns the index of the controller event for this object.
 java.lang.String getMusicString()
          Returns the Music String representing this element and all of its settings.
 byte getValue()
          Returns the value of the controller event for this object.
 void setIndex(byte index)
          Sets the index of the controller event for this object.
 void setValue(byte value)
          Sets the value of the controller event for this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Controller

public Controller()
Creates a new Controller object


Controller

public Controller(byte index,
                  byte value)
Creates a new Controller object, with the specified controller index and value.

Parameters:
index - the index of the controller to set
value - the byte value used to set the controller
Method Detail

setIndex

public void setIndex(byte index)
Sets the index of the controller event for this object.

Parameters:
index - the index of the controller

getIndex

public byte getIndex()
Returns the index of the controller event for this object.

Returns:
the index of the controller

setValue

public void setValue(byte value)
Sets the value of the controller event for this object.

Parameters:
value - the byte value used to set the controller

getValue

public byte getValue()
Returns the value of the controller event for this object.

Returns:
the value of the controller

getMusicString

public java.lang.String getMusicString()
Returns the Music String representing this element and all of its settings. For a Controller object, the Music String is Xindex=value

Specified by:
getMusicString in interface JFugueElement
Returns:
the Music String for this element