org.jfugue
Class Tempo

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

public class Tempo
extends java.lang.Object
implements JFugueElement

Represents tempo changes. Tempo is kept for the whole song, and is independent of tracks. You may change the tempo during a song.

Version:
2.0
Author:
David Koelle

Constructor Summary
Tempo(int tempo)
          Creates a new Tempo object, with the specified tempo value.
 
Method Summary
 java.lang.String getMusicString()
          Returns the Music String representing this element and all of its settings.
 int getTempo()
          Returns the value of the tempo for this object.
 void setTempo(int tempo)
          Sets the value of the tempo for this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tempo

public Tempo(int tempo)
Creates a new Tempo object, with the specified tempo value.

Parameters:
tempo - the tempo for this object
Method Detail

setTempo

public void setTempo(int tempo)
Sets the value of the tempo for this object.

Parameters:
tempo - the tempo for this object

getTempo

public int getTempo()
Returns the value of the tempo for this object.

Returns:
the value of the tempo for this object

getMusicString

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

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