com.softsynth.jmsl.score
Class Tempo
java.lang.Object
com.softsynth.jmsl.score.Tempo
public class Tempo
- extends java.lang.Object
Tempo class maintains tempo in beats per minute, translates to JMSL time
stretch (1.0 = 60bpm, 0.5 = 120 bpm, etc)
- Author:
- Nick Didkovsky, Nick.Didkovsky@mail.rockefeller.edu (C) 2000 Nick
Didkovsky, Phil Burk all rights reserved.
Field Summary |
static java.lang.String |
copyright
|
Constructor Summary |
Tempo(double bpm)
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
copyright
public static final java.lang.String copyright
- See Also:
- Constant Field Values
Tempo
public Tempo(double bpm)
getTimeStretch
public double getTimeStretch()
- Returns:
- timestretch associated with this tempo (1.0 for 60 bpm, 0.5 for
120 bpm, etc
getBPM
public double getBPM()
equals
public boolean equals(java.lang.Object tempo)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
main
public static void main(java.lang.String[] args)