org.jfugue
Class Voice

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

public class Voice
extends java.lang.Object
implements JFugueElement

Represents voice changes, also known as track changes.

Version:
1.0
Author:
David Koelle

Constructor Summary
Voice(byte voice)
          Creates a new Voice object, with the specified voice value.
 
Method Summary
 java.lang.String getMusicString()
          Returns the Music String representing this element and all of its settings.
 byte getVoice()
          Returns the voice used in this object
 void setVoice(byte voice)
          Sets the value of the voice for this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Voice

public Voice(byte voice)
Creates a new Voice object, with the specified voice value.

Parameters:
voice - the voice for this object
Method Detail

setVoice

public void setVoice(byte voice)
Sets the value of the voice for this object.

Parameters:
tempo - the voice for this object

getVoice

public byte getVoice()
Returns the voice used in this object

Returns:
the voice used in this object

getMusicString

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

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