org.jfugue
Class Voice

java.lang.Object
  |
  +--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
 byte getVoice()
          Returns the voice used in this object
 java.lang.String musicString()
          Returns the Music String representing this element and all of its settings.
 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

musicString

public java.lang.String musicString()
Returns the Music String representing this element and all of its settings. For a Voice object, the Music String is Vvoice
Specified by:
musicString in interface JFugueElement
Returns:
the Music String for this element