dguitar.adaptors.song
Class Tempo

java.lang.Object
  extended bydguitar.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

Field Summary
(package private)  int beat
           
(package private)  double bpm
           
private static java.lang.String className
           
private static java.util.logging.Logger logger
           
private static double ONE_MINUTE_MICROSECONDS
           
(package private)  double usq
           
 
Constructor Summary
Tempo()
           
 
Method Summary
 int getBeat()
           
 double getBPM()
           
 double getUSQ()
           
private  void recalculateBPM()
           
private  void recalculateUSQ()
           
 void setBeat(int b)
           
 void setBPM(double b)
           
 void setUSQ(double u)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Tempo

public Tempo()
Method Detail

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()