com.softsynth.jmsl.util
Class TimeSignature
java.lang.Object
com.softsynth.jmsl.util.TimeSignature
public class TimeSignature
- extends java.lang.Object
TimeSignature class.
- Author:
- Nick Didkovsky, copyright 2000 Nick Didkovsky
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
FOUR_FOUR
public static final TimeSignature FOUR_FOUR
copyright
public static final java.lang.String copyright
- See Also:
- Constant Field Values
TimeSignature
public TimeSignature(int n,
int d)
TimeSignature
public TimeSignature(TimeSignature ts)
set
public void set(int n,
int d)
- Copy in arg values
set
public void set(TimeSignature ts)
- Copy in TimeSig arg's values
getNumerator
public int getNumerator()
getDenominator
public int getDenominator()
getTotalTime
public double getTotalTime()
- Returns:
- duration of measure with this time sig, where qtr note = 1.0
getTimePerBeat
public double getTimePerBeat()
- Returns:
- duration of one beat of this time sig, 1.0 for x/4 time, 0.5 for
x/8 time
equals
public boolean equals(java.lang.Object obj)
- 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)