dguitar.adaptors.song
Class Tempo
java.lang.Object
dguitar.adaptors.song.Tempo
- public class Tempo
- extends java.lang.Object
A tempo is commonly expressed in two notations
'beats per minute' (which requires definition of the size of a beat)
'microseconds per quarter note' (which does not)
This class handles the conversions between the two.
- Author:
- crnash
Constructor Summary |
Tempo()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
className
private static java.lang.String className
logger
private static java.util.logging.Logger logger
ONE_MINUTE_MICROSECONDS
private static final double ONE_MINUTE_MICROSECONDS
- See Also:
- Constant Field Values
beat
int beat
bpm
double bpm
usq
double usq
Tempo
public Tempo()
getBeat
public int getBeat()
getBPM
public double getBPM()
getUSQ
public double getUSQ()
setBeat
public void setBeat(int b)
setBPM
public void setBPM(double b)
setUSQ
public void setUSQ(double u)
recalculateUSQ
private void recalculateUSQ()
recalculateBPM
private void recalculateBPM()