org.jfugue
Class Tempo

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

public final 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. As of JFugue 4.0, Tempo represents the Beats Per Minute (BPM). In previous versions, Tempo was measured in microseconds per beat, which is how MIDI maintains this information. (tempo = 60000 / BPM, and BPM = 60000 / tempo)

Version:
2.0, 4.0
Author:
David Koelle
See Also:
Serialized Form

Field Summary
static int ADAGIETTO
           
static int ADAGIO
           
static int ALLEGRETTO
           
static int ALLEGRO
           
static int ANDANTE
           
static int ANDANTINO
           
static int GRAVE
           
static int LARGHETTO
           
static int LARGO
           
static int LENTO
           
static int MODERATO
           
static int PRESTO
           
static int PRETISSIMO
           
static int VIVACE
           
 
Constructor Summary
Tempo(int tempoInBPM)
          Creates a new Tempo object, with the specified tempo value (in BPM).
 
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.
 java.lang.String getVerifyString()
          Returns verification string in this format: Tempo: tempo={#}
 void setTempo(int tempoInBPM)
          Sets the value of the tempo for this object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GRAVE

public static final int GRAVE
See Also:
Constant Field Values

LARGO

public static final int LARGO
See Also:
Constant Field Values

LARGHETTO

public static final int LARGHETTO
See Also:
Constant Field Values

LENTO

public static final int LENTO
See Also:
Constant Field Values

ADAGIO

public static final int ADAGIO
See Also:
Constant Field Values

ADAGIETTO

public static final int ADAGIETTO
See Also:
Constant Field Values

ANDANTE

public static final int ANDANTE
See Also:
Constant Field Values

ANDANTINO

public static final int ANDANTINO
See Also:
Constant Field Values

MODERATO

public static final int MODERATO
See Also:
Constant Field Values

ALLEGRETTO

public static final int ALLEGRETTO
See Also:
Constant Field Values

ALLEGRO

public static final int ALLEGRO
See Also:
Constant Field Values

VIVACE

public static final int VIVACE
See Also:
Constant Field Values

PRESTO

public static final int PRESTO
See Also:
Constant Field Values

PRETISSIMO

public static final int PRETISSIMO
See Also:
Constant Field Values
Constructor Detail

Tempo

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

Parameters:
tempo - the tempo for this object, in Beats Per Minute
Method Detail

setTempo

public void setTempo(int tempoInBPM)
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

getVerifyString

public java.lang.String getVerifyString()
Returns verification string in this format: Tempo: tempo={#}

Specified by:
getVerifyString in interface JFugueElement